WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ddslib.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ddsColorKey_s
 
struct  ddsCaps_s
 
struct  ddsMultiSampleCaps_s
 
struct  ddsPixelFormat_s
 
struct  ddsBuffer_s
 
struct  ddsColorBlock_s
 
struct  ddsAlphaBlockExplicit_s
 
struct  ddsAlphaBlock3BitLinear_s
 
struct  ddsColor_s
 

Macros

#define DDS_LOW_5   0x001F;
 
#define DDS_MID_6   0x07E0;
 
#define DDS_HIGH_5   0xF800;
 
#define DDS_MID_555   0x03E0;
 
#define DDS_HI_555   0x7C00;
 

Typedefs

typedef struct ddsColorKey_s ddsColorKey_t
 
typedef struct ddsCaps_s ddsCaps_t
 
typedef struct ddsMultiSampleCaps_s ddsMultiSampleCaps_t
 
typedef struct ddsPixelFormat_s ddsPixelFormat_t
 
typedef struct ddsBuffer_s ddsBuffer_t
 
typedef struct ddsColorBlock_s ddsColorBlock_t
 
typedef struct ddsAlphaBlockExplicit_s ddsAlphaBlockExplicit_t
 
typedef struct ddsAlphaBlock3BitLinear_s ddsAlphaBlock3BitLinear_t
 
typedef struct ddsColor_s ddsColor_t
 

Enumerations

enum  ddsPF_t {
  DDS_PF_ARGB8888 , DDS_PF_DXT1 , DDS_PF_DXT2 , DDS_PF_DXT3 ,
  DDS_PF_DXT4 , DDS_PF_DXT5 , DDS_PF_UNKNOWN
}
 

Functions

int DDSDecompressDXT5 (unsigned char *src, int width, int height, unsigned char *dest)
 Decompress a DXT5 (BC3) compressed texture into raw RGBA pixels.
 
int DDSDecompressDXT3 (unsigned char *src, int width, int height, unsigned char *dest)
 Decompress a DXT3 (BC2) compressed texture into raw RGBA pixels.
 
int DDSDecompressDXT1 (unsigned char *src, int width, int height, unsigned char *dest)
 Decompress a DXT1 (BC1) compressed texture into raw RGBA pixels.
 

Macro Definition Documentation

◆ DDS_HI_555

#define DDS_HI_555   0x7C00;

Definition at line 62 of file ddslib.h.

◆ DDS_HIGH_5

#define DDS_HIGH_5   0xF800;

Definition at line 60 of file ddslib.h.

◆ DDS_LOW_5

#define DDS_LOW_5   0x001F;

Definition at line 58 of file ddslib.h.

◆ DDS_MID_555

#define DDS_MID_555   0x03E0;

Definition at line 61 of file ddslib.h.

◆ DDS_MID_6

#define DDS_MID_6   0x07E0;

Definition at line 59 of file ddslib.h.

Typedef Documentation

◆ ddsAlphaBlock3BitLinear_t

◆ ddsAlphaBlockExplicit_t

◆ ddsBuffer_t

typedef struct ddsBuffer_s ddsBuffer_t

◆ ddsCaps_t

typedef struct ddsCaps_s ddsCaps_t

◆ ddsColor_t

typedef struct ddsColor_s ddsColor_t

◆ ddsColorBlock_t

◆ ddsColorKey_t

typedef struct ddsColorKey_s ddsColorKey_t

◆ ddsMultiSampleCaps_t

◆ ddsPixelFormat_t

Enumeration Type Documentation

◆ ddsPF_t

enum ddsPF_t
Enumerator
DDS_PF_ARGB8888 
DDS_PF_DXT1 
DDS_PF_DXT2 
DDS_PF_DXT3 
DDS_PF_DXT4 
DDS_PF_DXT5 
DDS_PF_UNKNOWN 

Definition at line 45 of file ddslib.h.

Function Documentation

◆ DDSDecompressDXT1()

int DDSDecompressDXT1 ( unsigned char *  src,
int  width,
int  height,
unsigned char *  dest 
)

Decompress a DXT1 (BC1) compressed texture into raw RGBA pixels.

Parameters
srcPointer to the DXT1 compressed source data.
widthWidth of the texture in pixels.
heightHeight of the texture in pixels.
destPointer to the destination buffer (must be width * height * 4 bytes).
Returns
0 on success, -1 on failure.

Definition at line 479 of file ddslib.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DDSDecompressDXT3()

int DDSDecompressDXT3 ( unsigned char *  src,
int  width,
int  height,
unsigned char *  dest 
)

Decompress a DXT3 (BC2) compressed texture into raw RGBA pixels.

Parameters
srcPointer to the DXT3 compressed source data.
widthWidth of the texture in pixels.
heightHeight of the texture in pixels.
destPointer to the destination buffer (must be width * height * 4 bytes).
Returns
0 on success, -1 on failure.

Definition at line 519 of file ddslib.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DDSDecompressDXT5()

int DDSDecompressDXT5 ( unsigned char *  src,
int  width,
int  height,
unsigned char *  dest 
)

Decompress a DXT5 (BC3) compressed texture into raw RGBA pixels.

Parameters
srcPointer to the DXT5 compressed source data.
widthWidth of the texture in pixels.
heightHeight of the texture in pixels.
destPointer to the destination buffer (must be width * height * 4 bytes).
Returns
0 on success, -1 on failure.

Definition at line 566 of file ddslib.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: