GL Studio C++ Runtime API
dds.h
Go to the documentation of this file.
1/// \file dds.h
2/// \brief This header defines constants and structures that are needed to parse DDS files.
3///
4/// \par Copyright Information
5///
6/// Copyright (c) 2017 by The DiSTI Corporation.<br>
7/// 12249 Science Drive; Suite 300<br>
8/// Orlando, Florida 32826<br>
9/// USA<br>
10/// <br>
11/// All rights reserved.<br>
12///
13/// This Software contains proprietary trade secrets of DiSTI and may not be
14/// reproduced, in whole or part, in any form, or by any means of electronic,
15/// mechanical, or otherwise, without the written permission of DiSTI. Said
16/// permission may be derived through the purchase of applicable DiSTI product
17/// licenses which detail the distribution rights of this content and any
18/// Derivative Works based on this or other copyrighted DiSTI Software.
19///
20/// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
21/// AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
22/// PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
23/// AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
24/// IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
25/// PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
26///
27/// LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
28/// IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
29/// INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
30/// DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
31/// INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
32/// INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBILITY
33/// OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
34/// EXCEED FIVE DOLLARS (US$5.00).
35///
36/// The aforementioned terms and restrictions are governed by the laws of the
37/// State of Florida and the United States of America.
38
39#ifndef INCLUDED_DDS_H
40#define INCLUDED_DDS_H
41
42// This file is copied and modified from Lumen: cpp\src\core\textureloader\dds\dds.h
43
44#ifdef WIN32
45# include <windows.h>
46#endif
47
48#include "DXGIFormat.h"
49
50///////////////////////////////////////////////////////////////////////////////
51// stuff from windef.h
52///////////////////////////////////////////////////////////////////////////////
53#ifndef _WINDEF_
54# include <stdint.h>
55
56typedef uint32_t DWORD; ///< Type used in orignal DirectX dds.h file
57typedef unsigned char BYTE; ///< Type used in orignal DirectX dds.h file
58typedef uint32_t UINT; ///< Type used in orignal DirectX dds.h file
59
60#endif // _WINDEF_
61
62///////////////////////////////////////////////////////////////////////////////
63// stuff from d3d9types.h
64///////////////////////////////////////////////////////////////////////////////
65#ifndef _d3d9TYPES_H_
66
67/** Combines four charaters into a DWORD. Used for specified compressed texture formats.
68 * See http://msdn.microsoft.com/en-us/library/bb172558.aspx#DXTn_Compressed_Texture_Formats
69 */
70# ifndef MAKEFOURCC
71# define MAKEFOURCC( ch0, ch1, ch2, ch3 ) \
72 ( (DWORD)(BYTE)( ch0 ) | ( (DWORD)(BYTE)( ch1 ) << 8 ) | ( (DWORD)(BYTE)( ch2 ) << 16 ) | ( (DWORD)(BYTE)( ch3 ) << 24 ) )
73# endif /* defined(MAKEFOURCC) */
74
75/** Defines the various types of surface formats. http://msdn.microsoft.com/en-us/library/bb172558.aspx
76 */
77typedef enum _D3DFORMAT
78{
79 D3DFMT_UNKNOWN = 0,
80
81 D3DFMT_R8G8B8 = 20,
82 D3DFMT_A8R8G8B8 = 21,
83 D3DFMT_X8R8G8B8 = 22,
84 D3DFMT_R5G6B5 = 23,
85 D3DFMT_X1R5G5B5 = 24,
86 D3DFMT_A1R5G5B5 = 25,
87 D3DFMT_A4R4G4B4 = 26,
88 D3DFMT_R3G3B2 = 27,
89 D3DFMT_A8 = 28,
90 D3DFMT_A8R3G3B2 = 29,
91 D3DFMT_X4R4G4B4 = 30,
92 D3DFMT_A2B10G10R10 = 31,
93 D3DFMT_A8B8G8R8 = 32,
94 D3DFMT_X8B8G8R8 = 33,
95 D3DFMT_G16R16 = 34,
96 D3DFMT_A2R10G10B10 = 35,
97 D3DFMT_A16B16G16R16 = 36,
98
99 D3DFMT_A8P8 = 40,
100 D3DFMT_P8 = 41,
101
102 D3DFMT_L8 = 50,
103 D3DFMT_A8L8 = 51,
104 D3DFMT_A4L4 = 52,
105
106 D3DFMT_V8U8 = 60,
107 D3DFMT_L6V5U5 = 61,
108 D3DFMT_X8L8V8U8 = 62,
109 D3DFMT_Q8W8V8U8 = 63,
110 D3DFMT_V16U16 = 64,
111 D3DFMT_A2W10V10U10 = 67,
112
113 D3DFMT_UYVY = MAKEFOURCC( 'U', 'Y', 'V', 'Y' ),
114 D3DFMT_R8G8_B8G8 = MAKEFOURCC( 'R', 'G', 'B', 'G' ),
115 D3DFMT_YUY2 = MAKEFOURCC( 'Y', 'U', 'Y', '2' ),
116 D3DFMT_G8R8_G8B8 = MAKEFOURCC( 'G', 'R', 'G', 'B' ),
117 D3DFMT_DXT1 = MAKEFOURCC( 'D', 'X', 'T', '1' ),
118 D3DFMT_DXT2 = MAKEFOURCC( 'D', 'X', 'T', '2' ),
119 D3DFMT_DXT3 = MAKEFOURCC( 'D', 'X', 'T', '3' ),
120 D3DFMT_DXT4 = MAKEFOURCC( 'D', 'X', 'T', '4' ),
121 D3DFMT_DXT5 = MAKEFOURCC( 'D', 'X', 'T', '5' ),
122
123 D3DFMT_D16_LOCKABLE = 70,
124 D3DFMT_D32 = 71,
125 D3DFMT_D15S1 = 73,
126 D3DFMT_D24S8 = 75,
127 D3DFMT_D24X8 = 77,
128 D3DFMT_D24X4S4 = 79,
129 D3DFMT_D16 = 80,
130
131 D3DFMT_D32F_LOCKABLE = 82,
132 D3DFMT_D24FS8 = 83,
133
134/* D3D9Ex only -- */
135# if !defined( D3D_DISABLE_9EX )
136
137 /* Z-Stencil formats valid for CPU access */
138 D3DFMT_D32_LOCKABLE = 84,
139 D3DFMT_S8_LOCKABLE = 85,
140
141# endif // !D3D_DISABLE_9EX
142 /* -- D3D9Ex only */
143
144 D3DFMT_L16 = 81,
145
146 D3DFMT_VERTEXDATA = 100,
147 D3DFMT_INDEX16 = 101,
148 D3DFMT_INDEX32 = 102,
149
150 D3DFMT_Q16W16V16U16 = 110,
151
152 D3DFMT_MULTI2_ARGB8 = MAKEFOURCC( 'M', 'E', 'T', '1' ),
153
154 // Floating point surface formats
155
156 // s10e5 formats (16-bits per channel)
157 D3DFMT_R16F = 111,
158 D3DFMT_G16R16F = 112,
159 D3DFMT_A16B16G16R16F = 113,
160
161 // IEEE s23e8 formats (32-bits per channel)
162 D3DFMT_R32F = 114,
163 D3DFMT_G32R32F = 115,
164 D3DFMT_A32B32G32R32F = 116,
165
166 D3DFMT_CxV8U8 = 117,
167
168/* D3D9Ex only -- */
169# if !defined( D3D_DISABLE_9EX )
170
171 // Monochrome 1 bit per pixel format
172 D3DFMT_A1 = 118,
173
174 // 2.8 biased fixed point
175 D3DFMT_A2B10G10R10_XR_BIAS = 119,
176
177 // Binary format indicating that the data has no inherent type
178 D3DFMT_BINARYBUFFER = 199,
179
180# endif // !D3D_DISABLE_9EX
181 /* -- D3D9Ex only */
182
183 D3DFMT_FORCE_DWORD = 0x7fffffff
185
186#endif // _d3d9TYPES_H_
187
188///////////////////////////////////////////////////////////////////////////////
189// stuff from d3d10.h
190///////////////////////////////////////////////////////////////////////////////
191#ifndef __d3d10_h__
192
193/** Maximum number of mipmap levels a texture resource may have.
194 * http://msdn.microsoft.com/en-us/library/bb509540.aspx
195 */
196# define D3D10_REQ_MIP_LEVELS ( 14 )
197
198/** Maximum array size of a 2D texture array.
199 * http://msdn.microsoft.com/en-us/library/bb509540.aspx
200 */
201# define D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 512 )
202
203/** Identifies the type of resource being used. http://msdn.microsoft.com/en-us/library/bb172411.aspx
204 */
206{
207 D3D10_RESOURCE_DIMENSION_UNKNOWN = 0,
208 D3D10_RESOURCE_DIMENSION_BUFFER = 1,
209 D3D10_RESOURCE_DIMENSION_TEXTURE1D = 2,
210 D3D10_RESOURCE_DIMENSION_TEXTURE2D = 3,
211 D3D10_RESOURCE_DIMENSION_TEXTURE3D = 4
213
214#endif // __d3d10_h__
215
216///////////////////////////////////////////////////////////////////////////////
217// stuff from the original dds.h
218///////////////////////////////////////////////////////////////////////////////
219#ifndef _DDS_H_
220
221# pragma pack( push, 1 )
222
223/** A DWORD (magic number) containing the four character code value 'DDS '
224 * It is the first value in a DDS file
225 */
226# define DDS_MAGIC 0x20534444 // "DDS "
227
228/** Surface pixel format. See http://msdn.microsoft.com/en-us/library/bb943984.aspx
229 */
231{
232 DWORD dwSize; ///< Structure size; set to 32 (bytes).
233 DWORD dwFlags; ///< Values which indicate what type of data is in the surface.
234 DWORD dwFourCC; ///< Four-character codes for specifying compressed or custom formats.
235 DWORD dwRGBBitCount; ///< Number of bits in an RGB (possibly including alpha) format.
236 DWORD dwRBitMask; ///< Red (or lumiannce or Y) mask for reading color data.
237 DWORD dwGBitMask; ///< Green (or U) mask for reading color data.
238 DWORD dwBBitMask; ///< Blue (or V) mask for reading color data.
239 DWORD dwABitMask; ///< Alpha mask for reading alpha data.
240};
241
242/// DDPF_FOURCC
243/// Texture contains compressed RGB data; dwFourCC contains valid data.
244# define DDS_FOURCC 0x00000004
245
246/// DDPF_RGB - Texture contains uncompressed RGB data;
247/// dwRGBBitCount and the RGB masks (dwRBitMask, dwGBitMask, dwBBitMask) contain valid data.
248# define DDS_RGB 0x00000040
249
250/// DDPF_RGB | DDPF_ALPHAPIXELS - Texture contains uncompressed RGBA data;
251/// dwRGBBitCount and the RGB masks (dwRBitMask, dwGBitMask, dwBBitMask, dwABitMask) contain valid data.
252# define DDS_RGBA 0x00000041
253
254/// DDPF_LUMINANCE - Used in some older DDS files for single channel color uncompressed data
255/// (dwRGBBitCount contains the luminance channel bit count; dwRBitMask contains the channel mask).
256/// Can be combined with DDPF_ALPHAPIXELS for a two channel DDS file.
257# define DDS_LUMINANCE 0x00020000
258
259/// DDPF_ALPHA - Used in some older DDS files for alpha channel only uncompressed data
260/// (dwRGBBitCount contains the alpha channel bitcount; dwABitMask contains valid data)
261# define DDS_ALPHA 0x00000002
262
263const DDS_PIXELFORMAT DDSPF_DXT1 = { sizeof( DDS_PIXELFORMAT ), DDS_FOURCC, MAKEFOURCC( 'D', 'X', 'T', '1' ), 0, 0, 0, 0, 0 }; ///< DXT1 Pixel format
264
265const DDS_PIXELFORMAT DDSPF_DXT2 = { sizeof( DDS_PIXELFORMAT ), DDS_FOURCC, MAKEFOURCC( 'D', 'X', 'T', '2' ), 0, 0, 0, 0, 0 }; ///< DXT2 Pixel format
266
267const DDS_PIXELFORMAT DDSPF_DXT3 = { sizeof( DDS_PIXELFORMAT ), DDS_FOURCC, MAKEFOURCC( 'D', 'X', 'T', '3' ), 0, 0, 0, 0, 0 }; ///< DXT3 Pixel format
268
269const DDS_PIXELFORMAT DDSPF_DXT4 = { sizeof( DDS_PIXELFORMAT ), DDS_FOURCC, MAKEFOURCC( 'D', 'X', 'T', '4' ), 0, 0, 0, 0, 0 }; ///< DXT4 Pixel format
270
271const DDS_PIXELFORMAT DDSPF_DXT5 = { sizeof( DDS_PIXELFORMAT ), DDS_FOURCC, MAKEFOURCC( 'D', 'X', 'T', '5' ), 0, 0, 0, 0, 0 }; ///< DXT5 Pixel format
272
273const DDS_PIXELFORMAT DDSPF_A8R8G8B8 = { sizeof( DDS_PIXELFORMAT ), DDS_RGBA, 0, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 }; ///< A8R8G8B8 Pixel format
274
275const DDS_PIXELFORMAT DDSPF_A1R5G5B5 = { sizeof( DDS_PIXELFORMAT ), DDS_RGBA, 0, 16, 0x00007c00, 0x000003e0, 0x0000001f, 0x00008000 }; ///< A1R5G5B5 Pixel format
276
277const DDS_PIXELFORMAT DDSPF_A4R4G4B4 = { sizeof( DDS_PIXELFORMAT ), DDS_RGBA, 0, 16, 0x00000f00, 0x000000f0, 0x0000000f, 0x0000f000 }; ///< A4R4G4B4 Pixel format
278
279const DDS_PIXELFORMAT DDSPF_R8G8B8 = { sizeof( DDS_PIXELFORMAT ), DDS_RGB, 0, 24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0x00000000 }; ///< R8G8B8 Pixel format
280
281const DDS_PIXELFORMAT DDSPF_R5G6B5 = { sizeof( DDS_PIXELFORMAT ), DDS_RGB, 0, 16, 0x0000f800, 0x000007e0, 0x0000001f, 0x00000000 }; ///< R5G6B5 Pixel format
282
283// This indicates the DDS_HEADER_DXT10 extension is present (the format is in dxgiFormat)
284const DDS_PIXELFORMAT DDSPF_DX10 = { sizeof( DDS_PIXELFORMAT ), DDS_FOURCC, MAKEFOURCC( 'D', 'X', '1', '0' ), 0, 0, 0, 0, 0 }; ///< DX10 Pixel format
285
286# define DDS_HEADER_FLAGS_TEXTURE 0x00001007 ///< DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT
287# define DDS_HEADER_FLAGS_MIPMAP 0x00020000 ///< DDSD_MIPMAPCOUNT
288# define DDS_HEADER_FLAGS_VOLUME 0x00800000 ///< DDSD_DEPTH
289# define DDS_HEADER_FLAGS_PITCH 0x00000008 ///< DDSD_PITCH
290# define DDS_HEADER_FLAGS_LINEARSIZE 0x00080000 ///< DDSD_LINEARSIZE
291
292# define DDS_SURFACE_FLAGS_TEXTURE 0x00001000 ///< DDSCAPS_TEXTURE
293# define DDS_SURFACE_FLAGS_MIPMAP 0x00400008 ///< DDSCAPS_COMPLEX | DDSCAPS_MIPMAP
294# define DDS_SURFACE_FLAGS_CUBEMAP 0x00000008 ///< DDSCAPS_COMPLEX
295
296# define DDSCAPS2_CUBEMAP 0x00000200 ///< DDSCAPS2_CUBEMAP
297# define DDS_CUBEMAP_POSITIVEX 0x00000600 ///< DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_POSITIVEX
298# define DDS_CUBEMAP_NEGATIVEX 0x00000a00 ///< DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_NEGATIVEX
299# define DDS_CUBEMAP_POSITIVEY 0x00001200 ///< DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_POSITIVEY
300# define DDS_CUBEMAP_NEGATIVEY 0x00002200 ///< DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_NEGATIVEY
301# define DDS_CUBEMAP_POSITIVEZ 0x00004200 ///< DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_POSITIVEZ
302# define DDS_CUBEMAP_NEGATIVEZ 0x00008200 ///< DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_NEGATIVEZ
303
304/** DDS structure contains all faces
305 */
306# define DDS_CUBEMAP_ALLFACES ( DDS_CUBEMAP_POSITIVEX | DDS_CUBEMAP_NEGATIVEX | DDS_CUBEMAP_POSITIVEY | DDS_CUBEMAP_NEGATIVEY | DDS_CUBEMAP_POSITIVEZ | DDS_CUBEMAP_NEGATIVEZ )
307
308# define DDS_FLAGS_VOLUME 0x00200000 ///< DDSCAPS2_VOLUME
309
310/** Describes a DDS file header. See http://msdn.microsoft.com/en-us/library/bb943982.aspx
311 */
312typedef struct
313{
314 DWORD dwSize; ///< Size of structure. This member must be set to 124.
315 DWORD dwHeaderFlags; ///< Flags to indicate which members contain valid data.
316 DWORD dwHeight; ///< Surface height (in pixels).
317 DWORD dwWidth; ///< Surface width (in pixels).
318 DWORD dwPitchOrLinearSize; ///< The pitch or number of bytes per scan line in an uncompressed texture;
319 DWORD dwDepth; ///< Depth of a volume texture (in pixels), only if DDS_HEADER_FLAGS_VOLUME is set in dwHeaderFlags
320 DWORD dwMipMapCount; ///< Number of mipmap levels, otherwise unused.
321 DWORD dwReserved1[ 11 ]; ///< Unused.
322 DDS_PIXELFORMAT ddspf; ///< The pixel format
323 DWORD dwSurfaceFlags; ///< Specifies the complexity of the surfaces stored.
324 DWORD dwCubemapFlags; ///< Additional detail about the surfaces stored.
325 DWORD dwReserved2[ 3 ]; ///< Unused.
326} DDS_HEADER;
327
328/** DDS header extension to handle resource arrays. See http://msdn.microsoft.com/en-us/library/bb943983.aspx
329 */
330typedef struct
331{
332 DXGI_FORMAT dxgiFormat; ///< The surface pixel format
333 D3D10_RESOURCE_DIMENSION resourceDimension; ///< Identifies the type of resource.
334 UINT miscFlag; ///< Identifies other, less common options for resources.
335 UINT arraySize; ///< The number of elements in the array.
336 UINT reserved; ///< Reserved for future use.
338
339// THE BELOW FORMATS ARE USED IN LUMEN UNIT TEST AND WERE NOT PART OF THE ORIGINAL MICROSOFT DDS.H FILE
340/// \cond INTERNAL
341# define DDS_LUMINANCEA 0x00020001 ///< DDPF_LUMINANCE | DDPF_ALPHAPIXELS
342
343const DDS_PIXELFORMAT DDSPF_A8 = { sizeof( DDS_PIXELFORMAT ), DDS_ALPHA, 0, 8, 0x00, 0x00, 0x00, 0xff };
344
345const DDS_PIXELFORMAT DDSPF_A8L8 = { sizeof( DDS_PIXELFORMAT ), DDS_LUMINANCEA, 0, 16, 0x00ff, 0x0000, 0x0000, 0xff00 };
346/// \endcond
347
348# pragma pack( pop )
349
350#endif // _DDS_H_
351
352#endif // INCLUDED_DDS_H
const DDS_PIXELFORMAT DDSPF_R5G6B5
R5G6B5 Pixel format.
Definition: dds.h:281
#define DDS_FOURCC
Definition: dds.h:244
uint32_t UINT
Type used in orignal DirectX dds.h file.
Definition: dds.h:58
unsigned char BYTE
Type used in orignal DirectX dds.h file.
Definition: dds.h:57
const DDS_PIXELFORMAT DDSPF_DX10
DX10 Pixel format.
Definition: dds.h:284
const DDS_PIXELFORMAT DDSPF_A4R4G4B4
A4R4G4B4 Pixel format.
Definition: dds.h:277
const DDS_PIXELFORMAT DDSPF_A1R5G5B5
A1R5G5B5 Pixel format.
Definition: dds.h:275
_D3DFORMAT
Definition: dds.h:78
#define MAKEFOURCC(ch0, ch1, ch2, ch3)
Definition: dds.h:71
#define DDS_RGBA
Definition: dds.h:252
const DDS_PIXELFORMAT DDSPF_DXT3
DXT3 Pixel format.
Definition: dds.h:267
#define DDS_ALPHA
Definition: dds.h:261
const DDS_PIXELFORMAT DDSPF_DXT2
DXT2 Pixel format.
Definition: dds.h:265
#define DDS_RGB
Definition: dds.h:248
const DDS_PIXELFORMAT DDSPF_R8G8B8
R8G8B8 Pixel format.
Definition: dds.h:279
const DDS_PIXELFORMAT DDSPF_DXT1
DXT1 Pixel format.
Definition: dds.h:263
enum _D3DFORMAT D3DFORMAT
const DDS_PIXELFORMAT DDSPF_DXT4
DXT4 Pixel format.
Definition: dds.h:269
const DDS_PIXELFORMAT DDSPF_A8R8G8B8
A8R8G8B8 Pixel format.
Definition: dds.h:273
D3D10_RESOURCE_DIMENSION
Definition: dds.h:206
uint32_t DWORD
Type used in orignal DirectX dds.h file.
Definition: dds.h:56
const DDS_PIXELFORMAT DDSPF_DXT5
DXT5 Pixel format.
Definition: dds.h:271
Definition: dds.h:331
UINT reserved
Reserved for future use.
Definition: dds.h:336
D3D10_RESOURCE_DIMENSION resourceDimension
Identifies the type of resource.
Definition: dds.h:333
UINT arraySize
The number of elements in the array.
Definition: dds.h:335
DXGI_FORMAT dxgiFormat
The surface pixel format.
Definition: dds.h:332
UINT miscFlag
Identifies other, less common options for resources.
Definition: dds.h:334
Definition: dds.h:313
DWORD dwHeaderFlags
Flags to indicate which members contain valid data.
Definition: dds.h:315
DWORD dwWidth
Surface width (in pixels).
Definition: dds.h:317
DWORD dwHeight
Surface height (in pixels).
Definition: dds.h:316
DWORD dwDepth
Depth of a volume texture (in pixels), only if DDS_HEADER_FLAGS_VOLUME is set in dwHeaderFlags.
Definition: dds.h:319
DWORD dwPitchOrLinearSize
The pitch or number of bytes per scan line in an uncompressed texture;.
Definition: dds.h:318
DWORD dwCubemapFlags
Additional detail about the surfaces stored.
Definition: dds.h:324
DWORD dwSize
Size of structure. This member must be set to 124.
Definition: dds.h:314
DWORD dwMipMapCount
Number of mipmap levels, otherwise unused.
Definition: dds.h:320
DWORD dwSurfaceFlags
Specifies the complexity of the surfaces stored.
Definition: dds.h:323
DDS_PIXELFORMAT ddspf
The pixel format.
Definition: dds.h:322
Definition: dds.h:231
DWORD dwGBitMask
Green (or U) mask for reading color data.
Definition: dds.h:237
DWORD dwABitMask
Alpha mask for reading alpha data.
Definition: dds.h:239
DWORD dwBBitMask
Blue (or V) mask for reading color data.
Definition: dds.h:238
DWORD dwFourCC
Four-character codes for specifying compressed or custom formats.
Definition: dds.h:234
DWORD dwFlags
Values which indicate what type of data is in the surface.
Definition: dds.h:233
DWORD dwSize
Structure size; set to 32 (bytes).
Definition: dds.h:232
DWORD dwRGBBitCount
Number of bits in an RGB (possibly including alpha) format.
Definition: dds.h:235
DWORD dwRBitMask
Red (or lumiannce or Y) mask for reading color data.
Definition: dds.h:236