11 #include "TextureFormats.h" 20 CDDSImage(
unsigned int width,
unsigned int height, XB_FMT format);
23 unsigned int GetWidth()
const;
24 unsigned int GetHeight()
const;
25 XB_FMT GetFormat()
const;
26 unsigned int GetSize()
const;
27 unsigned char *GetData()
const;
29 bool ReadFile(
const std::string &file);
32 void Allocate(
unsigned int width,
unsigned int height, XB_FMT format);
33 static const char* GetFourCC(XB_FMT format);
35 static unsigned int GetStorageRequirements(
unsigned int width,
39 ddsd_caps = 0x00000001,
40 ddsd_height = 0x00000002,
41 ddsd_width = 0x00000004,
42 ddsd_pitch = 0x00000008,
43 ddsd_pixelformat = 0x00001000,
44 ddsd_mipmapcount = 0x00020000,
45 ddsd_linearsize = 0x00080000,
46 ddsd_depth = 0x00800000
50 ddpf_alphapixels = 0x00000001,
51 ddpf_fourcc = 0x00000004,
56 ddscaps_complex = 0x00000008,
57 ddscaps_texture = 0x00001000,
58 ddscaps_mipmap = 0x00400000
74 #define DDPF_ALPHAPIXELS 0x00000001 75 #define DDPF_ALPHA 0x00000002 76 #define DDPF_FOURCC 0x00000004 77 #define DDPF_RGB 0x00000040 78 #define DDPF_YUV 0x00000200 79 #define DDPF_LUMINANCE 0x00020000 97 uint32_t reserved[11];
98 ddpixelformat pixelFormat;
104 ddsurfacedesc2 m_desc;
105 unsigned char *m_data;
Definition: DDSImage.h:16