Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
compressedtex.hpp
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "inexor/shared/cube_types.hpp" // for uint, ushort
7 
8 struct ImageData;
9 
10 extern bool loaddds(const char *filename, ImageData &image, int force = 0);
11 
12 enum
13 {
14  DDSD_CAPS = 0x00000001,
15  DDSD_HEIGHT = 0x00000002,
16  DDSD_WIDTH = 0x00000004,
17  DDSD_PITCH = 0x00000008,
18  DDSD_PIXELFORMAT = 0x00001000,
19  DDSD_MIPMAPCOUNT = 0x00020000,
20  DDSD_LINEARSIZE = 0x00080000,
21  DDSD_BACKBUFFERCOUNT = 0x00800000,
22  DDPF_ALPHAPIXELS = 0x00000001,
23  DDPF_FOURCC = 0x00000004,
24  DDPF_INDEXED = 0x00000020,
25  DDPF_ALPHA = 0x00000002,
26  DDPF_RGB = 0x00000040,
27  DDPF_COMPRESSED = 0x00000080,
28  DDPF_LUMINANCE = 0x00020000,
29  DDSCAPS_COMPLEX = 0x00000008,
30  DDSCAPS_TEXTURE = 0x00001000,
31  DDSCAPS_MIPMAP = 0x00400000,
32  DDSCAPS2_CUBEMAP = 0x00000200,
39  DDSCAPS2_VOLUME = 0x00200000,
40  FOURCC_DXT1 = 0x31545844,
41  FOURCC_DXT2 = 0x32545844,
42  FOURCC_DXT3 = 0x33545844,
43  FOURCC_DXT4 = 0x34545844,
44  FOURCC_DXT5 = 0x35545844
45 };
46 
49 {
51  union { uint dwRGBBitCount, dwYUVBitCount, dwZBufferBitDepth, dwAlphaBitDepth, dwLuminanceBitCount, dwBumpBitCount, dwPrivateFormatBitCount; };
52  union { uint dwRBitMask, dwYBitMask, dwStencilBitDepth, dwLuminanceBitMask, dwBumpDuBitMask, dwOperations; };
53  union { uint dwGBitMask, dwUBitMask, dwZBitMask, dwBumpDvBitMask; struct { ushort wFlipMSTypes, wBltMSTypes; } MultiSampleCaps; };
54  union { uint dwBBitMask, dwVBitMask, dwStencilBitMask, dwBumpLuminanceBitMask; };
55  union { uint dwRGBAlphaBitMask, dwYUVAlphaBitMask, dwLuminanceAlphaBitMask, dwRGBZBitMask, dwYUVZBitMask; };
56 
57 };
60 {
62  union { int lPitch; uint dwLinearSize; };
64  union { uint dwMipMapCount, dwRefreshRate, dwSrcVBHandle; };
66  union { DDCOLORKEY ddckCKDestOverlay; uint dwEmptyFaceColor; };
68  union { DDPIXELFORMAT ddpfPixelFormat; uint dwFVF; };
71 };
72 
uint dwSize
Definition: compressedtex.hpp:50
Definition: compressedtex.hpp:17
Definition: compressedtex.hpp:18
uint dwColorSpaceLowValue
Definition: compressedtex.hpp:47
DDCOLORKEY ddckCKDestBlt
Definition: compressedtex.hpp:67
uint dwFlags
Definition: compressedtex.hpp:61
Definition: compressedtex.hpp:23
Definition: compressedtex.hpp:14
unsigned int uint
Definition: cube_types.hpp:9
Definition: compressedtex.hpp:41
Structure holding the Raw Pixel Data and minimum image info.
Definition: image.hpp:20
uint dwSize
Definition: compressedtex.hpp:61
Definition: compressedtex.hpp:34
Definition: compressedtex.hpp:27
Definition: compressedtex.hpp:47
uint lpSurface
Definition: compressedtex.hpp:65
Definition: compressedtex.hpp:28
uint dwCaps
Definition: compressedtex.hpp:58
Definition: compressedtex.hpp:29
uint dwAlphaBitDepth
Definition: compressedtex.hpp:65
Definition: compressedtex.hpp:38
Definition: compressedtex.hpp:16
Definition: compressedtex.hpp:32
uint dwCaps3
Definition: compressedtex.hpp:58
DDCOLORKEY ddckCKSrcOverlay
Definition: compressedtex.hpp:67
unsigned short ushort
Definition: cube_types.hpp:8
Definition: compressedtex.hpp:44
uint dwColorSpaceHighValue
Definition: compressedtex.hpp:47
Definition: compressedtex.hpp:22
bool loaddds(const char *filename, ImageData &image, int force=0)
Definition: compressedtex.cpp:140
Definition: compressedtex.hpp:25
Definition: compressedtex.hpp:26
uint dwCaps4
Definition: compressedtex.hpp:58
uint dwFourCC
Definition: compressedtex.hpp:50
uint dwBackBufferCount
Definition: compressedtex.hpp:63
Definition: compressedtex.hpp:30
Definition: compressedtex.hpp:39
Definition: compressedtex.hpp:35
Definition: compressedtex.hpp:42
Definition: compressedtex.hpp:48
DDCOLORKEY ddckCKSrcBlt
Definition: compressedtex.hpp:67
uint dwHeight
Definition: compressedtex.hpp:61
uint dwTextureStage
Definition: compressedtex.hpp:70
uint dwCaps2
Definition: compressedtex.hpp:58
DDSCAPS2 ddsCaps
Definition: compressedtex.hpp:69
Definition: compressedtex.hpp:36
Definition: compressedtex.hpp:40
uint dwFlags
Definition: compressedtex.hpp:50
Definition: compressedtex.hpp:24
Definition: compressedtex.hpp:59
Definition: compressedtex.hpp:58
Definition: compressedtex.hpp:37
Definition: compressedtex.hpp:43
uint dwReserved
Definition: compressedtex.hpp:65
Definition: compressedtex.hpp:15
Definition: compressedtex.hpp:21
Definition: compressedtex.hpp:19
Definition: compressedtex.hpp:20
Definition: compressedtex.hpp:33
Definition: compressedtex.hpp:31
uint dwWidth
Definition: compressedtex.hpp:61