mutter/cogl/driver/gl
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: Introduce private feature flags and check for ARB_fp 2010-06-09 15:19:30 +01:00
cogl-context-driver.h material: Adds backend abstraction for fragment processing 2010-06-09 17:15:59 +01:00
cogl-feature-functions.h cogl-texture-3d: Use glTexSubImage3D through an indirect pointer 2010-07-14 17:45:15 +01:00
cogl-program.c material: splits out all the state flushing code 2010-07-13 19:26:58 +01:00
cogl-program.h material: Adds backend abstraction for fragment processing 2010-06-09 17:15:59 +01: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: expose the semantic differences of gl/gles2 npot textures 2010-07-07 13:26:41 +01:00
Makefile.am cogl: Remove cogl-defines.h.in from the driver make files 2010-06-23 17:44:09 +01:00