mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
cogl-texture: Remove the gl_handle from CoglTextureSliceCallback
There's no longer any need to use the GL handle in the callback for _cogl_texture_foreach_sub_texture_in_region because it can now work in terms of primitive cogl textures so it has now been removed. This would be helpful if we ever want to make the foreach function public so that apps could implement their own primitives using sliced textures.
This commit is contained in:
parent
22c61c5315
commit
081eb2d75d
@ -73,8 +73,6 @@ typedef struct _TextureSlicedPolygonState
|
||||
|
||||
static void
|
||||
log_quad_sub_textures_cb (CoglHandle texture_handle,
|
||||
GLuint gl_handle,
|
||||
GLenum gl_target,
|
||||
const float *subtexture_coords,
|
||||
const float *virtual_coords,
|
||||
void *user_data)
|
||||
|
@ -156,8 +156,6 @@ typedef struct _CoglSubTextureForeachData
|
||||
|
||||
static void
|
||||
_cogl_sub_texture_foreach_cb (CoglHandle handle,
|
||||
GLuint gl_handle,
|
||||
GLenum gl_target,
|
||||
const float *slice_coords,
|
||||
const float *full_virtual_coords,
|
||||
void *user_data)
|
||||
@ -175,7 +173,7 @@ _cogl_sub_texture_foreach_cb (CoglHandle handle,
|
||||
&virtual_coords[2],
|
||||
&virtual_coords[3]);
|
||||
|
||||
data->callback (handle, gl_handle, gl_target,
|
||||
data->callback (handle,
|
||||
slice_coords, virtual_coords,
|
||||
data->user_data);
|
||||
}
|
||||
|
@ -68,8 +68,6 @@ typedef struct
|
||||
|
||||
static void
|
||||
_cogl_texture_2d_sliced_foreach_cb (CoglHandle handle,
|
||||
GLuint gl_handle,
|
||||
GLenum gl_target,
|
||||
const float *slice_coords,
|
||||
const float *virtual_coords_in,
|
||||
void *user_data)
|
||||
@ -89,8 +87,6 @@ _cogl_texture_2d_sliced_foreach_cb (CoglHandle handle,
|
||||
data->y_span->start) / data->tex->height;
|
||||
|
||||
data->callback (handle,
|
||||
gl_handle,
|
||||
gl_target,
|
||||
slice_coords,
|
||||
virtual_coords_out,
|
||||
data->user_data);
|
||||
|
@ -91,8 +91,6 @@ _cogl_texture_2d_manual_repeat_cb (const float *coords,
|
||||
slice_coords + 1, slice_coords + 3);
|
||||
|
||||
data->callback (COGL_TEXTURE (data->tex_2d),
|
||||
data->tex_2d->gl_texture,
|
||||
GL_TEXTURE_2D,
|
||||
slice_coords,
|
||||
coords,
|
||||
data->user_data);
|
||||
|
@ -101,8 +101,6 @@ _cogl_texture_3d_manual_repeat_cb (const float *coords,
|
||||
slice_coords + 1, slice_coords + 3);
|
||||
|
||||
data->callback (COGL_TEXTURE (data->tex_3d),
|
||||
data->tex_3d->gl_texture,
|
||||
GL_TEXTURE_3D,
|
||||
slice_coords,
|
||||
coords,
|
||||
data->user_data);
|
||||
|
@ -34,8 +34,6 @@ typedef struct _CoglTexture CoglTexture;
|
||||
typedef struct _CoglTextureVtable CoglTextureVtable;
|
||||
|
||||
typedef void (*CoglTextureSliceCallback) (CoglHandle handle,
|
||||
GLuint gl_handle,
|
||||
GLenum gl_target,
|
||||
const float *slice_coords,
|
||||
const float *virtual_coords,
|
||||
void *user_data);
|
||||
|
@ -107,8 +107,6 @@ _cogl_texture_rectangle_manual_repeat_cb (const float *coords,
|
||||
slice_coords[3] *= data->tex_rect->height;
|
||||
|
||||
data->callback (COGL_TEXTURE (data->tex_rect),
|
||||
data->tex_rect->gl_texture,
|
||||
GL_TEXTURE_RECTANGLE_ARB,
|
||||
slice_coords,
|
||||
coords,
|
||||
data->user_data);
|
||||
|
Loading…
Reference in New Issue
Block a user