TextureNode

class TextureNode(*args, **kwargs)

Superclasses: RenderNode

A render node for a GdkTexture.

Constructors

class TextureNode
classmethod new(texture: Texture, bounds: Rect) TextureNode

Creates a GskRenderNode that will render the given texture into the area given by bounds.

Note that GSK applies linear filtering when textures are scaled and transformed. See TextureScaleNode for a way to influence filtering.

Parameters:
  • texture – the GdkTexture

  • bounds – the rectangle to render the texture into

Methods

class TextureNode
get_texture() Texture

Retrieves the GdkTexture used when creating this GskRenderNode.