Method

GskRendererrender_texture

Declaration [src]

GdkTexture*
gsk_renderer_render_texture (
  GskRenderer* renderer,
  GskRenderNode* root,
  const graphene_rect_t* viewport
)

Description [src]

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

root

Type: GskRenderNode

The render node to render.

The data is owned by the caller of the method.
viewport

Type: graphene_rect_t

The section to draw or NULL to use roots bounds.

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: GdkTexture

A texture with the rendered contents of root.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.