2007-05-02 Matthew Allum <mallum@openedhand.com>

* clutter/clutter-actor.c:
        * clutter/cogl/gles/cogl.c:
        Fix rotation + other fixed point cleanups.

        * clutter/clutter-texture.h:
        Sketch out an updated API.
This commit is contained in:
Matthew Allum
2007-05-02 09:01:11 +00:00
parent 78bf6ccb88
commit 2845bb5b74
4 changed files with 58 additions and 126 deletions

View File

@ -31,12 +31,39 @@
G_BEGIN_DECLS
#define CLUTTER_TEXTURE_FORMAT_RGB 1
#define CLUTTER_TEXTURE_FORMAT_RGBA 2
#define CLUTTER_TEXTURE_FORMAT_BGR 3
#define CLUTTER_TEXTURE_FORMAT_BGRA 4
#define CLUTTER_TEXTURE_FORMAT_YUV 5
#define CLUTTER_TEXTURE_FORMAT_YUV2 6
#if 0
/* New API Ideas */
#define CLUTTER_TEXTURE_RGB_FLAG_BRGA (1<<1)
#define CLUTTER_TEXTURE_RGB_FLAG_PREMULT (1<<2)
gboolean
clutter_texture_set_from_rgb_data (ClutterTexture *texture,
const guchar *data,
gboolean has_alpha,
gint width,
gint height,
gint rowstride,
gint bpp,
gint flags,
GError *error);
gboolean
clutter_texture_set_from_yuv_data (ClutterTexture *texture,
const guchar *data,
gint width,
gint height,
gint flags,
GError *error);
Notes
=====
- drop format and type props - would be set in GL texture automagically
via about calls.
#endif
#define CLUTTER_TYPE_TEXTURE (clutter_texture_get_type ())
#define CLUTTER_TEXTURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_TEXTURE, ClutterTexture))