On Wed, 2008-07-02 at 10:59 +0100, Robert Bragg wrote:
> One option is to use cogl_texture_new_from_data which supports more
> formats and also lets you control the internal format.
I was just about to reply saying the same thing with this little
example:
cogl_tex = cogl_texture_new_from_data (TEX_WIDTH, TEX_HEIGHT,
32, FALSE,
COGL_PIXEL_FORMAT_RGB_565,
COGL_PIXEL_FORMAT_ANY,
TEX_WIDTH * 2,
(guchar *) tex_data);
tex = clutter_texture_new ();
clutter_texture_set_cogl_texture (CLUTTER_TEXTURE (tex), cogl_tex);
cogl_texture_unref (cogl_tex);
- Neil
--
To unsubscribe send a mail to [EMAIL PROTECTED]