summaryrefslogtreecommitdiff
path: root/cogl/cogl-pipeline-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-11-11 15:08:38 +0000
committerRobert Bragg <robert@linux.intel.com>2010-11-23 12:50:28 +0000
commit1a3f946cc66b37f6043488a9b7b68df58b994d63 (patch)
tree5be0b40a114580620e3921869ebe1b862a3bab16 /cogl/cogl-pipeline-private.h
parentebdf1127320ab11a0ac7c1e6f2236fb633b61112 (diff)
downloadcogl-1a3f946cc66b37f6043488a9b7b68df58b994d63.tar.gz
cogl: remove WrapModeOverrides from FlushOptions
This removes the possibility to specify wrap mode overrides within a CoglPipelineFlushOptions struct since the right way to handle these overrides is by copying the user's material and making the changes to that copy before flushing. All primitives code has already switched away from using these wrap mode overrides so this patch just removes unused code and types. It also remove the wrap_mode_overrides argument for _cogl_journal_log_quad.
Diffstat (limited to 'cogl/cogl-pipeline-private.h')
-rw-r--r--cogl/cogl-pipeline-private.h32
1 files changed, 1 insertions, 31 deletions
diff --git a/cogl/cogl-pipeline-private.h b/cogl/cogl-pipeline-private.h
index 9767694c..611cd8a6 100644
--- a/cogl/cogl-pipeline-private.h
+++ b/cogl/cogl-pipeline-private.h
@@ -635,17 +635,13 @@ _cogl_pipeline_pre_paint_for_layer (CoglPipeline *pipeline,
* not passing the option at all.
* @COGL_PIPELINE_FLUSH_SKIP_GL_COLOR: When flushing the GL state for the
* pipeline don't call glColor.
- * @COGL_PIPELINE_FLUSH_WRAP_MODE_OVERRIDES: Specifies that a bitmask
- * of overrides for the wrap modes for some or all layers is
- * given.
*/
typedef enum _CoglPipelineFlushFlag
{
COGL_PIPELINE_FLUSH_FALLBACK_MASK = 1L<<0,
COGL_PIPELINE_FLUSH_DISABLE_MASK = 1L<<1,
COGL_PIPELINE_FLUSH_LAYER0_OVERRIDE = 1L<<2,
- COGL_PIPELINE_FLUSH_SKIP_GL_COLOR = 1L<<3,
- COGL_PIPELINE_FLUSH_WRAP_MODE_OVERRIDES = 1L<<4
+ COGL_PIPELINE_FLUSH_SKIP_GL_COLOR = 1L<<3
} CoglPipelineFlushFlag;
/* This isn't defined in the GLES headers */
@@ -667,31 +663,6 @@ typedef enum _CoglPipelineWrapModeInternal
COGL_PIPELINE_WRAP_MODE_INTERNAL_AUTOMATIC = GL_ALWAYS
} CoglPipelineWrapModeInternal;
-typedef enum _CoglPipelineWrapModeOverride
-{
- COGL_PIPELINE_WRAP_MODE_OVERRIDE_NONE = 0,
- COGL_PIPELINE_WRAP_MODE_OVERRIDE_REPEAT =
- COGL_PIPELINE_WRAP_MODE_INTERNAL_REPEAT,
- COGL_PIPELINE_WRAP_MODE_OVERRIDE_CLAMP_TO_EDGE =
- COGL_PIPELINE_WRAP_MODE_INTERNAL_CLAMP_TO_EDGE,
- COGL_PIPELINE_WRAP_MODE_OVERRIDE_CLAMP_TO_BORDER =
- COGL_PIPELINE_WRAP_MODE_INTERNAL_CLAMP_TO_BORDER,
-} CoglPipelineWrapModeOverride;
-
-/* There can't be more than 32 layers because we need to fit a bitmask
- of the layers into a guint32 */
-#define COGL_PIPELINE_MAX_LAYERS 32
-
-typedef struct _CoglPipelineWrapModeOverrides
-{
- struct
- {
- CoglPipelineWrapModeOverride s;
- CoglPipelineWrapModeOverride t;
- CoglPipelineWrapModeOverride p;
- } values[COGL_PIPELINE_MAX_LAYERS];
-} CoglPipelineWrapModeOverrides;
-
/*
* CoglPipelineFlushOptions:
*
@@ -703,7 +674,6 @@ typedef struct _CoglPipelineFlushOptions
guint32 fallback_layers;
guint32 disable_layers;
CoglHandle layer0_override_texture;
- CoglPipelineWrapModeOverrides wrap_mode_overrides;
} CoglPipelineFlushOptions;