summaryrefslogtreecommitdiff
path: root/cogl/cogl-color-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-11-04 13:57:36 +0000
committerRobert Bragg <robert@linux.intel.com>2010-12-07 16:00:32 +0000
commit046434e222cff3717a0a2c46cdfb6b399621511a (patch)
treecd4712f85aa5fef0894bfaf582d63763306dd1d2 /cogl/cogl-color-private.h
parent2c9cd76baa76aa6ad4b6612bece7585ba9ed95b2 (diff)
pipeline: Implements _cogl_pipeline_hash function
This allows us to get a hash for a set of state groups for a given pipeline. This can be used for example to get a hash of the fragment processing state of a pipeline so we can implement a cache for compiled arbfp/glsl programs.
Diffstat (limited to 'cogl/cogl-color-private.h')
-rw-r--r--cogl/cogl-color-private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cogl/cogl-color-private.h b/cogl/cogl-color-private.h
index 2ce2bf76..78bfcf94 100644
--- a/cogl/cogl-color-private.h
+++ b/cogl/cogl-color-private.h
@@ -32,6 +32,11 @@
#include <glib.h>
+/* cogl-pipeline.c wants to be able to hash CoglColor data so it needs
+ * the exact data size to be able to avoid reading the padding bytes.
+ */
+#define _COGL_COLOR_DATA_SIZE 4
+
void
_cogl_color_get_rgba_4ubv (const CoglColor *color,
guint8 *dest);