### Class

# Cogl Context

since: 13

#### Description

    final class Cogl.Context : GObject.TypeInstance
    {
      /* No available fields */
    }

No description available.

Available since: 13

#### Ancestors

- CoglObject

#### Constructors

###### cogl_context_new

Creates a new `CoglContext` which acts as an application sandbox for any state objects that are allocated.

since: 13

#### Instance methods

###### cogl_context_free_timestamp_query

No description available.

since: 13

###### 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.

since: 13

###### cogl_context_get_gpu_time_ns

This function should only be called if the COGL_FEATURE_ID_TIMESTAMP_QUERY feature is advertised.

since: 13

###### cogl_context_get_named_pipeline

No description available.

since: 13

###### 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.

since: 13

###### cogl_context_is_hardware_accelerated

No description available.

since: 13

###### 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.

since: 13

###### cogl_context_timestamp_query_get_time_ns

No description available.

since: 13

##### 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.

since: 13

###### 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`.

since: 13