2 * Copyright (C) 2002 Jason Edmeades
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_D3D8TYPES_H
20 #define __WINE_D3D8TYPES_H
23 /*****************************************************************************
24 * Direct 3D v8 #defines
27 #define D3DCLEAR_TARGET 1
28 #define D3DCLEAR_ZBUFFER 2
29 #define D3DCLEAR_STENCIL 4
31 #define D3DCLIPPLANE0 (1 << 0)
32 #define D3DCLIPPLANE1 (1 << 1)
33 #define D3DCLIPPLANE2 (1 << 2)
34 #define D3DCLIPPLANE3 (1 << 3)
35 #define D3DCLIPPLANE4 (1 << 4)
36 #define D3DCLIPPLANE5 (1 << 5)
38 #define D3DCOLOR_ARGB(a,r,g,b) ((D3DCOLOR)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))
39 #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))
40 #define D3DCOLOR_RGBA(r,g,b,a) D3DCOLOR_ARGB(a,r,g,b)
41 #define D3DCOLOR_XRGB(r,g,b) D3DCOLOR_ARGB(0xff,r,g,b)
43 #define D3DCOLORWRITEENABLED_RED 1
44 #define D3DCOLORWRITEENABLED_GREEN 2
45 #define D3DCOLORWRITEENABLED_BLUE 4
46 #define D3DCOLORWRITEENABLED_ALPHA 8
48 #define D3DCS_LEFT 0x001
49 #define D3DCS_RIGHT 0x002
50 #define D3DCS_TOP 0x004
51 #define D3DCS_BOTTOM 0x008
52 #define D3DCS_FRONT 0x010
53 #define D3DCS_BACK 0x020
54 #define D3DCS_PLANE0 0x040
55 #define D3DCS_PLANE1 0x080
56 #define D3DCS_PLANE2 0x100
57 #define D3DCS_PLANE3 0x200
58 #define D3DCS_PLANE4 0x400
59 #define D3DCS_PLANE5 0x800
60 #define D3DCS_ALL 0xFFF
62 #define D3DFVF_TEXTUREFORMAT1 3
63 #define D3DFVF_TEXTUREFORMAT2 0
64 #define D3DFVF_TEXTUREFORMAT3 1
65 #define D3DFVF_TEXTUREFORMAT4 2
66 #define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16))
67 #define D3DFVF_TEXCOORDSIZE2(CoordIndex) (D3DFVF_TEXTUREFORMAT2)
68 #define D3DFVF_TEXCOORDSIZE3(CoordIndex) (D3DFVF_TEXTUREFORMAT3 << (CoordIndex*2 + 16))
69 #define D3DFVF_TEXCOORDSIZE4(CoordIndex) (D3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16))
71 #define D3DLOCK_READONLY 0x0010
72 #define D3DLOCK_NOSYSLOCK 0x0800
73 #define D3DLOCK_NOOVERWRITE 0x1000
74 #define D3DLOCK_DISCARD 0x2000
75 #define D3DLOCK_NO_DIRTY_UPDATE 0x8000
77 #define D3DMAXUSERCLIPPLANES 32
79 #define D3DRENDERSTATE_WRAPBIAS 0x80
81 #define D3DTSS_TCI_PASSTHRU 0x00000
82 #define D3DTSS_TCI_CAMERASPACENORMAL 0x10000
83 #define D3DTSS_TCI_CAMERASPACEPOSITION 0x20000
84 #define D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR 0x30000
87 #define D3DTS_WORLD D3DTS_WORLDMATRIX(0)
88 #define D3DTS_WORLD1 D3DTS_WORLDMATRIX(1)
89 #define D3DTS_WORLD2 D3DTS_WORLDMATRIX(2)
90 #define D3DTS_WORLD3 D3DTS_WORLDMATRIX(3)
91 #define D3DTS_WORLDMATRIX(index) (D3DTRANSFORMSTATETYPE)(index + 256)
93 #define D3DUSAGE_RENDERTARGET 0x01
94 #define D3DUSAGE_DEPTHSTENCIL 0x02
95 #define D3DUSAGE_WRITEONLY 0x08
96 #define D3DUSAGE_SOFTWAREPROCESSING 0x10
97 #define D3DUSAGE_DONOTCLIP 0x20
98 #define D3DUSAGE_POINTS 0x40
99 #define D3DUSAGE_RTPATCHES 0x80
100 #define D3DUSAGE_NPATCHES 0x100
101 #define D3DUSAGE_DYNAMIC 0x200
106 #define D3DWRAPCOORD_0 1
107 #define D3DWRAPCOORD_1 2
108 #define D3DWRAPCOORD_2 4
109 #define D3DWRAPCOORD_3 8
111 #define MAX_DEVICE_IDENTIFIER_STRING 512
113 #define D3DFVF_RESERVED0 0x0001
114 #define D3DFVF_POSITION_MASK 0x000E
115 #define D3DFVF_XYZ 0x0002
116 #define D3DFVF_XYZRHW 0x0004
117 #define D3DFVF_XYZB1 0x0006
118 #define D3DFVF_XYZB2 0x0008
119 #define D3DFVF_XYZB3 0x000a
120 #define D3DFVF_XYZB4 0x000c
121 #define D3DFVF_XYZB5 0x000e
122 #define D3DFVF_NORMAL 0x0010
123 #define D3DFVF_PSIZE 0x0020
124 #define D3DFVF_DIFFUSE 0x0040
125 #define D3DFVF_SPECULAR 0x0080
126 #define D3DFVF_TEXCOUNT_MASK 0x0f00
127 #define D3DFVF_TEXCOUNT_SHIFT 8
128 #define D3DFVF_TEX0 0x0000
129 #define D3DFVF_TEX1 0x0100
130 #define D3DFVF_TEX2 0x0200
131 #define D3DFVF_TEX3 0x0300
132 #define D3DFVF_TEX4 0x0400
133 #define D3DFVF_TEX5 0x0500
134 #define D3DFVF_TEX6 0x0600
135 #define D3DFVF_TEX7 0x0700
136 #define D3DFVF_TEX8 0x0800
137 #define D3DFVF_LASTBETA_UBYTE4 0x1000
138 #define D3DFVF_RESERVED2 0xE000
140 #define D3DTA_SELECTMASK 0x0000000f
141 #define D3DTA_DIFFUSE 0x00000000
142 #define D3DTA_CURRENT 0x00000001
143 #define D3DTA_TEXTURE 0x00000002
144 #define D3DTA_TFACTOR 0x00000003
145 #define D3DTA_SPECULAR 0x00000004
146 #define D3DTA_COMPLEMENT 0x00000010
147 #define D3DTA_ALPHAREPLICATE 0x00000020
148 #define D3DTA_TEMP 0x00000005
150 #define MAKEFOURCC(ch0, ch1, ch2, ch3) \
151 ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
152 ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
154 /*****************************************************************************
155 * Direct 3D v8 enumerated types
157 typedef enum _D3DBACKBUFFER_TYPE
{
158 D3DBACKBUFFER_TYPE_MONO
= 0,
159 D3DBACKBUFFER_TYPE_LEFT
= 1,
160 D3DBACKBUFFER_TYPE_RIGHT
= 2,
162 D3DBACKBUFFER_TYPE_FORCE_DWORD
= 0x7fffffff
163 } D3DBACKBUFFER_TYPE
;
165 typedef enum _D3DBASISTYPE
{
167 D3DBASIS_BSPLINE
= 1,
168 D3DBASIS_INTERPOLATE
= 2,
170 D3DBASIS_FORCE_DWORD
= 0x7fffffff
173 typedef enum _D3DBLEND
{
176 D3DBLEND_SRCCOLOR
= 3,
177 D3DBLEND_INVSRCCOLOR
= 4,
178 D3DBLEND_SRCALPHA
= 5,
179 D3DBLEND_INVSRCALPHA
= 6,
180 D3DBLEND_DESTALPHA
= 7,
181 D3DBLEND_INVDESTALPHA
= 8,
182 D3DBLEND_DESTCOLOR
= 9,
183 D3DBLEND_INVDESTCOLOR
= 10,
184 D3DBLEND_SRCALPHASAT
= 11,
185 D3DBLEND_BOTHSRCALPHA
= 12,
186 D3DBLEND_BOTHINVSRCALPHA
= 13,
188 D3DBLEND_FORCE_DWORD
= 0x7fffffff
191 typedef enum _D3DBLENDOP
{
193 D3DBLENDOP_SUBTRACT
= 2,
194 D3DBLENDOP_REVSUBTRACT
= 3,
198 D3DBLENDOP_FORCE_DWORD
= 0x7fffffff
201 typedef enum _D3DCMPFUNC
{
205 D3DCMP_LESSEQUAL
= 4,
208 D3DCMP_GREATEREQUAL
= 7,
211 D3DCMP_FORCE_DWORD
= 0x7fffffff
214 typedef enum _D3DCUBEMAP_FACES
{
215 D3DCUBEMAP_FACE_POSITIVE_X
= 0,
216 D3DCUBEMAP_FACE_NEGATIVE_X
= 1,
217 D3DCUBEMAP_FACE_POSITIVE_Y
= 2,
218 D3DCUBEMAP_FACE_NEGATIVE_Y
= 3,
219 D3DCUBEMAP_FACE_POSITIVE_Z
= 4,
220 D3DCUBEMAP_FACE_NEGATIVE_Z
= 5,
222 D3DCUBEMAP_FACE_FORCE_DWORD
= 0xffffffff
225 typedef enum _D3DCULL
{
230 D3DCULL_FORCE_DWORD
= 0x7fffffff
233 typedef enum _D3DDEBUGMONITORTOKENS
{
237 D3DDMT_FORCE_DWORD
= 0x7fffffff
238 } D3DDEBUGMONITORTOKENS
;
240 typedef enum _D3DDEVTYPE
{
245 D3DDEVTYPE_FORCE_DWORD
= 0xffffffff
248 typedef enum _D3DFILLMODE
{
250 D3DFILL_WIREFRAME
= 2,
253 D3DFILL_FORCE_DWORD
= 0x7fffffff
256 typedef enum _D3DFOGMODE
{
262 D3DFOG_FORCE_DWORD
= 0x7fffffff
265 typedef enum _D3DFORMAT
{
269 D3DFMT_A8R8G8B8
= 21,
270 D3DFMT_X8R8G8B8
= 22,
272 D3DFMT_X1R5G5B5
= 24,
273 D3DFMT_A1R5G5B5
= 25,
274 D3DFMT_A4R4G4B4
= 26,
277 D3DFMT_A8R3G3B2
= 29,
278 D3DFMT_X4R4G4B4
= 30,
289 D3DFMT_X8L8V8U8
= 62,
290 D3DFMT_Q8W8V8U8
= 63,
292 D3DFMT_W11V11U10
= 65,
294 D3DFMT_UYVY
= MAKEFOURCC('U', 'Y', 'V', 'Y'),
295 D3DFMT_YUY2
= MAKEFOURCC('Y', 'U', 'Y', '2'),
296 D3DFMT_DXT1
= MAKEFOURCC('D', 'X', 'T', '1'),
297 D3DFMT_DXT2
= MAKEFOURCC('D', 'X', 'T', '2'),
298 D3DFMT_DXT3
= MAKEFOURCC('D', 'X', 'T', '3'),
299 D3DFMT_DXT4
= MAKEFOURCC('D', 'X', 'T', '4'),
300 D3DFMT_DXT5
= MAKEFOURCC('D', 'X', 'T', '5'),
302 D3DFMT_D16_LOCKABLE
= 70,
310 D3DFMT_VERTEXDATA
= 100,
311 D3DFMT_INDEX16
= 101,
312 D3DFMT_INDEX32
= 102,
314 D3DFMT_FORCE_DWORD
= 0xFFFFFFFF
317 typedef enum _D3DLIGHTTYPE
{
320 D3DLIGHT_DIRECTIONAL
= 3,
322 D3DLIGHT_FORCE_DWORD
= 0x7fffffff
325 typedef enum _D3DMATERIALCOLORSOURCE
{
330 D3DMCS_FORCE_DWORD
= 0x7fffffff
331 } D3DMATERIALCOLORSOURCE
;
333 typedef enum _D3DMULTISAMPLE_TYPE
{
334 D3DMULTISAMPLE_NONE
= 0,
335 D3DMULTISAMPLE_2_SAMPLES
= 2,
336 D3DMULTISAMPLE_3_SAMPLES
= 3,
337 D3DMULTISAMPLE_4_SAMPLES
= 4,
338 D3DMULTISAMPLE_5_SAMPLES
= 5,
339 D3DMULTISAMPLE_6_SAMPLES
= 6,
340 D3DMULTISAMPLE_7_SAMPLES
= 7,
341 D3DMULTISAMPLE_8_SAMPLES
= 8,
342 D3DMULTISAMPLE_9_SAMPLES
= 9,
343 D3DMULTISAMPLE_10_SAMPLES
= 10,
344 D3DMULTISAMPLE_11_SAMPLES
= 11,
345 D3DMULTISAMPLE_12_SAMPLES
= 12,
346 D3DMULTISAMPLE_13_SAMPLES
= 13,
347 D3DMULTISAMPLE_14_SAMPLES
= 14,
348 D3DMULTISAMPLE_15_SAMPLES
= 15,
349 D3DMULTISAMPLE_16_SAMPLES
= 16,
351 D3DMULTISAMPLE_FORCE_DWORD
= 0xffffffff
352 } D3DMULTISAMPLE_TYPE
;
354 typedef enum _D3DORDERTYPE
{
356 D3DORDER_QUADRATIC
= 2,
358 D3DORDER_QUINTIC
= 5,
360 D3DORDER_FORCE_DWORD
= 0x7fffffff
363 typedef enum _D3DPATCHEDGESTYLE
{
364 D3DPATCHEDGE_DISCRETE
= 0,
365 D3DPATCHEDGE_CONTINUOUS
= 1,
367 D3DPATCHEDGE_FORCE_DWORD
= 0x7fffffff,
370 typedef enum _D3DPOOL
{
373 D3DPOOL_SYSTEMMEM
= 2,
376 D3DPOOL_FORCE_DWORD
= 0x7fffffff
379 typedef enum _D3DPRIMITIVETYPE
{
383 D3DPT_TRIANGLELIST
= 4,
384 D3DPT_TRIANGLESTRIP
= 5,
385 D3DPT_TRIANGLEFAN
= 6,
387 D3DPT_FORCE_DWORD
= 0x7fffffff
390 typedef enum _D3DRENDERSTATETYPE
{
394 D3DRS_LINEPATTERN
= 10,
395 D3DRS_ZWRITEENABLE
= 14,
396 D3DRS_ALPHATESTENABLE
= 15,
397 D3DRS_LASTPIXEL
= 16,
399 D3DRS_DESTBLEND
= 20,
403 D3DRS_ALPHAFUNC
= 25,
404 D3DRS_DITHERENABLE
= 26,
405 D3DRS_ALPHABLENDENABLE
= 27,
406 D3DRS_FOGENABLE
= 28,
407 D3DRS_SPECULARENABLE
= 29,
410 D3DRS_FOGTABLEMODE
= 35,
413 D3DRS_FOGDENSITY
= 38,
414 D3DRS_EDGEANTIALIAS
= 40,
416 D3DRS_RANGEFOGENABLE
= 48,
417 D3DRS_STENCILENABLE
= 52,
418 D3DRS_STENCILFAIL
= 53,
419 D3DRS_STENCILZFAIL
= 54,
420 D3DRS_STENCILPASS
= 55,
421 D3DRS_STENCILFUNC
= 56,
422 D3DRS_STENCILREF
= 57,
423 D3DRS_STENCILMASK
= 58,
424 D3DRS_STENCILWRITEMASK
= 59,
425 D3DRS_TEXTUREFACTOR
= 60,
434 D3DRS_CLIPPING
= 136,
435 D3DRS_LIGHTING
= 137,
437 D3DRS_FOGVERTEXMODE
= 140,
438 D3DRS_COLORVERTEX
= 141,
439 D3DRS_LOCALVIEWER
= 142,
440 D3DRS_NORMALIZENORMALS
= 143,
441 D3DRS_DIFFUSEMATERIALSOURCE
= 145,
442 D3DRS_SPECULARMATERIALSOURCE
= 146,
443 D3DRS_AMBIENTMATERIALSOURCE
= 147,
444 D3DRS_EMISSIVEMATERIALSOURCE
= 148,
445 D3DRS_VERTEXBLEND
= 151,
446 D3DRS_CLIPPLANEENABLE
= 152,
447 D3DRS_SOFTWAREVERTEXPROCESSING
= 153,
448 D3DRS_POINTSIZE
= 154,
449 D3DRS_POINTSIZE_MIN
= 155,
450 D3DRS_POINTSPRITEENABLE
= 156,
451 D3DRS_POINTSCALEENABLE
= 157,
452 D3DRS_POINTSCALE_A
= 158,
453 D3DRS_POINTSCALE_B
= 159,
454 D3DRS_POINTSCALE_C
= 160,
455 D3DRS_MULTISAMPLEANTIALIAS
= 161,
456 D3DRS_MULTISAMPLEMASK
= 162,
457 D3DRS_PATCHEDGESTYLE
= 163,
458 D3DRS_PATCHSEGMENTS
= 164,
459 D3DRS_DEBUGMONITORTOKEN
= 165,
460 D3DRS_POINTSIZE_MAX
= 166,
461 D3DRS_INDEXEDVERTEXBLENDENABLE
= 167,
462 D3DRS_COLORWRITEENABLE
= 168,
463 D3DRS_TWEENFACTOR
= 170,
465 D3DRS_POSITIONORDER
= 172,
466 D3DRS_NORMALORDER
= 173,
468 D3DRS_FORCE_DWORD
= 0x7fffffff
469 } D3DRENDERSTATETYPE
;
471 typedef enum _D3DRESOURCETYPE
{
472 D3DRTYPE_SURFACE
= 1,
474 D3DRTYPE_TEXTURE
= 3,
475 D3DRTYPE_VOLUMETEXTURE
= 4,
476 D3DRTYPE_CUBETEXTURE
= 5,
477 D3DRTYPE_VERTEXBUFFER
= 6,
478 D3DRTYPE_INDEXBUFFER
= 7,
480 D3DRTYPE_FORCE_DWORD
= 0x7fffffff
483 typedef enum _D3DSHADEMODE
{
485 D3DSHADE_GOURAUD
= 2,
488 D3DSHADE_FORCE_DWORD
= 0x7fffffff
491 typedef enum _D3DSTATEBLOCKTYPE
{
493 D3DSBT_PIXELSTATE
= 2,
494 D3DSBT_VERTEXSTATE
= 3,
496 D3DSBT_FORCE_DWORD
= 0xffffffff
499 typedef enum _D3DSTENCILOP
{
500 D3DSTENCILOP_KEEP
= 1,
501 D3DSTENCILOP_ZERO
= 2,
502 D3DSTENCILOP_REPLACE
= 3,
503 D3DSTENCILOP_INCRSAT
= 4,
504 D3DSTENCILOP_DECRSAT
= 5,
505 D3DSTENCILOP_INVERT
= 6,
506 D3DSTENCILOP_INCR
= 7,
507 D3DSTENCILOP_DECR
= 8,
509 D3DSTENCILOP_FORCE_DWORD
= 0x7fffffff
512 typedef enum _D3DSWAPEFFECT
{
513 D3DSWAPEFFECT_DISCARD
= 1,
514 D3DSWAPEFFECT_FLIP
= 2,
515 D3DSWAPEFFECT_COPY
= 3,
516 D3DSWAPEFFECT_COPY_VSYNC
= 4,
518 D3DSWAPEFFECT_FORCE_DWORD
= 0xFFFFFFFF
521 typedef enum _D3DTEXTUREADDRESS
{
522 D3DTADDRESS_WRAP
= 1,
523 D3DTADDRESS_MIRROR
= 2,
524 D3DTADDRESS_CLAMP
= 3,
525 D3DTADDRESS_BORDER
= 4,
526 D3DTADDRESS_MIRRORONCE
= 5,
528 D3DTADDRESS_FORCE_DWORD
= 0x7fffffff
531 typedef enum _D3DTEXTUREFILTERTYPE
{
535 D3DTEXF_ANISOTROPIC
= 3,
536 D3DTEXF_FLATCUBIC
= 4,
537 D3DTEXF_GAUSSIANCUBIC
= 5,
539 D3DTEXF_FORCE_DWORD
= 0x7fffffff
540 } D3DTEXTUREFILTERTYPE
;
542 typedef enum _D3DTEXTUREOP
{
544 D3DTOP_SELECTARG1
= 2,
545 D3DTOP_SELECTARG2
= 3,
547 D3DTOP_MODULATE2X
= 5,
548 D3DTOP_MODULATE4X
= 6,
550 D3DTOP_ADDSIGNED
= 8,
551 D3DTOP_ADDSIGNED2X
= 9,
552 D3DTOP_SUBTRACT
= 10,
553 D3DTOP_ADDSMOOTH
= 11,
554 D3DTOP_BLENDDIFFUSEALPHA
= 12,
555 D3DTOP_BLENDTEXTUREALPHA
= 13,
556 D3DTOP_BLENDFACTORALPHA
= 14,
557 D3DTOP_BLENDTEXTUREALPHAPM
= 15,
558 D3DTOP_BLENDCURRENTALPHA
= 16,
559 D3DTOP_PREMODULATE
= 17,
560 D3DTOP_MODULATEALPHA_ADDCOLOR
= 18,
561 D3DTOP_MODULATECOLOR_ADDALPHA
= 19,
562 D3DTOP_MODULATEINVALPHA_ADDCOLOR
= 20,
563 D3DTOP_MODULATEINVCOLOR_ADDALPHA
= 21,
564 D3DTOP_BUMPENVMAP
= 22,
565 D3DTOP_BUMPENVMAPLUMINANCE
= 23,
566 D3DTOP_DOTPRODUCT3
= 24,
567 D3DTOP_MULTIPLYADD
= 25,
570 D3DTOP_FORCE_DWORD
= 0x7fffffff,
573 typedef enum _D3DTEXTURESTAGESTATETYPE
{
575 D3DTSS_COLORARG1
= 2,
576 D3DTSS_COLORARG2
= 3,
578 D3DTSS_ALPHAARG1
= 5,
579 D3DTSS_ALPHAARG2
= 6,
580 D3DTSS_BUMPENVMAT00
= 7,
581 D3DTSS_BUMPENVMAT01
= 8,
582 D3DTSS_BUMPENVMAT10
= 9,
583 D3DTSS_BUMPENVMAT11
= 10,
584 D3DTSS_TEXCOORDINDEX
= 11,
585 D3DTSS_ADDRESSU
= 13,
586 D3DTSS_ADDRESSV
= 14,
587 D3DTSS_BORDERCOLOR
= 15,
588 D3DTSS_MAGFILTER
= 16,
589 D3DTSS_MINFILTER
= 17,
590 D3DTSS_MIPFILTER
= 18,
591 D3DTSS_MIPMAPLODBIAS
= 19,
592 D3DTSS_MAXMIPLEVEL
= 20,
593 D3DTSS_MAXANISOTROPY
= 21,
594 D3DTSS_BUMPENVLSCALE
= 22,
595 D3DTSS_BUMPENVLOFFSET
= 23,
596 D3DTSS_TEXTURETRANSFORMFLAGS
= 24,
597 D3DTSS_ADDRESSW
= 25,
598 D3DTSS_COLORARG0
= 26,
599 D3DTSS_ALPHAARG0
= 27,
600 D3DTSS_RESULTARG
= 28,
602 D3DTSS_FORCE_DWORD
= 0x7fffffff
603 } D3DTEXTURESTAGESTATETYPE
;
605 typedef enum _D3DTEXTURETRANSFORMFLAGS
{
611 D3DTTFF_PROJECTED
= 256,
613 D3DTTFF_FORCE_DWORD
= 0x7fffffff
614 } D3DTEXTURETRANSFORMFLAGS
;
616 typedef enum _D3DTRANSFORMSTATETYPE
{
618 D3DTS_PROJECTION
= 3,
628 D3DTS_FORCE_DWORD
= 0x7fffffff
629 } D3DTRANSFORMSTATETYPE
;
631 typedef enum _D3DVERTEXBLENDFLAGS
{
636 D3DVBF_TWEENING
= 255,
637 D3DVBF_0WEIGHTS
= 256
638 } D3DVERTEXBLENDFLAGS
;
640 typedef enum _D3DZBUFFERTYPE
{
645 D3DZB_FORCE_DWORD
= 0x7fffffff
649 /*****************************************************************************
650 * Direct 3D v8 typedefs
652 typedef DWORD D3DCOLOR
;
654 /*****************************************************************************
655 * Direct 3D v8 structures
657 typedef struct _D3DADAPTER_IDENTIFIER8
{
658 char Driver
[MAX_DEVICE_IDENTIFIER_STRING
];
659 char Description
[MAX_DEVICE_IDENTIFIER_STRING
];
661 #if defined(_WIN32) || defined(__WINE__)
662 LARGE_INTEGER DriverVersion
; /* Defined for 32-bit components */
664 DWORD DriverVersionLowPart
; /* Defined for 16-bit driver components */
665 DWORD DriverVersionHighPart
;
673 GUID DeviceIdentifier
;
676 } D3DADAPTER_IDENTIFIER8
;
678 typedef struct _D3DBOX
{
687 typedef struct _D3DCLIPSTATUS8
{
689 DWORD ClipIntersection
;
692 typedef struct _D3DCOLORVALUE
{
699 typedef struct _D3DDEVICE_CREATION_PARAMETERS
{
701 D3DDEVTYPE DeviceType
;
704 } D3DDEVICE_CREATION_PARAMETERS
;
706 typedef struct _D3DDISPLAYMODE
{
713 typedef struct _D3DGAMMARAMP
{
719 typedef struct _D3DINDEXBUFFER_DESC
{
721 D3DRESOURCETYPE Type
;
725 } D3DINDEXBUFFER_DESC
;
727 typedef struct _D3DVECTOR
{
733 typedef struct _D3DLIGHT8
{
735 D3DCOLORVALUE Diffuse
;
736 D3DCOLORVALUE Specular
;
737 D3DCOLORVALUE Ambient
;
749 typedef struct _D3DLINEPATTERN
{
754 typedef struct _D3DLOCKED_BOX
{
760 typedef struct _D3DLOCKED_RECT
{
765 typedef struct _D3DMATERIAL8
{
766 D3DCOLORVALUE Diffuse
;
767 D3DCOLORVALUE Ambient
;
768 D3DCOLORVALUE Specular
;
769 D3DCOLORVALUE Emissive
;
773 typedef struct _D3DMATRIX
{
776 float _11
, _12
, _13
, _14
;
777 float _21
, _22
, _23
, _24
;
778 float _31
, _32
, _33
, _34
;
779 float _41
, _42
, _43
, _44
;
785 typedef struct _D3DPRESENT_PARAMETERS_
{
786 UINT BackBufferWidth
;
787 UINT BackBufferHeight
;
788 D3DFORMAT BackBufferFormat
;
789 UINT BackBufferCount
;
791 D3DMULTISAMPLE_TYPE MultiSampleType
;
793 D3DSWAPEFFECT SwapEffect
;
796 BOOL EnableAutoDepthStencil
;
797 D3DFORMAT AutoDepthStencilFormat
;
800 UINT FullScreen_RefreshRateInHz
;
801 UINT FullScreen_PresentationInterval
;
803 } D3DPRESENT_PARAMETERS
;
805 typedef struct _D3DRANGE
{
810 typedef struct _D3DRASTER_STATUS
{
815 typedef struct _D3DRECT
{
822 typedef struct _D3DRECTPATCH_INFO
{
823 UINT StartVertexOffsetWidth
;
824 UINT StartVertexOffsetHeight
;
832 typedef struct _D3DSURFACE_DESC
{
834 D3DRESOURCETYPE Type
;
838 D3DMULTISAMPLE_TYPE MultiSampleType
;
843 typedef struct _D3DTRIPATCH_INFO
{
844 UINT StartVertexOffset
;
850 typedef struct _D3DVERTEXBUFFER_DESC
{
852 D3DRESOURCETYPE Type
;
857 } D3DVERTEXBUFFER_DESC
;
859 typedef struct _D3DVIEWPORT8
{
868 typedef struct _D3DVOLUME_DESC
{
870 D3DRESOURCETYPE Type
;
879 #endif /* __WINE_D3D8TYPES_H */