Class
CoglContext
Constructors
cogl_context_new
Creates a new CoglContext
which acts as an application sandbox
for any state objects that are allocated.
Available since: 1.8
Instance methods
cogl_context_free_timestamp_query
cogl_context_get_display
Retrieves the CoglDisplay
that is internally associated with the
given context
. This will return the same CoglDisplay
that was
passed to cogl_context_new()
or if NULL
was passed to
cogl_context_new()
then this function returns a pointer to the
display that was automatically setup internally.
Available since: 1.8
cogl_context_get_gpu_time_ns
This function should only be called if the COGL_FEATURE_ID_TIMESTAMP_QUERY feature is advertised.
cogl_context_get_named_pipeline
cogl_context_get_renderer
Retrieves the CoglRenderer
that is internally associated with the
given context
. This will return the same CoglRenderer
that was
passed to cogl_display_new()
or if NULL
was passed to
cogl_display_new()
or cogl_context_new()
then this function returns
a pointer to the renderer that was automatically connected internally.
Available since: 1.16
cogl_context_is_hardware_accelerated
cogl_context_set_named_pipeline
Associate a CoglPipeline
with a context
and key
. This will not take a new
reference to the pipeline
, but will unref all associated pipelines when
the context
gets destroyed. Similarly, if a pipeline gets overwritten,
it will get unreffed as well.
cogl_context_timestamp_query_get_time_ns
Methods inherited from CoglObject (2)
cogl_object_get_user_data
Finds the user data previously associated with object
using
the given key
. If no user data has been associated with object
for the given key
this function returns NULL.
Available since: 1.4
cogl_object_set_user_data
Associates some private user_data
with a given CoglObject
. To
later remove the association call cogl_object_set_user_data()
with
the same key
but NULL for the user_data
.
Available since: 1.4