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 giventexture
into the area given bybounds
.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