TextureLoader
TextureLoader ⟵ Loader
Class for loading textures from image files.
This class extends the base Loader to
specifically handle texture loading. It uses the internal file system to
load image data and creates Texture objects
that can be applied to materials in the 3D scene. Currently *.jpg,
*.png, *.bmp and of course *.tpl are supported.
- Loads textures from embedded image files
- Creates Texture objects with proper format detection
Methods
TextureLoader()
Default constructor - creates a texture loader with default settings
TextureLoader(LoaderManager* manager)
Constructor with loading manager
| manager | Loading manager to use for this loader |
TextureLoader* clone() const
Creates a copy of this texture loader
void copy(const TextureLoader& other)
Copies properties from another texture loader
| other | Source texture loader |
Texture* load(const string& url)
Loads a texture from the given URL (simple version). Keep the texture <= 512x512!
| url | Path to the texture file | "" |
virtual void* parse(const void* data) override
Parses loaded image data into a texture object
| data | Raw image data to parse |
Properties
| isTextureLoader | bool | Read-only tag |