summaryrefslogtreecommitdiff
path: root/cogl/cogl-pipeline-layer-state.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-10-13 14:02:37 +0100
committerRobert Bragg <robert@linux.intel.com>2011-11-01 12:03:02 +0000
commit1a30f4fb1535c9bca26859b97575877a6299d2c8 (patch)
tree60900a32f9427f571c6efaa21928ddb80b9fb764 /cogl/cogl-pipeline-layer-state.h
parent1d8fd64e1cd74a44cb60689bd5ee2c8c8f518b20 (diff)
downloadcogl-1a30f4fb1535c9bca26859b97575877a6299d2c8.tar.gz
Adds support for a mirrored repeat wrap mode
This adds COGL_PIPELINE_WRAP_MODE_MIRRORED_REPEAT enum so that mirrored texture repeating can be used. This also adds support for emulating the MIRRORED_REPEAT mode via the cogl-spans API so it can also be used with meta textures such as sliced and atlas textures. Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-pipeline-layer-state.h')
-rw-r--r--cogl/cogl-pipeline-layer-state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogl/cogl-pipeline-layer-state.h b/cogl/cogl-pipeline-layer-state.h
index cf31bf55..b1f57367 100644
--- a/cogl/cogl-pipeline-layer-state.h
+++ b/cogl/cogl-pipeline-layer-state.h
@@ -111,8 +111,9 @@ typedef enum {
*/
typedef enum {
COGL_PIPELINE_WRAP_MODE_REPEAT = 0x2901,
+ COGL_PIPELINE_WRAP_MODE_MIRRORED_REPEAT = 0x8370,
COGL_PIPELINE_WRAP_MODE_CLAMP_TO_EDGE = 0x812F,
- COGL_PIPELINE_WRAP_MODE_AUTOMATIC = 0x0207
+ COGL_PIPELINE_WRAP_MODE_AUTOMATIC = 0x0207 /* GL_ALWAYS */
} CoglPipelineWrapMode;
/* NB: these values come from the equivalents in gl.h */