mutter/cogl
Robert Bragg b72f255c0a Start to reduce dependence on glib
Since we've had several developers from admirable projects say they
would like to use Cogl but would really prefer not to pull in
gobject,gmodule and glib as extra dependencies we are investigating if
we can get to the point where glib is only an optional dependency.
Actually we feel like we only make minimal use of glib anyway, so it may
well be quite straightforward to achieve this.

This adds a --disable-glib configure option that can be used to disable
features that depend on glib.

Actually --disable-glib doesn't strictly disable glib at this point
because it's more helpful if cogl continues to build as we make
incremental progress towards this.

The first use of glib that this patch tackles is the use of
g_return_val_if_fail and g_return_if_fail which have been replaced with
equivalent _COGL_RETURN_VAL_IF_FAIL and _COGL_RETURN_IF_FAIL macros.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
2011-11-01 12:03:02 +00:00
..
driver Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
tesselator
winsys Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl2-clip-state.c
cogl2-clip-state.h
cogl2-experimental.h 2.0: Add cogl2-experimental.h + don't pollute .pc CFLAGS 2011-09-09 15:06:31 +01:00
cogl2-path.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl2-path.h
cogl-1.0.pc.in
cogl-2.0-experimental.pc.in 2.0: Add cogl2-experimental.h + don't pollute .pc CFLAGS 2011-09-09 15:06:31 +01:00
cogl-atlas-texture-private.h
cogl-atlas-texture.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-atlas.c Move the cogl texture driver functions to a vtable 2011-07-08 15:35:51 +01:00
cogl-atlas.h
cogl-attribute-buffer-private.h
cogl-attribute-buffer.c make COGL_FEATURE_VBOS a private feature 2011-11-01 12:03:01 +00:00
cogl-attribute-buffer.h
cogl-attribute-private.h attributes: avoid g_strdup in cogl_attribute_new 2011-09-21 15:39:46 +01:00
cogl-attribute.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-attribute.h
cogl-bitmap-fallback.c
cogl-bitmap-pixbuf.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-bitmap-private.h Export API for uploading a tex subregion from a CoglBuffer 2011-07-25 22:45:24 +01:00
cogl-bitmap.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-bitmap.h Export API for uploading a tex subregion from a CoglBuffer 2011-07-25 22:45:24 +01:00
cogl-bitmask.c
cogl-bitmask.h
cogl-blend-string.c blend-strings: Make braces around blend factor optional 2011-09-05 17:54:46 +01:00
cogl-blend-string.h
cogl-blit.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-blit.h
cogl-buffer-private.h buffer: make the COGL_BUFFER casting macro public 2011-08-12 15:28:43 +01:00
cogl-buffer.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-buffer.h buffer: make the COGL_BUFFER casting macro public 2011-08-12 15:28:43 +01:00
cogl-clip-stack.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-clip-stack.h clip: Adds cogl_clip_push_primitive API 2011-11-01 12:02:59 +00:00
cogl-clip-state-private.h framebuffer: don't reference default fb in _clear apis 2011-08-12 15:28:43 +01:00
cogl-clip-state.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-clip-state.h
cogl-clutter.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-clutter.h
cogl-color-private.h
cogl-color.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-color.h
cogl-config-private.h cogl: Add support for reading a cogl.conf config file 2011-08-12 15:28:42 +01:00
cogl-config.c cogl: Add support for reading a cogl.conf config file 2011-08-12 15:28:42 +01:00
cogl-context-private.h features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-context.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-context.h context: Add an accessor to get display associated with the context 2011-09-05 17:54:46 +01:00
cogl-debug-options.h Mark the debug options for translation 2011-10-14 13:56:51 +01:00
cogl-debug.c Mark the debug options for translation 2011-10-14 13:56:51 +01:00
cogl-debug.h cogl: Add support for reading a cogl.conf config file 2011-08-12 15:28:42 +01:00
cogl-defines.h.in Add _cogl_egl_texture_2d_new_from_image API 2011-06-01 20:44:42 +01:00
cogl-deprecated.h
cogl-depth-state-private.h
cogl-depth-state.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-depth-state.h features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-display-private.h egl-gdl: struct gdl_plane never was a valid type 2011-07-29 11:50:15 +01:00
cogl-display.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-display.h Fix typo in cogl/cogl-display.h 2011-09-06 11:19:20 +01:00
cogl-enum-types.c.in
cogl-enum-types.h.in
cogl-euler.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-euler.h
cogl-ext-functions.h offscreen: Adds support for offscreen multisampling 2011-10-28 19:10:16 +01:00
cogl-feature-private.c Don't use the 'NULL' GModule to resolve GL symbols 2011-07-27 16:10:02 +01:00
cogl-feature-private.h Don't use the 'NULL' GModule to resolve GL symbols 2011-07-27 16:10:02 +01:00
cogl-fixed.c Fix testing of undefined macro constants to check for definedness instead 2011-07-27 18:46:36 +01:00
cogl-fixed.h
cogl-flags.h
cogl-framebuffer-private.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-framebuffer.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-framebuffer.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-glx-display-private.h work towards consistent platform file/symbol naming 2011-06-30 14:34:33 +01:00
cogl-glx-renderer-private.h Don't use the 'NULL' GModule to resolve GL symbols 2011-07-27 16:10:02 +01:00
cogl-gtype-private.h
cogl-handle.h
cogl-index-buffer-private.h
cogl-index-buffer.c make COGL_FEATURE_VBOS a private feature 2011-11-01 12:03:01 +00:00
cogl-index-buffer.h
cogl-indices-private.h
cogl-indices.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-indices.h
cogl-internal.h make COGL_FEATURE_VBOS a private feature 2011-11-01 12:03:01 +00:00
cogl-journal-private.h Add a strong CoglTexture type to replace CoglHandle 2011-09-21 15:27:03 +01:00
cogl-journal.c make COGL_FEATURE_VBOS a private feature 2011-11-01 12:03:01 +00:00
cogl-material-compat.c Remove G_CONST_RETURN 2011-06-09 16:21:15 +01:00
cogl-material-compat.h Remove G_CONST_RETURN 2011-06-09 16:21:15 +01:00
cogl-matrix-private.h matrix-mesa: move to _cogl_matrix namespace 2011-07-04 15:31:50 +01:00
cogl-matrix-stack.c Dynamically load the GL or GLES library 2011-07-11 12:57:38 +01:00
cogl-matrix-stack.h
cogl-matrix.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-matrix.h matrix: Add cogl_matrix_look_at 2011-08-12 15:28:44 +01:00
cogl-meta-texture.c meta-texture: This publicly exposes CoglMetaTexture 2011-11-01 12:03:01 +00:00
cogl-meta-texture.h meta-texture: This publicly exposes CoglMetaTexture 2011-11-01 12:03:01 +00:00
cogl-node-private.h pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-node.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-object-private.h cogl-debug: add instrumentation to track the number of objects 2011-06-14 12:14:02 +01:00
cogl-object.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-object.h cogl-debug: add instrumentation to track the number of objects 2011-06-14 12:14:02 +01:00
cogl-offscreen.h Add a strong CoglTexture type to replace CoglHandle 2011-09-21 15:27:03 +01:00
cogl-onscreen-private.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-onscreen-template-private.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-onscreen-template.c onscreen: Support multisample based onscreen rendering 2011-10-28 19:10:16 +01:00
cogl-onscreen-template.h onscreen: Support multisample based onscreen rendering 2011-10-28 19:10:16 +01:00
cogl-onscreen.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-onscreen.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-pango.h
cogl-path-private.h clip-stack: Move path flushing code to cogl-clip-stack.c 2011-11-01 12:02:59 +00:00
cogl-path.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-path.h
cogl-pipeline-cache.c cogl-pipeline/cogl-pango: Added forgotten includes 2011-09-26 15:53:30 +01:00
cogl-pipeline-cache.h cogl-pipeline: Use the pipeline cache for the GLSL backends 2011-07-13 12:30:07 +01:00
cogl-pipeline-debug.c pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-pipeline-fragend-arbfp-private.h fragend-arbfp: Move the pipeline cache to a separate file 2011-07-13 12:30:07 +01:00
cogl-pipeline-fragend-arbfp.c features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-pipeline-fragend-fixed-private.h
cogl-pipeline-fragend-fixed.c cogl-pipeline/cogl-pango: Added forgotten includes 2011-09-26 15:53:30 +01:00
cogl-pipeline-fragend-glsl-private.h
cogl-pipeline-fragend-glsl.c features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-pipeline-layer-private.h Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
cogl-pipeline-layer-state-private.h pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-pipeline-layer-state.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-pipeline-layer-state.h Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
cogl-pipeline-layer.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-pipeline-opengl-private.h
cogl-pipeline-opengl.c framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-pipeline-private.h pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-pipeline-progend-glsl-private.h
cogl-pipeline-progend-glsl.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-pipeline-state-private.h Make backface culling be part of the legacy state 2011-09-19 16:40:07 +01:00
cogl-pipeline-state.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-pipeline-state.h pipeline: split out all core state apis 2011-09-19 16:35:59 +01:00
cogl-pipeline-vertend-fixed-private.h cogl: Add a fixed function vertend 2010-12-13 17:22:57 +00:00
cogl-pipeline-vertend-fixed.c cogl-pipeline/cogl-pango: Added forgotten includes 2011-09-26 15:53:30 +01:00
cogl-pipeline-vertend-glsl-private.h
cogl-pipeline-vertend-glsl.c features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-pipeline.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-pipeline.h pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-pixel-buffer-private.h
cogl-pixel-buffer.c make COGL_FEATURE_PBOS a private feature 2011-11-01 12:03:01 +00:00
cogl-pixel-buffer.h
cogl-point-in-poly-private.h
cogl-point-in-poly.c
cogl-primitive-private.h primitive: Adds _cogl_primitive_draw api taking flags 2011-11-01 12:02:59 +00:00
cogl-primitive.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-primitive.h
cogl-primitives-private.h cogl: Don't flush the journal when flushing clip state 2010-11-04 18:10:08 +00:00
cogl-primitives.c Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
cogl-primitives.h
cogl-private.h Add internal _cogl_push_source to optionally disable legacy state 2011-09-19 16:40:06 +01:00
cogl-profile.c Mark the debug options for translation 2011-10-14 13:56:51 +01:00
cogl-profile.h
cogl-program-private.h
cogl-program.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-quaternion-private.h
cogl-quaternion.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-quaternion.h
cogl-queue.h cogl-queue: Make suitable for use in Cogl source code 2011-07-01 17:52:55 +01:00
cogl-rectangle-map.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-rectangle-map.h cogl-atlas: Rename to CoglRectangleMap 2010-08-12 11:54:42 +01:00
cogl-renderer-private.h Fix testing of undefined macro constants to check for definedness instead 2011-07-27 18:46:36 +01:00
cogl-renderer.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-renderer.h renderer: Add cogl_renderer_get_n_fragment_texture_units() 2011-09-05 17:54:46 +01:00
cogl-shader-boilerplate.h Dynamically load the GL or GLES library 2011-07-11 12:57:38 +01:00
cogl-shader-private.h Dynamically load the GL or GLES library 2011-07-11 12:57:38 +01:00
cogl-shader.c features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-shader.h cogl-shader: Update the gtk-doc 2011-10-21 12:24:01 +01:00
cogl-spans.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-spans.h Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
cogl-sub-texture-private.h
cogl-sub-texture.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-swap-chain-private.h
cogl-swap-chain.c
cogl-swap-chain.h
cogl-texture-2d-private.h Add _cogl_egl_texture_2d_new_from_image API 2011-06-01 20:44:42 +01:00
cogl-texture-2d-sliced-private.h texture-2d-sliced: make CoglTexture2DSliced public 2011-11-01 12:02:59 +00:00
cogl-texture-2d-sliced.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-texture-2d-sliced.h texture-2d-sliced: make CoglTexture2DSliced public 2011-11-01 12:02:59 +00:00
cogl-texture-2d.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-texture-2d.h features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-texture-3d-private.h
cogl-texture-3d.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-texture-3d.h
cogl-texture-driver.h Move the cogl texture driver functions to a vtable 2011-07-08 15:35:51 +01:00
cogl-texture-private.h meta-texture: This publicly exposes CoglMetaTexture 2011-11-01 12:03:01 +00:00
cogl-texture-rectangle-private.h meta-texture: This publicly exposes CoglMetaTexture 2011-11-01 12:03:01 +00:00
cogl-texture-rectangle.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-texture.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-texture.h pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-types.h texture-2d-sliced: make CoglTexture2DSliced public 2011-11-01 12:02:59 +00:00
cogl-util.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-util.h Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-vector.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-vector.h
cogl-vertex-buffer-private.h
cogl-vertex-buffer.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-vertex-buffer.h docs: clarify cogl_vertex_buffer_adds docs 2011-02-09 19:12:12 +00:00
cogl-wayland-renderer.h Updates wayland symbol names to be consistent 2011-06-30 14:34:46 +01:00
cogl-win32-renderer.c replace public native_event APIs with typesafe APIs 2011-06-30 14:33:13 +01:00
cogl-win32-renderer.h renderer: split win32 api out into separate header 2011-06-30 14:34:46 +01:00
cogl-x11-renderer-private.h work towards consistent platform file/symbol naming 2011-06-30 14:34:33 +01:00
cogl-xlib-display-private.h work towards consistent platform file/symbol naming 2011-06-30 14:34:33 +01:00
cogl-xlib-private.h replace _xlib_add_filter use with _cogl_renderer API 2011-06-01 20:44:42 +01:00
cogl-xlib-renderer-private.h work towards consistent platform file/symbol naming 2011-06-30 14:34:33 +01:00
cogl-xlib-renderer.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-xlib-renderer.h work towards consistent platform file/symbol naming 2011-06-30 14:34:33 +01:00
cogl-xlib.c work towards consistent platform file/symbol naming 2011-06-30 14:34:33 +01:00
cogl-xlib.h
cogl.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
Makefile.am framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
stb_image.c stb_image: use glib sized types 2011-08-12 15:28:42 +01:00