This function loads a texture from a file path or stream.
Parameter | Description |
---|---|
path | file path to load the pixmap from |
stream | stream to load the pixmap from |
flags | optional load flags, can be |
Returns the loaded texture, or NULL if no texture was loaded.
Ultra Engine natively supports the DDS and Leadwerks TEX texture file formats. The FITextureLoader plugin supports JPEG, PNG, TGA, GIF, and HDR files.
If the LOAD_MIPCHAIN LoadFlag is included, the texture mipmaps will be loaded into the mipchain member of the texture.