Method

Gsk.Renderer.render_texture

Declaration [src]

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

Description [src]

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.

Parameters

root GskRenderNode
 

a GskRenderNode

 Ownership is not transferred to the callee
viewport const graphene_rect_t*
 

the section to draw or NULL to use roots bounds

 Can be NULL
 Ownership is not transferred to the callee

Return value

Returns: GdkTexture*

a GdkTexture with the rendered contents of root.

Ownership of the data is transferred to the caller