Base class: Asset
A texture is an image that can be applied to 2D or 3D surfaces. Textures can be loaded from DDS files or other file formats loaded with plugins.
| Property | Type | Description |
|---|---|---|
| mipchain | const std::vector<std::vector<shared_ptr<Pixmap> > >& | stores texture mipmaps when loaded with LOAD_MIPCHAIN |
| size | const iVec3& | read-only dimensions |
| BuildMipmaps | Method | generates mipmaps for the texture |
| SetPixels | Method | sets the texture image data |
| SetSubPixels | Method | sets the texture image data of an area |
| CreateTexture | Function | creates a new texture |
| LoadTexture | Function | loads a texture from a file or stream |