summaryrefslogtreecommitdiff
path: root/cogl/cogl-texture-private.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2010-03-25 17:29:22 +0000
committerNeil Roberts <neil@linux.intel.com>2010-04-12 15:44:23 +0100
commitfb7f1a7fd63c537d473a33557603bcd63745398e (patch)
treec46ac59af3256f495ba943fec592158bbbcdcca7 /cogl/cogl-texture-private.h
parent908be0480cb8f1d9f3da50a962e9064f2252b261 (diff)
downloadcogl-fb7f1a7fd63c537d473a33557603bcd63745398e.tar.gz
Split the wrap mode of _cogl_texture_set_wrap_mode into three
GL supports setting different wrap modes for the s, t and r coordinates so we should design the backend interface to support that also. The r coordinate is not currently used by any of the backends but we might as well have it to make life easier if we ever add support for 3D textures. http://bugzilla.openedhand.com/show_bug.cgi?id=2063
Diffstat (limited to 'cogl/cogl-texture-private.h')
-rw-r--r--cogl/cogl-texture-private.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/cogl/cogl-texture-private.h b/cogl/cogl-texture-private.h
index 01fc95b1..0f97233e 100644
--- a/cogl/cogl-texture-private.h
+++ b/cogl/cogl-texture-private.h
@@ -109,8 +109,10 @@ struct _CoglTextureVtable
void (* ensure_mipmaps) (CoglTexture *tex);
void (* ensure_non_quad_rendering) (CoglTexture *tex);
- void (* set_wrap_mode_parameter) (CoglTexture *tex,
- GLenum wrap_mode);
+ void (* set_wrap_mode_parameters) (CoglTexture *tex,
+ GLenum wrap_mode_s,
+ GLenum wrap_mode_t,
+ GLenum wrap_mode_r);
CoglPixelFormat (* get_format) (CoglTexture *tex);
GLenum (* get_gl_format) (CoglTexture *tex);
@@ -148,8 +150,11 @@ GLenum
_cogl_texture_get_gl_format (CoglHandle handle);
void
-_cogl_texture_set_wrap_mode_parameter (CoglHandle handle,
- GLenum wrap_mode);
+_cogl_texture_set_wrap_mode_parameters (CoglHandle handle,
+ GLenum wrap_mode_s,
+ GLenum wrap_mode_t,
+ GLenum wrap_mode_r);
+
void
_cogl_texture_set_filters (CoglHandle handle,