Creates a texture synchronously from an existing HTML element (Image, Canvas, Video).
The source image element.
Optionaloptions: ITextureOptionsOptional configuration for the texture.
The newly created Texture.
Creates a generic Render Texture (FrameBuffer).
The width of the render texture.
The height of the render texture.
Optionaloptions: ITextureOptionsOptional configuration for the texture.
The newly created RenderTexture.
Creates a TextTexture for rendering text.
The text to display.
Optionalstyle: ITextStyleOptional styling for the text.
Optionaloptions: ITextureOptionsOptional configuration for the texture.
The newly created TextTexture.
Destroys a texture and potentially removes its BaseTexture from the cache.
If a Texture instance is provided, it decrements the reference count of the BaseTexture.
The BaseTexture will only be destroyed if its reference count drops to 0, or if force is true.
The texture instance, base texture, or cache key (URL) to destroy.
If true, destroys the underlying BaseTexture immediately regardless of reference count.
Destroys all cached textures and clears the cache, ignoring reference counts.
Asynchronously loads a texture from a URL.
The image URL to load.
Optionaloptions: ITextureOptionsOptional configuration for the texture.
A promise that resolves to the loaded Texture.
Manages texture loading, caching, and creation.