summaryrefslogtreecommitdiff
path: root/cogl/cogl-pipeline-layer-state-private.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-11-25 17:36:03 +0000
committerRobert Bragg <robert@linux.intel.com>2011-12-06 19:02:06 +0000
commitdf0f9a862ff338463e2a677337fa466e6cb7b5c5 (patch)
treefcea2c29c80135b2dbaff0c94040da90a64c1ad6 /cogl/cogl-pipeline-layer-state-private.h
parent4cdf66f89b2beb13cbd461f848fb433b4af76566 (diff)
downloadcogl-df0f9a862ff338463e2a677337fa466e6cb7b5c5.tar.gz
pipeline: Add a snippet hook for the texture lookup
This adds a per-layer snippet hook for the texure lookup. Here the snippet can modify the texture coordinates used for the lookup or modify the texel resulting from the lookup. This is the first per-layer hook so this also adds the COGL_PIPELINE_LAYER_STATE_FRAGMENT_SNIPPETS state and all of the boilerplate needed to make that work. Most of the functions used by the pipeline state to manage the snippet list has been moved into cogl-pipeline-snippet.c so that it can be shared with the layer state. Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-pipeline-layer-state-private.h')
-rw-r--r--cogl/cogl-pipeline-layer-state-private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cogl/cogl-pipeline-layer-state-private.h b/cogl/cogl-pipeline-layer-state-private.h
index b840fc94..a2831784 100644
--- a/cogl/cogl-pipeline-layer-state-private.h
+++ b/cogl/cogl-pipeline-layer-state-private.h
@@ -78,6 +78,10 @@ gboolean
_cogl_pipeline_layer_point_sprite_coords_equal (CoglPipelineLayer *authority0,
CoglPipelineLayer *authority1);
+gboolean
+_cogl_pipeline_layer_fragment_snippets_equal (CoglPipelineLayer *authority0,
+ CoglPipelineLayer *authority1);
+
void
_cogl_pipeline_layer_hash_unit_state (CoglPipelineLayer *authority,
CoglPipelineLayer **authorities,
@@ -123,4 +127,9 @@ _cogl_pipeline_layer_hash_point_sprite_state (CoglPipelineLayer *authority,
CoglPipelineLayer **authorities,
CoglPipelineHashState *state);
+void
+_cogl_pipeline_layer_hash_fragment_snippets_state (CoglPipelineLayer *authority,
+ CoglPipelineLayer **authorities,
+ CoglPipelineHashState *state);
+
#endif /* __COGL_PIPELINE_LAYER_STATE_PRIVATE_H */