Rename gl_tex_info to gfx_tex_info

This commit is contained in:
twinaphex 2015-07-12 04:16:40 +02:00
parent a687ca54d8
commit 4b8e65322c
5 changed files with 17 additions and 17 deletions

View File

@ -975,13 +975,13 @@ static void gl_check_fbo_dimensions(gl_t *gl)
}
static void gl_frame_fbo(gl_t *gl, uint64_t frame_count,
const struct gl_tex_info *tex_info)
const struct gfx_tex_info *tex_info)
{
unsigned width, height;
const struct gfx_fbo_rect *prev_rect;
const struct gfx_fbo_rect *rect;
struct gl_tex_info *fbo_info;
struct gl_tex_info fbo_tex_info[GFX_MAX_SHADERS];
struct gfx_tex_info *fbo_info;
struct gfx_tex_info fbo_tex_info[GFX_MAX_SHADERS];
int i;
GLfloat xamt, yamt;
unsigned fbo_tex_info_cnt = 0;
@ -1410,7 +1410,7 @@ static INLINE void gl_copy_frame(gl_t *gl, const void *frame,
}
static INLINE void gl_set_prev_texture(gl_t *gl,
const struct gl_tex_info *tex_info)
const struct gfx_tex_info *tex_info)
{
memmove(gl->prev_info + 1, gl->prev_info,
sizeof(*tex_info) * (gl->textures - 1));

View File

@ -198,9 +198,9 @@ struct gfx_ortho
float zfar;
};
struct gl_tex_info
struct gfx_tex_info
{
GLuint tex;
unsigned int tex;
float input_size[2];
float tex_size[2];
float coord[8];
@ -247,8 +247,8 @@ typedef struct gl
GLuint texture[GFX_MAX_TEXTURES];
unsigned tex_index; /* For use with PREV. */
unsigned textures;
struct gl_tex_info tex_info;
struct gl_tex_info prev_info[GFX_MAX_TEXTURES];
struct gfx_tex_info tex_info;
struct gfx_tex_info prev_info[GFX_MAX_TEXTURES];
GLuint tex_mag_filter;
GLuint tex_min_filter;
bool tex_mipmap;

View File

@ -233,9 +233,9 @@ static void gl_cg_set_params(void *data, unsigned width, unsigned height,
{
unsigned i;
CGparameter param;
const struct gl_tex_info *info = (const struct gl_tex_info*)_info;
const struct gl_tex_info *prev_info = (const struct gl_tex_info*)_prev_info;
const struct gl_tex_info *fbo_info = (const struct gl_tex_info*)_fbo_info;
const struct gfx_tex_info *info = (const struct gfx_tex_info*)_info;
const struct gfx_tex_info *prev_info = (const struct gfx_tex_info*)_prev_info;
const struct gfx_tex_info *fbo_info = (const struct gfx_tex_info*)_fbo_info;
driver_t *driver = driver_get_ptr();
global_t *global = global_get_ptr();
cg_shader_data_t *cg = (cg_shader_data_t*)driver->video_shader_data;

View File

@ -952,9 +952,9 @@ static void gl_glsl_set_params(void *data, unsigned width, unsigned height,
unsigned i, texunit = 1;
const struct shader_uniforms *uni = NULL;
size_t size = 0, attribs_size = 0;
const struct gl_tex_info *info = (const struct gl_tex_info*)_info;
const struct gl_tex_info *prev_info = (const struct gl_tex_info*)_prev_info;
const struct gl_tex_info *fbo_info = (const struct gl_tex_info*)_fbo_info;
const struct gfx_tex_info *info = (const struct gfx_tex_info*)_info;
const struct gfx_tex_info *prev_info = (const struct gfx_tex_info*)_prev_info;
const struct gfx_tex_info *fbo_info = (const struct gfx_tex_info*)_fbo_info;
struct glsl_attrib *attr = (struct glsl_attrib*)attribs;
driver_t *driver = driver_get_ptr();
global_t *global = global_get_ptr();

View File

@ -111,9 +111,9 @@ static void hlsl_set_params(void *data, unsigned width, unsigned height,
{
d3d_video_t *d3d = (d3d_video_t*)data;
LPDIRECT3DDEVICE d3d_device_ptr = (LPDIRECT3DDEVICE)d3d->dev;
const struct gl_tex_info *info = (const struct gl_tex_info*)_info;
const struct gl_tex_info *prev_info = (const struct gl_tex_info*)_prev_info;
const struct gl_tex_info *fbo_info = (const struct gl_tex_info*)_fbo_info;
const struct gfx_tex_info *info = (const struct gfx_tex_info*)_info;
const struct gfx_tex_info *prev_info = (const struct gfx_tex_info*)_prev_info;
const struct gfx_tex_info *fbo_info = (const struct gfx_tex_info*)_fbo_info;
driver_t *driver = driver_get_ptr();
global_t *global = global_get_ptr();
hlsl_shader_data_t *hlsl = (hlsl_shader_data_t*)driver->video_shader_data;