1
0
Fork 0
mutter-performance-source/doc/reference
Neil Roberts 6197e3abf3 Add constructors which take a CoglBitmap to all primitive textures
This adds public constructors which take a CoglBitmap to all primitive
texture types. This constructor should be considered the canonical
constructor for initializing the texture with data because it should
be possible to wrap any type of data in a CoglBitmap. Having at least
this single constructor avoids the need to have an explosion of
constructors such as new_from_data, new_from_pixel_buffer and
new_from_file etc.

The already available internal bitmap constructor for CoglTexture2D
has had its flags parameter removed under the assumption that flags do
not make sense for primitive textures. The meta constructor
cogl_texture_new_from_bitmap now just explicitly calls set_auto_mipmap
after constructing the texture depending on the value of the
COGL_TEXTURE_NO_AUTO_MIPMAP flag.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
2012-04-05 13:47:32 +01:00
..
cogl Change API so that CoglPixelBuffer no longer knows its w/h/format 2012-03-05 18:47:45 +00:00
cogl-2.0-experimental Add constructors which take a CoglBitmap to all primitive textures 2012-04-05 13:47:32 +01:00
Makefile.am Make it clearer that the 2.0 API is experimental 2011-06-14 17:09:55 +01:00