Cogl.Context

g Cogl.Context Cogl.Context Cogl.Object Cogl.Object Cogl.Object->Cogl.Context

Subclasses:

None

Methods

Inherited:

Cogl.Object (2)

class

new (display)

get_display ()

get_renderer ()

Virtual Methods

None

Fields

None

Class Details

class Cogl.Context
Bases:

Cogl.Object

Abstract:

No

classmethod new(display)
Parameters:

display (Cogl.Display or None) – A Cogl.Display pointer

Raises:

GLib.Error

Returns:

A newly allocated Cogl.Context

Return type:

Cogl.Context

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

New in version 1.8.

get_display()
Returns:

The Cogl.Display associated with the given self.

Return type:

Cogl.Display

Retrieves the Cogl.Display that is internally associated with the given self. This will return the same Cogl.Display that was passed to Cogl.Context.new() or if None was passed to Cogl.Context.new() then this function returns a pointer to the display that was automatically setup internally.

New in version 1.8.

get_renderer()
Returns:

The Cogl.Renderer associated with the given self.

Return type:

Cogl.Renderer

Retrieves the Cogl.Renderer that is internally associated with the given self. This will return the same Cogl.Renderer that was passed to Cogl.Display.new() or if None was passed to Cogl.Display.new() or Cogl.Context.new() then this function returns a pointer to the renderer that was automatically connected internally.

New in version 1.16.