mutter/cogl/driver/gles
Neil Roberts ccc3068ffd cogl-bitmap: Encapsulate the CoglBitmap even internally
The CoglBitmap struct is now only defined within cogl-bitmap.c so that
all of its members can now only be accessed with accessor
functions. To get to the data pointer for the bitmap image you must
first call _cogl_bitmap_map and later call _cogl_bitmap_unmap. The map
function takes the same arguments as cogl_pixel_array_map so that
eventually we can make a bitmap optionally internally divert to a
pixel array.

There is a _cogl_bitmap_new_from_data function which constructs a new
bitmap object and takes ownership of the data pointer. The function
gets passed a destroy callback which gets called when the bitmap is
freed. This is similar to how gdk_pixbuf_new_from_data
works. Alternatively NULL can be passed for the destroy function which
means that the caller will manage the life of the pointer (but must
guarantee that it stays alive at least until the bitmap is
freed). This mechanism is used instead of the old approach of creating
a CoglBitmap struct on the stack and manually filling in the
members. It could also later be used to create a CoglBitmap that owns
a GdkPixbuf ref so that we don't necessarily have to copy the
GdkPixbuf data when converting to a bitmap.

There is also _cogl_bitmap_new_shared. This creates a bitmap using a
reference to another CoglBitmap for the data. This is a bit of a hack
but it is needed by the atlas texture backend which wants to divert
the set_region virtual to another texture but it needs to override the
format of the bitmap to ignore the premult flag.
2010-07-15 17:24:01 +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 cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +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