ReactOS  0.4.13-dev-242-g611e6d7
d3d8types.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 Jason Edmeades
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #ifndef __WINE_D3D8TYPES_H
20 #define __WINE_D3D8TYPES_H
21 
22 #ifdef __i386__
23 #include <pshpack4.h>
24 #endif
25 
26 /*****************************************************************************
27  * Direct 3D v8 #defines
28  */
29 
30 #define D3DCLEAR_TARGET 1
31 #define D3DCLEAR_ZBUFFER 2
32 #define D3DCLEAR_STENCIL 4
33 
34 #define D3DCLIPPLANE0 (1 << 0)
35 #define D3DCLIPPLANE1 (1 << 1)
36 #define D3DCLIPPLANE2 (1 << 2)
37 #define D3DCLIPPLANE3 (1 << 3)
38 #define D3DCLIPPLANE4 (1 << 4)
39 #define D3DCLIPPLANE5 (1 << 5)
40 
41 #define D3DCOLOR_ARGB(a,r,g,b) ((D3DCOLOR)((((a)&0xffu)<<24)|(((r)&0xffu)<<16)|(((g)&0xffu)<<8)|((b)&0xffu)))
42 #define D3DCOLOR_COLORVALUE(r,g,b,a) D3DCOLOR_RGBA((DWORD)((r)*255.f),(DWORD)((g)*255.f),(DWORD)((b)*255.f),(DWORD)((a)*255.f))
43 #define D3DCOLOR_RGBA(r,g,b,a) D3DCOLOR_ARGB(a,r,g,b)
44 #define D3DCOLOR_XRGB(r,g,b) D3DCOLOR_ARGB(0xff,r,g,b)
45 
46 #define D3DCS_LEFT 0x001
47 #define D3DCS_RIGHT 0x002
48 #define D3DCS_TOP 0x004
49 #define D3DCS_BOTTOM 0x008
50 #define D3DCS_FRONT 0x010
51 #define D3DCS_BACK 0x020
52 #define D3DCS_PLANE0 0x040
53 #define D3DCS_PLANE1 0x080
54 #define D3DCS_PLANE2 0x100
55 #define D3DCS_PLANE3 0x200
56 #define D3DCS_PLANE4 0x400
57 #define D3DCS_PLANE5 0x800
58 #define D3DCS_ALL 0xFFF
59 
60 #define D3DFVF_TEXTUREFORMAT1 3
61 #define D3DFVF_TEXTUREFORMAT2 0
62 #define D3DFVF_TEXTUREFORMAT3 1
63 #define D3DFVF_TEXTUREFORMAT4 2
64 #define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16))
65 #define D3DFVF_TEXCOORDSIZE2(CoordIndex) (D3DFVF_TEXTUREFORMAT2)
66 #define D3DFVF_TEXCOORDSIZE3(CoordIndex) (D3DFVF_TEXTUREFORMAT3 << (CoordIndex*2 + 16))
67 #define D3DFVF_TEXCOORDSIZE4(CoordIndex) (D3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16))
68 
69 #define D3DLOCK_READONLY 0x0010
70 #define D3DLOCK_NOSYSLOCK 0x0800
71 #define D3DLOCK_NOOVERWRITE 0x1000
72 #define D3DLOCK_DISCARD 0x2000
73 #define D3DLOCK_NO_DIRTY_UPDATE 0x8000
74 
75 #define D3DMAXUSERCLIPPLANES 32
76 
77 #define D3DRENDERSTATE_WRAPBIAS 0x80
78 
79 #define D3DTSS_TCI_PASSTHRU 0x00000
80 #define D3DTSS_TCI_CAMERASPACENORMAL 0x10000
81 #define D3DTSS_TCI_CAMERASPACEPOSITION 0x20000
82 #define D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR 0x30000
83 
84 
85 #define D3DTS_WORLD D3DTS_WORLDMATRIX(0)
86 #define D3DTS_WORLD1 D3DTS_WORLDMATRIX(1)
87 #define D3DTS_WORLD2 D3DTS_WORLDMATRIX(2)
88 #define D3DTS_WORLD3 D3DTS_WORLDMATRIX(3)
89 #define D3DTS_WORLDMATRIX(index) (D3DTRANSFORMSTATETYPE)(index + 256)
90 
91 #define D3DUSAGE_RENDERTARGET 0x01
92 #define D3DUSAGE_DEPTHSTENCIL 0x02
93 #define D3DUSAGE_WRITEONLY 0x08
94 #define D3DUSAGE_SOFTWAREPROCESSING 0x10
95 #define D3DUSAGE_DONOTCLIP 0x20
96 #define D3DUSAGE_POINTS 0x40
97 #define D3DUSAGE_RTPATCHES 0x80
98 #define D3DUSAGE_NPATCHES 0x100
99 #define D3DUSAGE_DYNAMIC 0x200
100 
101 #define D3DWRAP_U 1
102 #define D3DWRAP_V 2
103 #define D3DWRAP_W 4
104 #define D3DWRAPCOORD_0 1
105 #define D3DWRAPCOORD_1 2
106 #define D3DWRAPCOORD_2 4
107 #define D3DWRAPCOORD_3 8
108 
109 #define MAX_DEVICE_IDENTIFIER_STRING 512
110 
111 #define D3DFVF_RESERVED0 0x0001
112 #define D3DFVF_POSITION_MASK 0x000E
113 #define D3DFVF_XYZ 0x0002
114 #define D3DFVF_XYZRHW 0x0004
115 #define D3DFVF_XYZB1 0x0006
116 #define D3DFVF_XYZB2 0x0008
117 #define D3DFVF_XYZB3 0x000a
118 #define D3DFVF_XYZB4 0x000c
119 #define D3DFVF_XYZB5 0x000e
120 #define D3DFVF_NORMAL 0x0010
121 #define D3DFVF_PSIZE 0x0020
122 #define D3DFVF_DIFFUSE 0x0040
123 #define D3DFVF_SPECULAR 0x0080
124 #define D3DFVF_TEXCOUNT_MASK 0x0f00
125 #define D3DFVF_TEXCOUNT_SHIFT 8
126 #define D3DFVF_TEX0 0x0000
127 #define D3DFVF_TEX1 0x0100
128 #define D3DFVF_TEX2 0x0200
129 #define D3DFVF_TEX3 0x0300
130 #define D3DFVF_TEX4 0x0400
131 #define D3DFVF_TEX5 0x0500
132 #define D3DFVF_TEX6 0x0600
133 #define D3DFVF_TEX7 0x0700
134 #define D3DFVF_TEX8 0x0800
135 #define D3DFVF_LASTBETA_UBYTE4 0x1000
136 #define D3DFVF_RESERVED2 0xE000
137 
138 #define D3DTA_SELECTMASK 0x0000000f
139 #define D3DTA_DIFFUSE 0x00000000
140 #define D3DTA_CURRENT 0x00000001
141 #define D3DTA_TEXTURE 0x00000002
142 #define D3DTA_TFACTOR 0x00000003
143 #define D3DTA_SPECULAR 0x00000004
144 #define D3DTA_COMPLEMENT 0x00000010
145 #define D3DTA_ALPHAREPLICATE 0x00000020
146 #define D3DTA_TEMP 0x00000005
147 
148 #define D3DCOLORWRITEENABLE_RED (1L<<0)
149 #define D3DCOLORWRITEENABLE_GREEN (1L<<1)
150 #define D3DCOLORWRITEENABLE_BLUE (1L<<2)
151 #define D3DCOLORWRITEENABLE_ALPHA (1L<<3)
152 
153 
154 #ifndef MAKEFOURCC
155 #define MAKEFOURCC(ch0, ch1, ch2, ch3) \
156  ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
157  ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
158 #endif
159 
160 /****************************
161  * Vertex Shaders Declaration
162  */
163 
164 typedef enum _D3DVSD_TOKENTYPE {
171  /* RESERVED = 6 */
173  D3DVSD_FORCE_DWORD = 0x7FFFFFFF
175 
177 /*
178 #define D3DVSDE_POSITION 0
179 #define D3DVSDE_BLENDWEIGHT 1
180 #define D3DVSDE_BLENDINDICES 2
181 #define D3DVSDE_NORMAL 3
182 #define D3DVSDE_PSIZE 4
183 #define D3DVSDE_DIFFUSE 5
184 #define D3DVSDE_SPECULAR 6
185 #define D3DVSDE_TEXCOORD0 7
186 #define D3DVSDE_TEXCOORD1 8
187 #define D3DVSDE_TEXCOORD2 9
188 #define D3DVSDE_TEXCOORD3 10
189 #define D3DVSDE_TEXCOORD4 11
190 #define D3DVSDE_TEXCOORD5 12
191 #define D3DVSDE_TEXCOORD6 13
192 #define D3DVSDE_TEXCOORD7 14
193 #define D3DVSDE_POSITION2 15
194 #define D3DVSDE_NORMAL2 16
195 */
197 typedef enum _D3DVSDE_REGISTER {
216 
218 /*
219 #define D3DVSDT_FLOAT1 0x00
220 #define D3DVSDT_FLOAT2 0x01
221 #define D3DVSDT_FLOAT3 0x02
222 #define D3DVSDT_FLOAT4 0x03
223 #define D3DVSDT_D3DCOLOR 0x04
224 #define D3DVSDT_UBYTE4 0x05
225 #define D3DVSDT_SHORT2 0x06
226 #define D3DVSDT_SHORT4 0x07
227 */
228 typedef enum _D3DVSDT_TYPE {
237 } D3DVSDT_TYPE;
238 
239 
240 #define D3DVSD_CONSTADDRESSSHIFT 0
241 #define D3DVSD_EXTINFOSHIFT 0
242 #define D3DVSD_STREAMNUMBERSHIFT 0
243 #define D3DVSD_VERTEXREGSHIFT 0
244 #define D3DVSD_CONSTRSSHIFT 16
245 #define D3DVSD_DATATYPESHIFT 16
246 #define D3DVSD_SKIPCOUNTSHIFT 16
247 #define D3DVSD_VERTEXREGINSHIFT 20
248 #define D3DVSD_EXTCOUNTSHIFT 24
249 #define D3DVSD_CONSTCOUNTSHIFT 25
250 #define D3DVSD_DATALOADTYPESHIFT 28
251 #define D3DVSD_STREAMTESSSHIFT 28
252 #define D3DVSD_TOKENTYPESHIFT 29
253 
254 #define D3DVSD_CONSTADDRESSMASK (0x7F << D3DVSD_CONSTADDRESSSHIFT)
255 #define D3DVSD_EXTINFOMASK (0xFFFFFF << D3DVSD_EXTINFOSHIFT)
256 #define D3DVSD_STREAMNUMBERMASK (0xF << D3DVSD_STREAMNUMBERSHIFT)
257 #define D3DVSD_VERTEXREGMASK (0x1F << D3DVSD_VERTEXREGSHIFT)
258 #define D3DVSD_CONSTRSMASK (0x1FFF << D3DVSD_CONSTRSSHIFT)
259 #define D3DVSD_DATATYPEMASK (0xF << D3DVSD_DATATYPESHIFT)
260 #define D3DVSD_SKIPCOUNTMASK (0xF << D3DVSD_SKIPCOUNTSHIFT)
261 #define D3DVSD_EXTCOUNTMASK (0x1F << D3DVSD_EXTCOUNTSHIFT)
262 #define D3DVSD_VERTEXREGINMASK (0xF << D3DVSD_VERTEXREGINSHIFT)
263 #define D3DVSD_CONSTCOUNTMASK (0xF << D3DVSD_CONSTCOUNTSHIFT)
264 #define D3DVSD_DATALOADTYPEMASK (0x1 << D3DVSD_DATALOADTYPESHIFT)
265 #define D3DVSD_STREAMTESSMASK (0x1 << D3DVSD_STREAMTESSSHIFT)
266 #define D3DVSD_TOKENTYPEMASK (0x7u << D3DVSD_TOKENTYPESHIFT)
267 
268 
269 #define D3DVSD_MAKETOKENTYPE(TokenType) \
270  (((unsigned)TokenType << D3DVSD_TOKENTYPESHIFT) & D3DVSD_TOKENTYPEMASK)
271 
272 #define D3DVSD_CONST(ConstantAddress, Count) \
273  (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_CONSTMEM) | ((Count) << D3DVSD_CONSTCOUNTSHIFT) | (ConstantAddress))
274 
275 #define D3DVSD_END() 0xFFFFFFFF
276 
277 #define D3DVSD_NOP() 0x00000000
278 
279 #define D3DVSD_REG(VertexRegister, Type) \
280  (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAMDATA) | ((Type) << D3DVSD_DATATYPESHIFT) | (VertexRegister))
281 
282 #define D3DVSD_SKIP(Count) \
283  (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAMDATA) | 0x10000000 | ((Count) << D3DVSD_SKIPCOUNTSHIFT))
284 
285 #define D3DVSD_STREAM(StreamNumber) \
286  (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAM) | (StreamNumber))
287 
288 #define D3DVSD_STREAM_TESS() \
289  (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAM) | (D3DVSD_STREAMTESSMASK))
290 
291 #define D3DVSD_TESSNORMAL(RegisterIn, RegisterOut) \
292  (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) | ((RegisterIn) << D3DVSD_VERTEXREGINSHIFT) | ((0x02) << D3DVSD_DATATYPESHIFT) | (RegisterOut))
293 
294 #define D3DVSD_TESSUV(Register) \
295  (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) | 0x10000000 | ((0x01) << D3DVSD_DATATYPESHIFT) | (Register))
296 
297 
298 /********************************
299  * Pixel/Vertex Shaders Functions
300  */
301 
303 #define D3DDP_MAXTEXCOORD 8
304 
306 #define D3DSI_OPCODE_MASK 0x0000FFFF
307 
335 
362 
363  D3DSIO_PHASE = 0xFFFD,
364  D3DSIO_COMMENT = 0xFFFE,
365  D3DSIO_END = 0XFFFF,
366 
367  D3DSIO_FORCE_DWORD = 0X7FFFFFFF
369 
371 #define D3DSI_COISSUE 0x40000000
372 
374 #define D3DSP_WRITEMASK_0 0x00010000 /* .x r */
375 #define D3DSP_WRITEMASK_1 0x00020000 /* .y g */
376 #define D3DSP_WRITEMASK_2 0x00040000 /* .z b */
377 #define D3DSP_WRITEMASK_3 0x00080000 /* .w a */
378 #define D3DSP_WRITEMASK_ALL 0x000F0000 /* all */
379 
380 #define D3DSP_DSTMOD_SHIFT 20
381 #define D3DSP_DSTMOD_MASK (0xF << D3DSP_DSTMOD_SHIFT)
382 
386  D3DSPDM_FORCE_DWORD = 0X7FFFFFFF
388 
390 #define D3DSP_DSTSHIFT_SHIFT 24
391 #define D3DSP_DSTSHIFT_MASK (0xF << D3DSP_DSTSHIFT_SHIFT)
392 
394 #define D3DSP_REGTYPE_SHIFT 28
395 #define D3DSP_REGTYPE_MASK (0x7 << D3DSP_REGTYPE_SHIFT)
396 
406  D3DSPR_FORCE_DWORD = 0x7FFFFFFF
408 
413  D3DSRO_FORCE_DWORD = 0x7FFFFFFF
415 
416 #define D3DVS_ADDRESSMODE_SHIFT 13
417 #define D3DVS_ADDRESSMODE_MASK (0x1 << D3DVS_ADDRESSMODE_SHIFT)
418 
424 
425 #define D3DVS_SWIZZLE_SHIFT 16
426 #define D3DVS_SWIZZLE_MASK (0xFF << D3DVS_SWIZZLE_SHIFT)
427 
428 #define D3DSP_SWIZZLE_SHIFT 16
429 #define D3DSP_SWIZZLE_MASK (0xFF << D3DSP_SWIZZLE_SHIFT)
430 
431 #define D3DVS_X_X (0 << D3DVS_SWIZZLE_SHIFT)
432 #define D3DVS_X_Y (1 << D3DVS_SWIZZLE_SHIFT)
433 #define D3DVS_X_Z (2 << D3DVS_SWIZZLE_SHIFT)
434 #define D3DVS_X_W (3 << D3DVS_SWIZZLE_SHIFT)
435 
436 #define D3DVS_Y_X (0 << (D3DVS_SWIZZLE_SHIFT + 2))
437 #define D3DVS_Y_Y (1 << (D3DVS_SWIZZLE_SHIFT + 2))
438 #define D3DVS_Y_Z (2 << (D3DVS_SWIZZLE_SHIFT + 2))
439 #define D3DVS_Y_W (3 << (D3DVS_SWIZZLE_SHIFT + 2))
440 
441 #define D3DVS_Z_X (0 << (D3DVS_SWIZZLE_SHIFT + 4))
442 #define D3DVS_Z_Y (1 << (D3DVS_SWIZZLE_SHIFT + 4))
443 #define D3DVS_Z_Z (2 << (D3DVS_SWIZZLE_SHIFT + 4))
444 #define D3DVS_Z_W (3 << (D3DVS_SWIZZLE_SHIFT + 4))
445 
446 #define D3DVS_W_X (0 << (D3DVS_SWIZZLE_SHIFT + 6))
447 #define D3DVS_W_Y (1 << (D3DVS_SWIZZLE_SHIFT + 6))
448 #define D3DVS_W_Z (2 << (D3DVS_SWIZZLE_SHIFT + 6))
449 #define D3DVS_W_W (3 << (D3DVS_SWIZZLE_SHIFT + 6))
450 
451 #define D3DVS_NOSWIZZLE (D3DVS_X_X | D3DVS_Y_Y | D3DVS_Z_Z | D3DVS_W_W)
452 
453 #define D3DSP_NOSWIZZLE \
454  ((0 << (D3DSP_SWIZZLE_SHIFT + 0)) | (1 << (D3DSP_SWIZZLE_SHIFT + 2)) | (2 << (D3DSP_SWIZZLE_SHIFT + 4)) | (3 << (D3DSP_SWIZZLE_SHIFT + 6)))
455 
456 #define D3DSP_SRCMOD_SHIFT 24
457 #define D3DSP_SRCMOD_MASK (0xF << D3DSP_SRCMOD_SHIFT)
458 
471  D3DSPSM_FORCE_DWORD = 0x7FFFFFFF
473 
474 #define D3DPS_VERSION(major, minor) (0xFFFF0000 | ((major) << 8) | (minor))
475 #define D3DVS_VERSION(major, minor) (0xFFFE0000 | ((major) << 8) | (minor))
476 #define D3DSHADER_VERSION_MAJOR(version) (((version) >> 8) & 0xFF)
477 #define D3DSHADER_VERSION_MINOR(version) (((version) >> 0) & 0xFF)
478 
479 #define D3DSI_COMMENTSIZE_SHIFT 16
480 #define D3DSI_COMMENTSIZE_MASK (0x7FFF << D3DSI_COMMENTSIZE_SHIFT)
481 
482 #define D3DSHADER_COMMENT(commentSize) \
483  ((((commentSize) << D3DSI_COMMENTSIZE_SHIFT) & D3DSI_COMMENTSIZE_MASK) | D3DSIO_COMMENT)
484 
485 #define D3DPS_END() 0x0000FFFF
486 #define D3DVS_END() 0x0000FFFF
487 
488 
489 /*****************************************************************************
490  * Direct 3D v8 enumerated types
491  */
492 typedef enum _D3DBACKBUFFER_TYPE {
496 
499 
500 typedef enum _D3DBASISTYPE{
504 
505  D3DBASIS_FORCE_DWORD = 0x7fffffff
506 } D3DBASISTYPE;
507 
508 typedef enum _D3DBLEND {
522 
523  D3DBLEND_FORCE_DWORD = 0x7fffffff
524 } D3DBLEND;
525 
526 typedef enum _D3DBLENDOP {
532 
534 } D3DBLENDOP;
535 
536 typedef enum _D3DCMPFUNC {
545 
546  D3DCMP_FORCE_DWORD = 0x7fffffff
547 } D3DCMPFUNC;
548 
549 typedef enum _D3DCUBEMAP_FACES {
556 
559 
560 typedef enum _D3DCULL {
564 
565  D3DCULL_FORCE_DWORD = 0x7fffffff
566 } D3DCULL;
567 
571 
572  D3DDMT_FORCE_DWORD = 0x7fffffff
574 
575 typedef enum _D3DDEVTYPE {
579 
581 } D3DDEVTYPE;
582 
583 typedef enum _D3DFILLMODE {
587 
588  D3DFILL_FORCE_DWORD = 0x7fffffff
589 } D3DFILLMODE;
590 
591 typedef enum _D3DFOGMODE {
596 
597  D3DFOG_FORCE_DWORD = 0x7fffffff
598 } D3DFOGMODE;
599 
600 typedef enum _D3DFORMAT {
602 
611  D3DFMT_A8 = 28,
616 
618  D3DFMT_P8 = 41,
619 
620  D3DFMT_L8 = 50,
623 
631 
632  D3DFMT_UYVY = MAKEFOURCC('U', 'Y', 'V', 'Y'),
633  D3DFMT_YUY2 = MAKEFOURCC('Y', 'U', 'Y', '2'),
634  D3DFMT_DXT1 = MAKEFOURCC('D', 'X', 'T', '1'),
635  D3DFMT_DXT2 = MAKEFOURCC('D', 'X', 'T', '2'),
636  D3DFMT_DXT3 = MAKEFOURCC('D', 'X', 'T', '3'),
637  D3DFMT_DXT4 = MAKEFOURCC('D', 'X', 'T', '4'),
638  D3DFMT_DXT5 = MAKEFOURCC('D', 'X', 'T', '5'),
639 
647 
651 
652  D3DFMT_FORCE_DWORD = 0xFFFFFFFF
653 } D3DFORMAT;
654 
655 typedef enum _D3DLIGHTTYPE {
659 
660  D3DLIGHT_FORCE_DWORD = 0x7fffffff
661 } D3DLIGHTTYPE;
662 
667 
668  D3DMCS_FORCE_DWORD = 0x7fffffff
670 
671 typedef enum _D3DMULTISAMPLE_TYPE {
688 
691 
692 typedef enum _D3DORDERTYPE {
697 
698  D3DORDER_FORCE_DWORD = 0x7fffffff
699 } D3DORDERTYPE;
700 
701 typedef enum _D3DPATCHEDGESTYLE {
704 
707 
708 typedef enum _D3DPOOL {
713 
714  D3DPOOL_FORCE_DWORD = 0x7fffffff
715 } D3DPOOL;
716 
717 typedef enum _D3DPRIMITIVETYPE {
724 
725  D3DPT_FORCE_DWORD = 0x7fffffff
727 
728 typedef enum _D3DRENDERSTATETYPE {
764  D3DRS_WRAP0 = 128,
765  D3DRS_WRAP1 = 129,
766  D3DRS_WRAP2 = 130,
767  D3DRS_WRAP3 = 131,
768  D3DRS_WRAP4 = 132,
769  D3DRS_WRAP5 = 133,
770  D3DRS_WRAP6 = 134,
771  D3DRS_WRAP7 = 135,
805 
806  D3DRS_FORCE_DWORD = 0x7fffffff
808 
809 typedef enum _D3DRESOURCETYPE {
817 
818  D3DRTYPE_FORCE_DWORD = 0x7fffffff
820 
821 typedef enum _D3DSHADEMODE {
825 
826  D3DSHADE_FORCE_DWORD = 0x7fffffff
827 } D3DSHADEMODE;
828 
829 typedef enum _D3DSTATEBLOCKTYPE {
833 
834  D3DSBT_FORCE_DWORD = 0xffffffff
836 
837 typedef enum _D3DSTENCILOP {
846 
848 } D3DSTENCILOP;
849 
850 typedef enum _D3DSWAPEFFECT {
855 
857 } D3DSWAPEFFECT;
858 
859 typedef enum _D3DTEXTUREADDRESS {
865 
868 
869 typedef enum _D3DTEXTUREFILTERTYPE {
876 
877  D3DTEXF_FORCE_DWORD = 0x7fffffff
879 
880 typedef enum _D3DTEXTUREOP {
907 
908  D3DTOP_FORCE_DWORD = 0x7fffffff,
909 } D3DTEXTUREOP;
910 
939 
940  D3DTSS_FORCE_DWORD = 0x7fffffff
942 
950 
951  D3DTTFF_FORCE_DWORD = 0x7fffffff
953 
965 
966  D3DTS_FORCE_DWORD = 0x7fffffff
968 
969 typedef enum _D3DVERTEXBLENDFLAGS {
977 
978 typedef enum _D3DZBUFFERTYPE {
982 
983  D3DZB_FORCE_DWORD = 0x7fffffff
985 
986 
987 /*****************************************************************************
988  * Direct 3D v8 typedefs
989  */
990 typedef DWORD D3DCOLOR;
991 
992 /*****************************************************************************
993  * Direct 3D v8 structures
994  */
995 typedef struct _D3DADAPTER_IDENTIFIER8 {
998 
1004 
1006 
1009 
1010 typedef struct _D3DBOX {
1017 } D3DBOX;
1018 
1019 typedef struct _D3DCLIPSTATUS8 {
1022 } D3DCLIPSTATUS8;
1023 
1024 typedef struct _D3DCOLORVALUE {
1025  float r;
1026  float g;
1027  float b;
1028  float a;
1029 } D3DCOLORVALUE;
1030 
1037 
1038 typedef struct _D3DDISPLAYMODE {
1043 } D3DDISPLAYMODE;
1044 
1045 typedef struct _D3DGAMMARAMP {
1046  WORD red [256];
1047  WORD green[256];
1048  WORD blue [256];
1049 } D3DGAMMARAMP;
1050 
1051 typedef struct _D3DINDEXBUFFER_DESC {
1058 
1059 #ifndef D3DVECTOR_DEFINED
1060 typedef struct _D3DVECTOR {
1061  float x;
1062  float y;
1063  float z;
1064 } D3DVECTOR;
1065 #define D3DVECTOR_DEFINED
1066 #endif
1067 
1068 typedef struct _D3DLIGHT8 {
1075  float Range;
1076  float Falloff;
1080  float Theta;
1081  float Phi;
1082 } D3DLIGHT8;
1083 
1084 typedef struct _D3DLINEPATTERN {
1087 } D3DLINEPATTERN;
1088 
1089 typedef struct _D3DLOCKED_BOX {
1092  void* pBits;
1093 } D3DLOCKED_BOX;
1094 
1095 typedef struct _D3DLOCKED_RECT {
1097  void* pBits;
1098 } D3DLOCKED_RECT;
1099 
1100 typedef struct _D3DMATERIAL8 {
1105  float Power;
1106 } D3DMATERIAL8;
1107 
1108 typedef struct _D3DMATRIX {
1109  union {
1110  struct {
1111  float _11, _12, _13, _14;
1112  float _21, _22, _23, _24;
1113  float _31, _32, _33, _34;
1114  float _41, _42, _43, _44;
1115  } DUMMYSTRUCTNAME;
1116  float m[4][4];
1117  } DUMMYUNIONNAME;
1118 } D3DMATRIX;
1119 
1120 typedef struct _D3DPRESENT_PARAMETERS_ {
1125 
1127 
1134 
1137 
1139 
1140 #define D3DPRESENTFLAG_LOCKABLE_BACKBUFFER 0x00000001
1141 
1142 typedef struct _D3DRANGE {
1145 } D3DRANGE;
1146 
1147 typedef struct _D3DRASTER_STATUS {
1151 
1152 typedef struct _D3DRECT {
1157 } D3DRECT;
1158 
1159 typedef struct _D3DRECTPATCH_INFO {
1168 
1169 typedef struct _D3DSURFACE_DESC {
1178 } D3DSURFACE_DESC;
1179 
1180 typedef struct _D3DTRIPATCH_INFO {
1186 
1187 typedef struct _D3DVERTEXBUFFER_DESC {
1195 
1196 typedef struct _D3DVIEWPORT8 {
1201  float MinZ;
1202  float MaxZ;
1203 } D3DVIEWPORT8;
1204 
1205 typedef struct _D3DVOLUME_DESC {
1214 } D3DVOLUME_DESC;
1215 
1216 #ifdef __i386__
1217 #include <poppack.h>
1218 #endif
1219 
1220 #endif /* __WINE_D3D8TYPES_H */
enum _D3DFILLMODE D3DFILLMODE
float _11
Definition: d3d8types.h:1111
_D3DTEXTUREADDRESS
Definition: d3d8types.h:859
struct _D3DVIEWPORT8 D3DVIEWPORT8
D3DORDERTYPE Order
Definition: d3d8types.h:1184
_D3DSHADEMODE
Definition: d3d8types.h:821
struct _D3DRECTPATCH_INFO D3DRECTPATCH_INFO
enum _D3DSHADER_INSTRUCTION_OPCODE_TYPE D3DSHADER_INSTRUCTION_OPCODE_TYPE
D3DCOLORVALUE Diffuse
Definition: d3d8types.h:1101
struct _D3DLIGHT8 D3DLIGHT8
enum _D3DVS_RASTOUT_OFFSETS D3DVS_RASTOUT_OFFSETS
WORD red[256]
Definition: d3d8types.h:1046
_D3DPATCHEDGESTYLE
Definition: d3d8types.h:701
_D3DPOOL
Definition: d3d8types.h:708
_D3DVS_RASTOUT_OFFSETS
Definition: d3d8types.h:409
enum _D3DRENDERSTATETYPE D3DRENDERSTATETYPE
D3DFORMAT Format
Definition: d3d8types.h:1170
float _43
Definition: d3d8types.h:1114
enum _D3DSHADER_PARAM_SRCMOD_TYPE D3DSHADER_PARAM_SRCMOD_TYPE
float _22
Definition: d3d8types.h:1112
struct _D3DSURFACE_DESC D3DSURFACE_DESC
struct _D3DVOLUME_DESC D3DVOLUME_DESC
enum _D3DBLEND D3DBLEND
float Attenuation1
Definition: d3d8types.h:1078
D3DVECTOR Position
Definition: d3d8types.h:1073
enum _D3DTEXTURETRANSFORMFLAGS D3DTEXTURETRANSFORMFLAGS
#define D3DSP_SRCMOD_SHIFT
Definition: d3d8types.h:456
struct _D3DCLIPSTATUS8 D3DCLIPSTATUS8
enum _D3DBLENDOP D3DBLENDOP
_D3DVS_ADDRESSMODE_TYPE
Definition: d3d8types.h:419
enum _D3DPOOL D3DPOOL
_D3DSTENCILOP
Definition: d3d8types.h:837
float Theta
Definition: d3d8types.h:1080
enum _D3DTEXTUREADDRESS D3DTEXTUREADDRESS
_D3DSHADER_INSTRUCTION_OPCODE_TYPE
Definition: d3d8types.h:309
struct _D3DTRIPATCH_INFO D3DTRIPATCH_INFO
_D3DDEVTYPE
Definition: d3d8types.h:575
_D3DBLEND
Definition: d3d8types.h:508
struct _D3DCOLORVALUE D3DCOLORVALUE
D3DRESOURCETYPE Type
Definition: d3d8types.h:1189
D3DLIGHTTYPE Type
Definition: d3d8types.h:1069
struct _D3DLOCKED_RECT D3DLOCKED_RECT
_D3DSHADER_PARAM_DSTMOD_TYPE
Definition: d3d8types.h:383
struct _D3DLINEPATTERN D3DLINEPATTERN
struct _D3DPRESENT_PARAMETERS_ D3DPRESENT_PARAMETERS
UINT StartVertexOffsetHeight
Definition: d3d8types.h:1161
enum _D3DVSDT_TYPE D3DVSDT_TYPE
D3DRESOURCETYPE Type
Definition: d3d8types.h:1053
float _34
Definition: d3d8types.h:1113
_D3DTEXTUREOP
Definition: d3d8types.h:880
struct _D3DDISPLAYMODE D3DDISPLAYMODE
LONG y1
Definition: d3d8types.h:1154
DWORD D3DCOLOR
Definition: d3d8types.h:990
char Description[MAX_DEVICE_IDENTIFIER_STRING]
Definition: d3d8types.h:997
int32_t INT
Definition: typedefs.h:56
_D3DCMPFUNC
Definition: d3d8types.h:536
_D3DFILLMODE
Definition: d3d8types.h:583
struct _D3DINDEXBUFFER_DESC D3DINDEXBUFFER_DESC
const GLfloat * m
Definition: glext.h:10848
UINT Size
Definition: d3d8types.h:1144
enum _D3DORDERTYPE D3DORDERTYPE
D3DCOLORVALUE Diffuse
Definition: d3d8types.h:1070
D3DBASISTYPE Basis
Definition: d3d8types.h:1183
#define D3DSP_REGTYPE_SHIFT
Definition: d3d8types.h:394
_D3DSTATEBLOCKTYPE
Definition: d3d8types.h:829
enum _D3DTEXTUREOP D3DTEXTUREOP
enum _D3DBASISTYPE D3DBASISTYPE
#define MAX_DEVICE_IDENTIFIER_STRING
Definition: d3d8types.h:109
UINT Back
Definition: d3d8types.h:1016
enum _D3DPATCHEDGESTYLE D3DPATCHEDGESTYLE
D3DVECTOR Direction
Definition: d3d8types.h:1074
D3DCOLORVALUE Ambient
Definition: d3d8types.h:1072
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
float _13
Definition: d3d8types.h:1111
D3DRESOURCETYPE Type
Definition: d3d8types.h:1207
struct _D3DVERTEXBUFFER_DESC D3DVERTEXBUFFER_DESC
float _44
Definition: d3d8types.h:1114
struct _D3DVECTOR D3DVECTOR
float _42
Definition: d3d8types.h:1114
#define D3DSP_DSTMOD_SHIFT
Definition: d3d8types.h:380
_D3DSHADER_PARAM_REGISTER_TYPE
Definition: d3d8types.h:397
_D3DMATERIALCOLORSOURCE
Definition: d3d8types.h:663
float _41
Definition: d3d8types.h:1114
D3DLIGHTTYPE
Definition: d3dtypes.h:554
float Range
Definition: d3d8types.h:1075
enum _D3DFOGMODE D3DFOGMODE
enum _D3DCUBEMAP_FACES D3DCUBEMAP_FACES
enum _D3DSHADEMODE D3DSHADEMODE
enum _D3DSTENCILOP D3DSTENCILOP
float _21
Definition: d3d8types.h:1112
enum _D3DZBUFFERTYPE D3DZBUFFERTYPE
enum _D3DVS_ADDRESSMODE_TYPE D3DVS_ADDRESSMODE_TYPE
D3DCOLORVALUE Specular
Definition: d3d8types.h:1103
enum _D3DFORMAT D3DFORMAT
GLclampf GLclampf blue
Definition: gl.h:1740
UINT Bottom
Definition: d3d8types.h:1014
D3DCOLORVALUE Emissive
Definition: d3d8types.h:1104
D3DMULTISAMPLE_TYPE MultiSampleType
Definition: d3d8types.h:1126
enum _D3DSWAPEFFECT D3DSWAPEFFECT
enum _D3DPRIMITIVETYPE D3DPRIMITIVETYPE
struct _D3DDEVICE_CREATION_PARAMETERS D3DDEVICE_CREATION_PARAMETERS
_D3DSWAPEFFECT
Definition: d3d8types.h:850
_D3DZBUFFERTYPE
Definition: d3d8types.h:978
float Attenuation2
Definition: d3d8types.h:1079
enum _D3DSHADER_PARAM_DSTMOD_TYPE D3DSHADER_PARAM_DSTMOD_TYPE
_D3DPRIMITIVETYPE
Definition: d3d8types.h:717
D3DFORMAT AutoDepthStencilFormat
Definition: d3d8types.h:1132
enum _D3DSTATEBLOCKTYPE D3DSTATEBLOCKTYPE
_D3DVSDT_TYPE
Definition: d3d8types.h:228
D3DFORMAT BackBufferFormat
Definition: d3d8types.h:1123
struct _D3DRASTER_STATUS D3DRASTER_STATUS
D3DCOLORVALUE Specular
Definition: d3d8types.h:1071
UINT Top
Definition: d3d8types.h:1012
float _31
Definition: d3d8types.h:1113
UINT Left
Definition: d3d8types.h:1011
enum _D3DDEVTYPE D3DDEVTYPE
unsigned short WORD
Definition: ntddk_ex.h:93
GLclampf green
Definition: gl.h:1740
unsigned long DWORD
Definition: ntddk_ex.h:95
float _24
Definition: d3d8types.h:1112
enum _D3DLIGHTTYPE D3DLIGHTTYPE
_D3DVERTEXBLENDFLAGS
Definition: d3d8types.h:969
LONG y2
Definition: d3d8types.h:1156
struct _D3DMATRIX D3DMATRIX
struct _D3DRECT D3DRECT
float _23
Definition: d3d8types.h:1112
D3DCOLORVALUE Ambient
Definition: d3d8types.h:1102
LONG x1
Definition: d3d8types.h:1153
_D3DRESOURCETYPE
Definition: d3d8types.h:809
#define D3DVS_ADDRESSMODE_SHIFT
Definition: d3d8types.h:416
UINT StartVertexOffsetWidth
Definition: d3d8types.h:1160
D3DMULTISAMPLE_TYPE MultiSampleType
Definition: d3d8types.h:1175
D3DBASISTYPE Basis
Definition: d3d8types.h:1165
_D3DBACKBUFFER_TYPE
Definition: d3d8types.h:492
_D3DMULTISAMPLE_TYPE
Definition: d3d8types.h:671
_D3DSHADER_PARAM_SRCMOD_TYPE
Definition: d3d8types.h:459
enum _D3DSHADER_PARAM_REGISTER_TYPE D3DSHADER_PARAM_REGISTER_TYPE
_D3DFOGMODE
Definition: d3d8types.h:591
_D3DBLENDOP
Definition: d3d8types.h:526
_D3DVSDE_REGISTER
Definition: d3d8types.h:197
LARGE_INTEGER DriverVersion
Definition: d3d8types.h:999
float Phi
Definition: d3d8types.h:1081
D3DFORMAT Format
Definition: d3d8types.h:1206
char Driver[MAX_DEVICE_IDENTIFIER_STRING]
Definition: d3d8types.h:996
_D3DTEXTURETRANSFORMFLAGS
Definition: d3d8types.h:943
float _33
Definition: d3d8types.h:1113
enum _D3DDEBUGMONITORTOKENS D3DDEBUGMONITORTOKENS
UINT Offset
Definition: d3d8types.h:1143
D3DFORMAT Format
Definition: d3d8types.h:1042
struct _D3DMATERIAL8 D3DMATERIAL8
enum _D3DVERTEXBLENDFLAGS D3DVERTEXBLENDFLAGS
UINT FullScreen_PresentationInterval
Definition: d3d8types.h:1136
struct _D3DADAPTER_IDENTIFIER8 D3DADAPTER_IDENTIFIER8
enum _D3DCULL D3DCULL
struct _D3DRANGE D3DRANGE
enum _D3DMULTISAMPLE_TYPE D3DMULTISAMPLE_TYPE
LONG x2
Definition: d3d8types.h:1155
UINT Front
Definition: d3d8types.h:1015
_D3DCUBEMAP_FACES
Definition: d3d8types.h:549
unsigned int UINT
Definition: ndis.h:50
_D3DFORMAT
Definition: d3d8types.h:600
_D3DRENDERSTATETYPE
Definition: d3d8types.h:728
union _D3DMATRIX::@2617 DUMMYUNIONNAME
#define MAKEFOURCC(ch0, ch1, ch2, ch3)
Definition: d3d8types.h:155
struct _D3DBOX D3DBOX
enum _D3DMATERIALCOLORSOURCE D3DMATERIALCOLORSOURCE
enum _D3DTEXTUREFILTERTYPE D3DTEXTUREFILTERTYPE
float _32
Definition: d3d8types.h:1113
enum _D3DVSD_TOKENTYPE D3DVSD_TOKENTYPE
_D3DORDERTYPE
Definition: d3d8types.h:692
float Attenuation0
Definition: d3d8types.h:1077
struct _D3DMATRIX::@2617::@2618 DUMMYSTRUCTNAME
D3DORDERTYPE Order
Definition: d3d8types.h:1166
UINT Right
Definition: d3d8types.h:1013
enum _D3DTEXTURESTAGESTATETYPE D3DTEXTURESTAGESTATETYPE
_D3DDEBUGMONITORTOKENS
Definition: d3d8types.h:568
float Falloff
Definition: d3d8types.h:1076
DWORD ClipIntersection
Definition: d3d8types.h:1021
enum _D3DBACKBUFFER_TYPE D3DBACKBUFFER_TYPE
D3DRESOURCETYPE Type
Definition: d3d8types.h:1171
struct _D3DGAMMARAMP D3DGAMMARAMP
_D3DBASISTYPE
Definition: d3d8types.h:500
enum _D3DTRANSFORMSTATETYPE D3DTRANSFORMSTATETYPE
enum _D3DCMPFUNC D3DCMPFUNC
float _14
Definition: d3d8types.h:1111
float _12
Definition: d3d8types.h:1111
struct _D3DLOCKED_BOX D3DLOCKED_BOX
_D3DCULL
Definition: d3d8types.h:560
_D3DVSD_TOKENTYPE
Definition: d3d8types.h:164
enum _D3DRESOURCETYPE D3DRESOURCETYPE
_D3DTEXTURESTAGESTATETYPE
Definition: d3d8types.h:911
enum _D3DVSDE_REGISTER D3DVSDE_REGISTER
_D3DLIGHTTYPE
Definition: d3d8types.h:655
_D3DTRANSFORMSTATETYPE
Definition: d3d8types.h:954
D3DSWAPEFFECT SwapEffect
Definition: d3d8types.h:1128
_D3DTEXTUREFILTERTYPE
Definition: d3d8types.h:869