From ee940a3d0d0a67d67ad7ebb4b2356a1ae614ca44 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 17 Feb 2012 21:46:39 +0000 Subject: 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 --- cogl/cogl-types.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'cogl/cogl-types.h') 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__ */ -- cgit v1.2.1