mutter/cogl/winsys
Robert Bragg a1234ee8d1 Add internal _cogl_init() function
This adds a _cogl_init function for Cogl that we expect to be the first
thing called before anything else is done with Cogl. It's not a public
API so it's expected that all entry points for Cogl that might be the
first function used should call _cogl_init().

We currently call _cogl_init() in these functions:
  cogl_renderer_new
  cogl_display_new
  cogl_context_new
  cogl_android_set_native_window

_cogl_init() can be called multiple times, and only the first call has
any affect.

For example _cogl_init() gives us a place check and parse the COGL_DEBUG
environment variable.

Since we don't have any need to parse command line arguments (we can
always get user configuration options from the environment) our init
function doesn't require argc/argv pointers.

By saying up front that we aren't interested in command line arguments
that means we can avoid the mess that is GOption based library
initialization which is extremely fragile due to its lack of dependency
tracking between modules.

Signed-off-by: Neil Roberts <neil@linux.intel.com>
2011-06-30 14:33:11 +01:00
..
cogl-texture-pixmap-x11-private.h texture-pixmap-x11: Move GLX code to cogl-winsys-glx.c 2011-05-05 14:46:01 +01:00
cogl-texture-pixmap-x11.c cogl-texture-pixmap-x11: Fix the can_hardware_repeat wrapper 2011-06-10 18:43:56 +01:00
cogl-texture-pixmap-x11.h docs: API reference fixes 2010-09-20 13:15:44 +01:00
cogl-winsys-egl-feature-functions.h Adds _cogl_wayland_texture_2d_new_from_buffer API 2011-06-01 20:44:42 +01:00
cogl-winsys-egl-private.h Add _cogl_egl_texture_2d_new_from_image API 2011-06-01 20:44:42 +01:00
cogl-winsys-egl.c Add internal _cogl_init() function 2011-06-30 14:33:11 +01:00
cogl-winsys-glx-feature-functions.h Moves all GLX code down from Clutter to Cogl 2011-04-11 17:54:36 +01:00
cogl-winsys-glx.c remove _cogl_xlib_trap/untrap_errors wrappers 2011-06-01 20:44:42 +01:00
cogl-winsys-private.h Add internal _cogl_get_proc_address 2011-06-01 20:44:41 +01:00
cogl-winsys-sdl.c rename winsys files to be more consistent 2011-04-11 17:54:35 +01:00
cogl-winsys-stub-private.h Make stub winsys into a proper winsys backend 2011-06-01 20:44:41 +01:00
cogl-winsys-stub.c Make stub winsys into a proper winsys backend 2011-06-01 20:44:41 +01:00
cogl-winsys-wgl-feature-functions.h Add a WGL winsys 2011-05-10 17:58:41 +01:00
cogl-winsys-wgl.c Add internal _cogl_get_proc_address 2011-06-01 20:44:41 +01:00
cogl-winsys.c Add internal _cogl_get_proc_address 2011-06-01 20:44:41 +01:00