GLRenderer

A GSK renderer that is using OpenGL.

Constructors

this
this(GskGLRenderer* gskGLRenderer, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new #GskRenderer using OpenGL. This is the default renderer used by GTK.

Members

Functions

getGLRendererStruct
GskGLRenderer* getGLRendererStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gskGLRenderer
GskGLRenderer* gskGLRenderer;

the main Gtk struct

Inherited Members

From Renderer

gskRenderer
GskRenderer* gskRenderer;

the main Gtk struct

getRendererStruct
GskRenderer* getRendererStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getSurface
Surface getSurface()

Retrieves the GdkSurface set using gsk_enderer_realize().

isRealized
bool isRealized()

Checks whether the @renderer is realized or not.

realize
bool realize(Surface surface)

Creates the resources needed by the @renderer to render the scene graph.

render
void render(RenderNode root, Region region)

Renders the scene graph, described by a tree of GskRenderNode instances, ensuring that the given @region gets redrawn.

renderTexture
Texture renderTexture(RenderNode root, Rect viewport)

Renders the scene graph, described by a tree of GskRenderNode instances, to a GdkTexture.

unrealize
void unrealize()

Releases all the resources created by gsk_renderer_realize().

Meta