render_texture
Description:
Renders a scene graph, described by a tree of `GskRenderNode` instances, to a texture.
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.
Parameters:
this |
a realized renderer |
root |
the render node to render |
viewport |
the section to draw or `NULL` to use |
Returns:
a texture with the rendered contents of |