Constructor

CoglContextnew

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

Parameters

display Coglisplay
 

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.