Reads and writes DDS files. More...
Public Member Functions | |
FileDDS () | |
Default constructor. | |
Image * | Load (InputMemoryStream *pInput) |
Parses a DDS file. | |
uint_t | Save (OutputMemoryStream *pOutput, const Image *pImage) |
Write an Image structure out as a DDS file image. | |
const uint32_t * | GetReserved (void) const |
uint32_t * | GetReserved (void) |
Static Public Attributes | |
static const uint32_t | FILETYPE = 0x44445320 |
'DDS ' Mac File type for DDS files (Byte swapped on little endian machines) | |
static const uint32_t | AUXTYPE = 0x474B4F4E |
'GKON' Mac creator code for DDS files (Byte swapped on little endian machines) | |
Private Attributes | |
uint32_t | m_uReserved [11] |
Reads and writes DDS files.
This class will read and write out Direct Draw Surface (DDS) files and use Burger::Image class instances as data transporters
Burger::FileDDS::FileDDS | ( | ) |
Default constructor.
Initializes all extra file data to defaults
|
inline |
|
inline |
Burger::Image * Burger::FileDDS::Load | ( | InputMemoryStream * | pInput | ) |
Parses a DDS file.
Read in a DDS file and set the extra variables
Will parse 16, 24, 32 bit uncompressed and DXT compressed DDS files only. Other formats are not supported
pInput | Pointer to a memory stream that has a DDS file image |
uint_t Burger::FileDDS::Save | ( | OutputMemoryStream * | pOutput, |
const Image * | pImage ) |
|
static |
'GKON' Mac creator code for DDS files (Byte swapped on little endian machines)
|
static |
'DDS ' Mac File type for DDS files (Byte swapped on little endian machines)
|
private |