render_texture


Description:

public Texture render_texture (RenderNode root, Rect? viewport)

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

The this 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.

Parameters:

this

a realized `GskRenderer`

root

a `GskRenderNode`

viewport

the section to draw or null to use root's bounds

Returns:

a `GdkTexture` with the rendered contents of root.