#include <dds.h>
Public Types | |
typedef Common::Array< Graphics::Surface > | MipMaps |
Public Member Functions | |
bool | load (Common::SeekableReadStream &dds, const Common::String &name) |
const MipMaps & | getMipMaps () const |
DDS texture
Only a very small subset of DDS features are supported. Especially, compressed formats are not supported. This class is meant to load a single DDS file per instance.
bool Stark::Formats::DDS::load | ( | Common::SeekableReadStream & | dds, |
const Common::String & | name | ||
) |
Load a DDS texture from a stream
const MipMaps& Stark::Formats::DDS::getMipMaps | ( | ) | const |
Retrieve the mip map levels for a loaded texture
The first mipmap is the full size image. Each further mipmap divides by two the with and the height of the previous one.