summaryrefslogtreecommitdiff
path: root/examples/crate.jpg
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-06-14 22:33:44 +0100
committerRobert Bragg <robert@linux.intel.com>2011-06-30 14:33:11 +0100
commita1234ee8d14a6f5d11bf9b5c67d95aac5d94256e (patch)
treeb1d2a00ff5fe401dc3ea61519370b48444feb434 /examples/crate.jpg
parente5c4c1ce7c6bc1c06c6fce5d516cca2e76cc5620 (diff)
downloadcogl-a1234ee8d14a6f5d11bf9b5c67d95aac5d94256e.tar.gz
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>
Diffstat (limited to 'examples/crate.jpg')
0 files changed, 0 insertions, 0 deletions