Renderer.renderTexture

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

The @renderer will acquire a reference on the GskRenderNode tree while the rendering is in progress.

If you want to apply any transformations to @root, you should put it into a transform node and pass that node instead.

class Renderer
renderTexture

Parameters

root RenderNode

a GskRenderNode

viewport Rect

the section to draw or %NULL to use @root's bounds

Return Value

Type: Texture

a GdkTexture with the rendered contents of @root.

Meta