Texture
A texture held by the backend. Can be drawn with dvui.renderTexture.
Fields
- ptr:*anyopaque
- *anyopaque
- width:u32
- u32
- height:u32
- u32
- format:TexturePixelFormat
- TexturePixelFormat
- interpolation:TextureInterpolation
- TextureInterpolation
- wrap_u:dvui.enums.TextureWrap
- dvui.enums.TextureWrap
- wrap_v:dvui.enums.TextureWrap
- dvui.enums.TextureWrap
Types
- Target
A texture held by the backend that can be drawn onto. See
dvui.Picture.
Functions
- updateImageSource
Update a texture that was created with
textureCreate. or fromImageSource- fromImageSource
creates a new Texture from an ImageSource
- fromTvgFile
Render
tvg_bytesatheightinto aTexture. Name is for debugging.- create
Create a texture that can be rendered with
renderTexture.- update
Update a texture that was created with
textureCreate.- updateSubRect
Update a sub-rectangle of a texture from raw PMA pixel data.
- readTarget
Read pixels from texture created with
textureCreateTarget.- fromTarget
Convert a target texture to a normal texture. target is destroyed. See
- fromTargetTemp
Get a temporary drawable Texture from a Target, that will be automatically
- destroyLater
Destroy a texture created with
textureCreateat the end of the frame.