Rename gl_tex_info to gfx_tex_info
This commit is contained in:
parent
a687ca54d8
commit
4b8e65322c
|
@ -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,
|
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;
|
unsigned width, height;
|
||||||
const struct gfx_fbo_rect *prev_rect;
|
const struct gfx_fbo_rect *prev_rect;
|
||||||
const struct gfx_fbo_rect *rect;
|
const struct gfx_fbo_rect *rect;
|
||||||
struct gl_tex_info *fbo_info;
|
struct gfx_tex_info *fbo_info;
|
||||||
struct gl_tex_info fbo_tex_info[GFX_MAX_SHADERS];
|
struct gfx_tex_info fbo_tex_info[GFX_MAX_SHADERS];
|
||||||
int i;
|
int i;
|
||||||
GLfloat xamt, yamt;
|
GLfloat xamt, yamt;
|
||||||
unsigned fbo_tex_info_cnt = 0;
|
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,
|
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,
|
memmove(gl->prev_info + 1, gl->prev_info,
|
||||||
sizeof(*tex_info) * (gl->textures - 1));
|
sizeof(*tex_info) * (gl->textures - 1));
|
||||||
|
|
|
@ -198,9 +198,9 @@ struct gfx_ortho
|
||||||
float zfar;
|
float zfar;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct gl_tex_info
|
struct gfx_tex_info
|
||||||
{
|
{
|
||||||
GLuint tex;
|
unsigned int tex;
|
||||||
float input_size[2];
|
float input_size[2];
|
||||||
float tex_size[2];
|
float tex_size[2];
|
||||||
float coord[8];
|
float coord[8];
|
||||||
|
@ -247,8 +247,8 @@ typedef struct gl
|
||||||
GLuint texture[GFX_MAX_TEXTURES];
|
GLuint texture[GFX_MAX_TEXTURES];
|
||||||
unsigned tex_index; /* For use with PREV. */
|
unsigned tex_index; /* For use with PREV. */
|
||||||
unsigned textures;
|
unsigned textures;
|
||||||
struct gl_tex_info tex_info;
|
struct gfx_tex_info tex_info;
|
||||||
struct gl_tex_info prev_info[GFX_MAX_TEXTURES];
|
struct gfx_tex_info prev_info[GFX_MAX_TEXTURES];
|
||||||
GLuint tex_mag_filter;
|
GLuint tex_mag_filter;
|
||||||
GLuint tex_min_filter;
|
GLuint tex_min_filter;
|
||||||
bool tex_mipmap;
|
bool tex_mipmap;
|
||||||
|
|
|
@ -233,9 +233,9 @@ static void gl_cg_set_params(void *data, unsigned width, unsigned height,
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
CGparameter param;
|
CGparameter param;
|
||||||
const struct gl_tex_info *info = (const struct gl_tex_info*)_info;
|
const struct gfx_tex_info *info = (const struct gfx_tex_info*)_info;
|
||||||
const struct gl_tex_info *prev_info = (const struct gl_tex_info*)_prev_info;
|
const struct gfx_tex_info *prev_info = (const struct gfx_tex_info*)_prev_info;
|
||||||
const struct gl_tex_info *fbo_info = (const struct gl_tex_info*)_fbo_info;
|
const struct gfx_tex_info *fbo_info = (const struct gfx_tex_info*)_fbo_info;
|
||||||
driver_t *driver = driver_get_ptr();
|
driver_t *driver = driver_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
cg_shader_data_t *cg = (cg_shader_data_t*)driver->video_shader_data;
|
cg_shader_data_t *cg = (cg_shader_data_t*)driver->video_shader_data;
|
||||||
|
|
|
@ -952,9 +952,9 @@ static void gl_glsl_set_params(void *data, unsigned width, unsigned height,
|
||||||
unsigned i, texunit = 1;
|
unsigned i, texunit = 1;
|
||||||
const struct shader_uniforms *uni = NULL;
|
const struct shader_uniforms *uni = NULL;
|
||||||
size_t size = 0, attribs_size = 0;
|
size_t size = 0, attribs_size = 0;
|
||||||
const struct gl_tex_info *info = (const struct gl_tex_info*)_info;
|
const struct gfx_tex_info *info = (const struct gfx_tex_info*)_info;
|
||||||
const struct gl_tex_info *prev_info = (const struct gl_tex_info*)_prev_info;
|
const struct gfx_tex_info *prev_info = (const struct gfx_tex_info*)_prev_info;
|
||||||
const struct gl_tex_info *fbo_info = (const struct gl_tex_info*)_fbo_info;
|
const struct gfx_tex_info *fbo_info = (const struct gfx_tex_info*)_fbo_info;
|
||||||
struct glsl_attrib *attr = (struct glsl_attrib*)attribs;
|
struct glsl_attrib *attr = (struct glsl_attrib*)attribs;
|
||||||
driver_t *driver = driver_get_ptr();
|
driver_t *driver = driver_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
|
|
@ -111,9 +111,9 @@ static void hlsl_set_params(void *data, unsigned width, unsigned height,
|
||||||
{
|
{
|
||||||
d3d_video_t *d3d = (d3d_video_t*)data;
|
d3d_video_t *d3d = (d3d_video_t*)data;
|
||||||
LPDIRECT3DDEVICE d3d_device_ptr = (LPDIRECT3DDEVICE)d3d->dev;
|
LPDIRECT3DDEVICE d3d_device_ptr = (LPDIRECT3DDEVICE)d3d->dev;
|
||||||
const struct gl_tex_info *info = (const struct gl_tex_info*)_info;
|
const struct gfx_tex_info *info = (const struct gfx_tex_info*)_info;
|
||||||
const struct gl_tex_info *prev_info = (const struct gl_tex_info*)_prev_info;
|
const struct gfx_tex_info *prev_info = (const struct gfx_tex_info*)_prev_info;
|
||||||
const struct gl_tex_info *fbo_info = (const struct gl_tex_info*)_fbo_info;
|
const struct gfx_tex_info *fbo_info = (const struct gfx_tex_info*)_fbo_info;
|
||||||
driver_t *driver = driver_get_ptr();
|
driver_t *driver = driver_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
hlsl_shader_data_t *hlsl = (hlsl_shader_data_t*)driver->video_shader_data;
|
hlsl_shader_data_t *hlsl = (hlsl_shader_data_t*)driver->video_shader_data;
|
||||||
|
|
Loading…
Reference in New Issue