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>
This commit is contained in:
@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user