mutter/cogl
Neil Roberts 9a62c069aa cogl-rectangle-map: Store the remaining space per node
Previously the remaining space was managed as part of the
CoglRectangleMap struct. Now it is stored per node so that at any
point in the hierarchy we can quickly determine how much space is
remaining in all of the node's children. That way when adding a
rectangle we can miss out entire branches more quickly if we know that
there is no way the new rectangle would fit in that branch.

This also adds a function to recursively verify the cached state in
the nodes such as the remaining space and the number of
rectangles. This function is only called when the dump-atlas-image
debug flag is set because it is potentially quite slow.
2010-08-12 11:56:59 +01:00
..
driver cogl: Allow setting ARBfp source on a CoglShader 2010-08-09 17:27:02 +01:00
tesselator Fix building the tesselator code for GLES 2010-07-01 20:39:57 +01:00
winsys cogl: don't include cogl-debug.h in cogl.h or install 2010-08-02 17:41:42 +01:00
cogl-atlas-texture-private.h cogl-atlas-texture: Split out the atlas data structure 2010-08-12 11:56:59 +01:00
cogl-atlas-texture.c cogl-atlas: Support multiple formats and clearing the texture 2010-08-12 11:56:59 +01:00
cogl-atlas.c cogl-atlas: Increase the default minimum texture size 2010-08-12 11:56:59 +01:00
cogl-atlas.h cogl-atlas: Support multiple formats and clearing the texture 2010-08-12 11:56:59 +01:00
cogl-bitmap-fallback.c cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-bitmap-pixbuf.c cogl-bitmap-pixbuf: Avoid copying the buffer in more circumstances 2010-07-22 20:13:37 +01:00
cogl-bitmap-private.h Add an internal _cogl_bitmap_new_from_buffer 2010-07-15 17:27:15 +01:00
cogl-bitmap.c cogl: don't include cogl-debug.h in cogl.h or install 2010-08-02 17:41:42 +01:00
cogl-bitmap.h Make a public CoglBitmapError enum 2010-07-13 14:28:45 +01:00
cogl-bitmask.c
cogl-bitmask.h
cogl-blend-string.c
cogl-blend-string.h
cogl-buffer-private.h cogl-buffer: Move malloc fallback logic into CoglBuffer 2010-07-07 14:08:11 +01:00
cogl-buffer.c cogl-buffer: Move malloc fallback logic into CoglBuffer 2010-07-07 14:08:11 +01:00
cogl-buffer.h cogl-buffer: consider it an error to free a mapped buffer 2010-07-07 14:08:11 +01:00
cogl-callback-list.c cogl: Add an internal utility to maintain a list of callback functions 2010-08-12 11:54:42 +01:00
cogl-callback-list.h cogl: Add an internal utility to maintain a list of callback functions 2010-08-12 11:54:42 +01:00
cogl-clip-stack.c Don't define public cogl_is_* functions for internal types 2010-07-09 18:57:54 +01:00
cogl-clip-stack.h
cogl-clip-state.c framebuffer: Replace CoglHandle with CoglFramebuffer * 2010-07-07 14:41:54 +01:00
cogl-clip-state.h
cogl-color-private.h
cogl-color.c
cogl-color.h
cogl-context.c cogl-atlas-texture: Split out the atlas data structure 2010-08-12 11:56:59 +01:00
cogl-context.h cogl-atlas-texture: Split out the atlas data structure 2010-08-12 11:56:59 +01:00
cogl-debug.c Add a Cogl debug flag for BITMAP 2010-07-15 17:27:15 +01:00
cogl-debug.h Add a Cogl debug flag for BITMAP 2010-07-15 17:27:15 +01:00
cogl-defines.h.in configure: Include gl2ext.h or glext.h under GLES 2010-07-13 14:28:51 +01:00
cogl-deprecated.h
cogl-enum-types.c.in
cogl-enum-types.h.in
cogl-feature-private.c
cogl-feature-private.h
cogl-fixed.c
cogl-fixed.h
cogl-framebuffer-private.h framebuffer: Replace CoglHandle with CoglFramebuffer * 2010-07-07 14:41:54 +01:00
cogl-framebuffer.c cogl: don't include cogl-debug.h in cogl.h or install 2010-08-02 17:41:42 +01:00
cogl-handle.h
cogl-internal.h cogl: Adds a COGL_FEATURE_SHADERS_ARBFP feature flag 2010-08-09 17:27:02 +01:00
cogl-journal-private.h
cogl-journal.c cogl: don't include cogl-debug.h in cogl.h or install 2010-08-02 17:41:42 +01:00
cogl-material-arbfp-private.h
cogl-material-arbfp.c cogl: Allow setting ARBfp source on a CoglShader 2010-08-09 17:27:02 +01:00
cogl-material-fixed-private.h
cogl-material-fixed.c material: split the texture unit management out 2010-07-13 19:26:58 +01:00
cogl-material-glsl-private.h
cogl-material-glsl.c cogl: Allow setting ARBfp source on a CoglShader 2010-08-09 17:27:02 +01:00
cogl-material-opengl-private.h cogl-program: gles2: bind programs lazily as for GL 2010-08-03 15:00:07 +01:00
cogl-material-opengl.c Always bind a new texture to unit 1 when necessary 2010-08-09 22:02:03 +01:00
cogl-material-private.h material: Add cogl_material_{get,set}_user_program 2010-08-09 17:26:57 +01:00
cogl-material.c cogl-material: Compare whether textures are equal by their GL handle 2010-08-12 11:36:18 +01:00
cogl-material.h material: Add cogl_material_{get,set}_user_program 2010-08-09 17:26:57 +01:00
cogl-matrix-mesa.c
cogl-matrix-mesa.h
cogl-matrix-private.h
cogl-matrix-stack.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-stack.h
cogl-matrix.c cogl: don't include cogl-debug.h in cogl.h or install 2010-08-02 17:41:42 +01:00
cogl-matrix.h
cogl-object-private.h Don't define public cogl_is_* functions for internal types 2010-07-09 18:57:54 +01:00
cogl-object.c
cogl-object.h
cogl-offscreen.h
cogl-path-private.h
cogl-path.c material: splits out all the state flushing code 2010-07-13 19:26:58 +01:00
cogl-path.h
cogl-pixel-array-private.h cogl-buffer: Track the last used bind target in CoglBuffer 2010-07-07 14:08:11 +01:00
cogl-pixel-array.c cogl-buffer: Move malloc fallback logic into CoglBuffer 2010-07-07 14:08:11 +01:00
cogl-pixel-array.h
cogl-primitives.c cogl: don't include cogl-debug.h in cogl.h or install 2010-08-02 17:41:42 +01:00
cogl-primitives.h
cogl-profile.c
cogl-profile.h
cogl-rectangle-map.c cogl-rectangle-map: Store the remaining space per node 2010-08-12 11:56:59 +01:00
cogl-rectangle-map.h cogl-atlas: Rename to CoglRectangleMap 2010-08-12 11:54:42 +01:00
cogl-shader-private.h cogl: Allow setting ARBfp source on a CoglShader 2010-08-09 17:27:02 +01:00
cogl-shader.c Silence a compiler warning 2010-08-09 19:38:23 +01:00
cogl-shader.h
cogl-spans.c
cogl-spans.h
cogl-sub-texture-private.h
cogl-sub-texture.c Rename the third texure coordinate from 'r' to 'p' 2010-07-13 14:29:07 +01:00
cogl-texture-2d-private.h cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-texture-2d-sliced-private.h cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-texture-2d-sliced.c cogl: don't include cogl-debug.h in cogl.h or install 2010-08-02 17:41:42 +01:00
cogl-texture-2d.c cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-texture-3d-private.h cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-texture-3d.c cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-texture-3d.h Add a Cogl texture 3D backend 2010-07-13 14:28:52 +01:00
cogl-texture-driver.h Add a Cogl texture 3D backend 2010-07-13 14:28:52 +01:00
cogl-texture-private.h cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-texture-rectangle-private.h cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-texture-rectangle.c cogl-bitmap: Encapsulate the CoglBitmap even internally 2010-07-15 17:24:01 +01:00
cogl-texture.c Add an internal _cogl_bitmap_new_from_buffer 2010-07-15 17:27:15 +01:00
cogl-texture.h
cogl-types.h cogl: Adds a COGL_FEATURE_SHADERS_ARBFP feature flag 2010-08-09 17:27:02 +01:00
cogl-util.c
cogl-util.h Move _cogl_texture_2d_is_pot to cogl-util.h 2010-07-13 14:28:35 +01:00
cogl-vector.c
cogl-vector.h
cogl-vertex-buffer-private.h
cogl-vertex-buffer.c material: splits out all the state flushing code 2010-07-13 19:26:58 +01:00
cogl-vertex-buffer.h Add cogl_vertex_buffer_is_indices to the public headers 2010-07-09 18:57:54 +01:00
cogl.c cogl: Allow setting ARBfp source on a CoglShader 2010-08-09 17:27:02 +01:00
cogl.h cogl: don't include cogl-debug.h in cogl.h or install 2010-08-02 17:41:42 +01:00
cogl.pc.in
Makefile.am cogl-atlas-texture: Split out the atlas data structure 2010-08-12 11:56:59 +01:00
stb_image.c