Cogl.Context.new
Description: Reference for Cogl.Context.new

### Constructor

# Cogl Contextnew

#### Declaration [src]

    CoglContext*
    cogl_context_new (
      CoglDisplay* display,
      GError** error
    )

#### Description [src]

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

Stability: | Unstable
Available since: | 1.8
This constructor is not directly available to language bindings

#### Parameters

`display` | `CoglDisplay*`
| A `CoglDisplay` pointer.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `CoglContext`
| A newly allocated `CoglContext`.
| The caller of the function takes ownership of the data, and is responsible for freeing it.