Texture
The Texture class extends the Item class to represent graphical textures within the engine, providing methods to create texture instances. It is primarily used for managing and manipulating texture resources in rendering operations, enabling developers to initialize default or custom textures for various visual elements in their applications.
Inherits from
Usage
To use this class, add the following require at the top of your script:
Reference
create
Create a new texture
Parameters
selfattributes(table): list of attributes. without, the texture will be created with default values
Returns
Texture: of the created texture