Add ClutterCanvas, a drawing content

This commit is contained in:
Emmanuele Bassi
2012-03-08 10:31:21 +00:00
parent e2f1153c46
commit 07bb35bbe3
12 changed files with 785 additions and 21 deletions

View File

@ -248,4 +248,24 @@
# define CLUTTER_AVAILABLE_IN_1_10
#endif
/**
* CLUTTER_CAIRO_FORMAT_ARGB32:
*
* The #CoglPixelFormat to be used when uploading image data from
* and to a Cairo image surface using %CAIRO_FORMAT_ARGB32 and
* %CAIRO_FORMAT_RGB24 as #cairo_format_t.
*
* Since: 1.8
*/
/* Cairo stores the data in native byte order as ARGB but Cogl's pixel
* formats specify the actual byte order. Therefore we need to use a
* different format depending on the architecture
*/
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
#define CLUTTER_CAIRO_FORMAT_ARGB32 (COGL_PIXEL_FORMAT_BGRA_8888_PRE)
#else
#define CLUTTER_CAIRO_FORMAT_ARGB32 (COGL_PIXEL_FORMAT_ARGB_8888_PRE)
#endif
#endif /* __CLUTTER_MACROS_H__ */