mutter/cogl/driver/gles
Neil Roberts 4eca571a32 Add an internal _cogl_bitmap_new_from_buffer
This function creates a CoglBitmap which internally references a
CoglBuffer. The map and unmap functions will divert to mapping the
buffer. There are also now bind and unbind functions which should be
used instead of map and unmap whenever the data doesn't need to be
read from the CPU but will instead be passed to GL for packing or
unpacking. For bitmaps created from buffers this just binds the
bitmap.

cogl_texture_new_from_buffer now just uses this function to wrap the
buffer in a bitmap rather than trying to bind the buffer
immediately. This means that the buffer will be bound only at the
point right before the texture data is uploaded.

This approach means that using a pixel array will take the fastest
upload route if possible, but can still fallback to copying the data
by mapping the buffer if some conversion is needed. Previously it
would just crash in this case because the texture functions were all
passed a NULL pointer.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2112
2010-07-15 17:27:15 +01:00
..
cogl-context-driver.c cogl-gles2: Prefix internal GLES 2 wrapper symbols with _ 2010-06-11 16:06:31 +01:00
cogl-context-driver.h cogl: Introduce private feature flags and check for ARB_fp 2010-06-09 15:19:30 +01:00
cogl-feature-functions.h Add a Cogl texture 3D backend 2010-07-13 14:28:52 +01:00
cogl-fixed-fragment-shader.glsl cogl-gles2: Prefix internal GLES 2 wrapper symbols with _ 2010-06-11 16:06:31 +01:00
cogl-fixed-vertex-shader.glsl cogl-material: Add a property for setting the point size 2010-07-08 16:34:30 +01:00
cogl-gles2-wrapper.c Add a Cogl texture 3D backend 2010-07-13 14:28:52 +01:00
cogl-gles2-wrapper.h Add a Cogl texture 3D backend 2010-07-13 14:28:52 +01:00
cogl-program.c Add the deprecated ref-counting for cogl_program 2010-07-09 19:09:49 +01:00
cogl-program.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-shader-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-shader.c cogl: Don't define the deprecated ref/unref accessors for new types 2010-07-09 18:57:54 +01:00
cogl-texture-driver.c Add an internal _cogl_bitmap_new_from_buffer 2010-07-15 17:27:15 +01:00
cogl.c cogl-material: Add support for point sprites 2010-07-08 16:34:30 +01:00
Makefile.am cogl: Remove cogl-defines.h.in from the driver make files 2010-06-23 17:44:09 +01:00
stringify.sh Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00