summaryrefslogtreecommitdiff
path: root/cogl/cogl-types.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-02-17 21:46:39 +0000
committerRobert Bragg <robert@linux.intel.com>2012-02-20 23:12:44 +0000
commitee940a3d0d0a67d67ad7ebb4b2356a1ae614ca44 (patch)
treeabea4d8aefa470460c8da5748f18bfd9ee0af8f6 /cogl/cogl-types.h
parent1022c285c6f7313972d8ec96a12b71f3e07880d4 (diff)
downloadcogl-ee940a3d0d0a67d67ad7ebb4b2356a1ae614ca44.tar.gz
Move all types/prototypes from cogl.h -> cogl[1]-context.h
So we can get to the point where cogl.h is merely an aggregation of header includes for the 1.x api this moves all the function prototypes and type definitions into a cogl-context.h and a new cogl1-context.h. Ideally no code internally should ever need to include cogl.h as it just represents the public facing header for accessing the 1.x api which should only be used by Clutter. Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-types.h')
-rw-r--r--cogl/cogl-types.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/cogl/cogl-types.h b/cogl/cogl-types.h
index b8edb695..d60c4acc 100644
--- a/cogl/cogl-types.h
+++ b/cogl/cogl-types.h
@@ -717,6 +717,34 @@ typedef enum
COGL_WINDING_COUNTER_CLOCKWISE
} CoglWinding;
+/**
+ * CoglBufferBit:
+ * @COGL_BUFFER_BIT_COLOR: Selects the primary color buffer
+ * @COGL_BUFFER_BIT_DEPTH: Selects the depth buffer
+ * @COGL_BUFFER_BIT_STENCIL: Selects the stencil buffer
+ *
+ * Types of auxiliary buffers
+ *
+ * Since: 1.0
+ */
+typedef enum {
+ COGL_BUFFER_BIT_COLOR = 1L<<0,
+ COGL_BUFFER_BIT_DEPTH = 1L<<1,
+ COGL_BUFFER_BIT_STENCIL = 1L<<2
+} CoglBufferBit;
+
+/**
+ * CoglReadPixelsFlags:
+ * @COGL_READ_PIXELS_COLOR_BUFFER: Read from the color buffer
+ *
+ * Flags for cogl_read_pixels()
+ *
+ * Since: 1.0
+ */
+typedef enum { /*< prefix=COGL_READ_PIXELS >*/
+ COGL_READ_PIXELS_COLOR_BUFFER = 1L << 0
+} CoglReadPixelsFlags;
+
G_END_DECLS
#endif /* __COGL_TYPES_H__ */