mutter/cogl/driver/gl
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: 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 cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +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