xoreos  0.0.5
Namespaces | Macros | Variables
dds.cpp File Reference

DDS texture (DirectDraw Surface or BioWare's own format) loading). More...

#include "src/common/scopedptr.h"
#include "src/common/util.h"
#include "src/common/error.h"
#include "src/common/readstream.h"
#include "src/graphics/images/dds.h"
#include "src/graphics/images/util.h"
Include dependency graph for dds.cpp:

Go to the source code of this file.

Namespaces

 Graphics
 

Macros

#define IsPower2(x)   ((x) && (((x) & ((x) - 1)) == 0))
 

Variables

static const uint32 kDDSID = MKTAG('D', 'D', 'S', ' ')
 
static const uint32 kDXT1ID = MKTAG('D', 'X', 'T', '1')
 
static const uint32 kDXT3ID = MKTAG('D', 'X', 'T', '3')
 
static const uint32 kDXT5ID = MKTAG('D', 'X', 'T', '5')
 
static const uint32 kHeaderFlagsHasMipMaps = 0x00020000
 
static const uint32 kPixelFlagsHasAlpha = 0x00000001
 
static const uint32 kPixelFlagsHasFourCC = 0x00000004
 
static const uint32 kPixelFlagsIsIndexed = 0x00000020
 
static const uint32 kPixelFlagsIsRGB = 0x00000040
 

Detailed Description

DDS texture (DirectDraw Surface or BioWare's own format) loading).

Definition in file dds.cpp.

Macro Definition Documentation

◆ IsPower2

#define IsPower2 (   x)    ((x) && (((x) & ((x) - 1)) == 0))

Definition at line 139 of file dds.cpp.

Referenced by Graphics::DDS::readBioWareHeader().

Variable Documentation

◆ kDDSID

const uint32 kDDSID = MKTAG('D', 'D', 'S', ' ')
static

Definition at line 33 of file dds.cpp.

Referenced by Graphics::DDS::readHeader().

◆ kDXT1ID

const uint32 kDXT1ID = MKTAG('D', 'X', 'T', '1')
static

Definition at line 34 of file dds.cpp.

Referenced by Graphics::DDS::detectFormat().

◆ kDXT3ID

const uint32 kDXT3ID = MKTAG('D', 'X', 'T', '3')
static

Definition at line 35 of file dds.cpp.

Referenced by Graphics::DDS::detectFormat().

◆ kDXT5ID

const uint32 kDXT5ID = MKTAG('D', 'X', 'T', '5')
static

Definition at line 36 of file dds.cpp.

Referenced by Graphics::DDS::detectFormat().

◆ kHeaderFlagsHasMipMaps

const uint32 kHeaderFlagsHasMipMaps = 0x00020000
static

Definition at line 38 of file dds.cpp.

Referenced by Graphics::DDS::readStandardHeader().

◆ kPixelFlagsHasAlpha

const uint32 kPixelFlagsHasAlpha = 0x00000001
static

Definition at line 40 of file dds.cpp.

Referenced by Graphics::DDS::detectFormat().

◆ kPixelFlagsHasFourCC

const uint32 kPixelFlagsHasFourCC = 0x00000004
static

Definition at line 41 of file dds.cpp.

Referenced by Graphics::DDS::detectFormat().

◆ kPixelFlagsIsIndexed

const uint32 kPixelFlagsIsIndexed = 0x00000020
static

Definition at line 42 of file dds.cpp.

Referenced by Graphics::DDS::detectFormat().

◆ kPixelFlagsIsRGB

const uint32 kPixelFlagsIsRGB = 0x00000040
static

Definition at line 43 of file dds.cpp.

Referenced by Graphics::DDS::detectFormat().