NglRenderer

Constructors

this
this(GskNglRenderer* gskNglRenderer, bool ownedRef)

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

this
this()

Creates a new #GskRenderer using the new OpenGL renderer.

Members

Functions

getNglRendererStruct
GskNglRenderer* getNglRendererStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gskNglRenderer
GskNglRenderer* gskNglRenderer;

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