create
Create a texture that can be rendered with renderTexture and drawn to
with renderTarget. Starts transparent (all zero).
Remember to destroy the texture at some point, see destroyLater.
Only valid between Window.beginand Window.end.
Parameters
- options:CreateOptions
- CreateOptions
Source
Implementation
pub fn create(options: CreateOptions) TextureError!Target {
return try dvui.currentWindow().backend.textureCreateTarget(options);
}