ReactOS  0.4.13-dev-464-g6b95727
d3dtypes.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2000 Peter Hunnisett
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 /* FIXME: Need to add C++ code for certain structs for headers - this is going to be a problem
20  if WINE continues to only use C code - I suppose that we could always inline in
21  the header file to get around that little problem... */
22 /* FIXME: We need to implement versioning on everything directx 5 and up if these headers
23  are going to be generically useful for directx stuff */
24 
25 #ifndef __WINE_D3DTYPES_H
26 #define __WINE_D3DTYPES_H
27 
28 /* #include <windows.h> FIXME: Need to include for compatibility. Inclusion caused compile fail */
29 
30 #if (DIRECT3D_VERSION >= 0x0800)
31 #error "You should not include d3dtypes.h when compiling for DX8 or newer."
32 #endif
33 
34 #include <float.h>
35 #include <ddraw.h>
36 
37 #ifdef __i386__
38 #include <pshpack4.h>
39 #endif
40 
41 #define D3DVALP(val, prec) ((float)(val))
42 #define D3DVAL(val) ((float)(val))
43 #define D3DDivide(a, b) (float)((double) (a) / (double) (b))
44 #define D3DMultiply(a, b) ((a) * (b))
45 
46 typedef LONG D3DFIXED;
47 
48 
49 #ifndef RGB_MAKE
50 #define CI_GETALPHA(ci) ((ci) >> 24)
51 #define CI_GETINDEX(ci) (((ci) >> 8) & 0xffff)
52 #define CI_GETFRACTION(ci) ((ci) & 0xff)
53 #define CI_ROUNDINDEX(ci) CI_GETINDEX((ci) + 0x80)
54 #define CI_MASKALPHA(ci) ((ci) & 0xffffff)
55 #define CI_MAKE(a, i, f) (((a) << 24) | ((i) << 8) | (f))
56 
57 #define RGBA_GETALPHA(rgb) ((rgb) >> 24)
58 #define RGBA_GETRED(rgb) (((rgb) >> 16) & 0xff)
59 #define RGBA_GETGREEN(rgb) (((rgb) >> 8) & 0xff)
60 #define RGBA_GETBLUE(rgb) ((rgb) & 0xff)
61 #define RGBA_MAKE(r, g, b, a) ((D3DCOLOR) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)))
62 
63 #define D3DRGB(r, g, b) \
64  (0xff000000 | ( ((LONG)((r) * 255)) << 16) | (((LONG)((g) * 255)) << 8) | (LONG)((b) * 255))
65 #define D3DRGBA(r, g, b, a) \
66  ( (((LONG)((a) * 255)) << 24) | (((LONG)((r) * 255)) << 16) \
67  | (((LONG)((g) * 255)) << 8) | (LONG)((b) * 255) \
68  )
69 
70 #define RGB_GETRED(rgb) (((rgb) >> 16) & 0xff)
71 #define RGB_GETGREEN(rgb) (((rgb) >> 8) & 0xff)
72 #define RGB_GETBLUE(rgb) ((rgb) & 0xff)
73 #define RGBA_SETALPHA(rgba, x) (((x) << 24) | ((rgba) & 0x00ffffff))
74 #define RGB_MAKE(r, g, b) ((D3DCOLOR) (((r) << 16) | ((g) << 8) | (b)))
75 #define RGBA_TORGB(rgba) ((D3DCOLOR) ((rgba) & 0xffffff))
76 #define RGB_TORGBA(rgb) ((D3DCOLOR) ((rgb) | 0xff000000))
77 
78 #endif
79 
80 #define D3DENUMRET_CANCEL DDENUMRET_CANCEL
81 #define D3DENUMRET_OK DDENUMRET_OK
82 
84 typedef HRESULT (CALLBACK *LPD3DENUMTEXTUREFORMATSCALLBACK)(DDSURFACEDESC *surface_desc, void *ctx);
86 
87 #ifndef DX_SHARED_DEFINES
88 
89 typedef float D3DVALUE,*LPD3DVALUE;
90 
91 #ifndef D3DCOLOR_DEFINED
93 #define D3DCOLOR_DEFINED
94 #endif
95 
96 #ifndef D3DVECTOR_DEFINED
97 typedef struct _D3DVECTOR {
98  union {
101  } DUMMYUNIONNAME1;
102  union {
105  } DUMMYUNIONNAME2;
106  union {
109  } DUMMYUNIONNAME3;
110 #if defined(__cplusplus) && defined(D3D_OVERLOADS)
111  /* the definitions for these methods are in d3dvec.inl */
112 public:
113  /*** constructors ***/
114  _D3DVECTOR() {}
117  _D3DVECTOR(const D3DVALUE f[3]);
118 
119  /*** assignment operators ***/
121  _D3DVECTOR& operator -= (const _D3DVECTOR& v);
122  _D3DVECTOR& operator *= (const _D3DVECTOR& v);
123  _D3DVECTOR& operator /= (const _D3DVECTOR& v);
124  _D3DVECTOR& operator *= (D3DVALUE s);
125  _D3DVECTOR& operator /= (D3DVALUE s);
126 
127  /*** unary operators ***/
128  friend _D3DVECTOR operator + (const _D3DVECTOR& v);
129  friend _D3DVECTOR operator - (const _D3DVECTOR& v);
130 
131  /*** binary operators ***/
132  friend _D3DVECTOR operator + (const _D3DVECTOR& v1, const _D3DVECTOR& v2);
133  friend _D3DVECTOR operator - (const _D3DVECTOR& v1, const _D3DVECTOR& v2);
134 
135  friend _D3DVECTOR operator * (const _D3DVECTOR& v, D3DVALUE s);
136  friend _D3DVECTOR operator * (D3DVALUE s, const _D3DVECTOR& v);
137  friend _D3DVECTOR operator / (const _D3DVECTOR& v, D3DVALUE s);
138 
139  friend D3DVALUE SquareMagnitude(const _D3DVECTOR& v);
140  friend D3DVALUE Magnitude(const _D3DVECTOR& v);
141 
142  friend _D3DVECTOR Normalize(const _D3DVECTOR& v);
143 
144  friend D3DVALUE DotProduct(const _D3DVECTOR& v1, const _D3DVECTOR& v2);
145  friend _D3DVECTOR CrossProduct(const _D3DVECTOR& v1, const _D3DVECTOR& v2);
146 #endif
148 #define D3DVECTOR_DEFINED
149 #endif
150 
151 #define DX_SHARED_DEFINES
152 #endif /* DX_SHARED_DEFINES */
153 
157 
158 #ifndef D3DCOLORVALUE_DEFINED
159 typedef struct _D3DCOLORVALUE {
160  union {
163  } DUMMYUNIONNAME1;
164  union {
167  } DUMMYUNIONNAME2;
168  union {
171  } DUMMYUNIONNAME3;
172  union {
175  } DUMMYUNIONNAME4;
177 #endif
178 
179 #ifndef D3DRECT_DEFINED
180 typedef struct _D3DRECT {
181  union {
182  LONG x1;
184  } DUMMYUNIONNAME1;
185  union {
186  LONG y1;
188  } DUMMYUNIONNAME2;
189  union {
190  LONG x2;
192  } DUMMYUNIONNAME3;
193  union {
194  LONG y2;
196  } DUMMYUNIONNAME4;
197 } D3DRECT;
198 #endif
199 typedef struct _D3DRECT *LPD3DRECT;
200 
201 typedef struct _D3DHVERTEX {
203  union {
206  } DUMMYUNIONNAME1;
207  union {
210  } DUMMYUNIONNAME2;
211  union {
214  } DUMMYUNIONNAME3;
216 
217 /*
218  * Transformed/lit vertices
219  */
220 typedef struct _D3DTLVERTEX {
221  union {
224  } DUMMYUNIONNAME1;
225  union {
228  } DUMMYUNIONNAME2;
229  union {
232  } DUMMYUNIONNAME3;
233  union {
236  } DUMMYUNIONNAME4;
237  union {
240  } DUMMYUNIONNAME5;
241  union {
244  } DUMMYUNIONNAME6;
245  union {
248  } DUMMYUNIONNAME7;
249  union {
252  } DUMMYUNIONNAME8;
253 #if defined(__cplusplus) && defined(D3D_OVERLOADS)
254 public:
255  _D3DTLVERTEX() {}
256  _D3DTLVERTEX(const D3DVECTOR& v, float _rhw, D3DCOLOR _color, D3DCOLOR _specular, float _tu, float _tv) {
257  sx = v.x; sy = v.y; sz = v.z; rhw = _rhw;
258  color = _color; specular = _specular;
259  tu = _tu; tv = _tv;
260  }
261 #endif
263 
264 typedef struct _D3DLVERTEX {
265  union {
268  } DUMMYUNIONNAME1;
269  union {
272  } DUMMYUNIONNAME2;
273  union {
276  } DUMMYUNIONNAME3;
278  union {
281  } DUMMYUNIONNAME4;
282  union {
285  } DUMMYUNIONNAME5;
286  union {
289  } DUMMYUNIONNAME6;
290  union {
293  } DUMMYUNIONNAME7;
295 
296 typedef struct _D3DVERTEX {
297  union {
300  } DUMMYUNIONNAME1;
301  union {
304  } DUMMYUNIONNAME2;
305  union {
308  } DUMMYUNIONNAME3;
309  union {
312  } DUMMYUNIONNAME4;
313  union {
316  } DUMMYUNIONNAME5;
317  union {
320  } DUMMYUNIONNAME6;
321  union {
324  } DUMMYUNIONNAME7;
325  union {
328  } DUMMYUNIONNAME8;
329 #if defined(__cplusplus) && defined(D3D_OVERLOADS)
330 public:
331  _D3DVERTEX() {}
332  _D3DVERTEX(const D3DVECTOR& v, const D3DVECTOR& n, float _tu, float _tv) {
333  x = v.x; y = v.y; z = v.z;
334  nx = n.x; ny = n.y; nz = n.z;
335  tu = _tu; tv = _tv;
336  }
337 #endif
339 
340 #ifndef D3DMATRIX_DEFINED
341 typedef struct _D3DMATRIX {
346 #if defined(__cplusplus) && defined(D3D_OVERLOADS)
347  _D3DMATRIX() { }
348 
349  /* This is different from MS, but avoids anonymous structs. */
350  D3DVALUE &operator () (int r, int c)
351  { return (&_11)[r*4 + c]; }
352  const D3DVALUE &operator() (int r, int c) const
353  { return (&_11)[r*4 + c]; }
354 #endif
356 #endif
357 
358 #if defined(__cplusplus) && defined(D3D_OVERLOADS)
359 #include <d3dvec.inl>
360 #endif
361 
362 typedef struct _D3DVIEWPORT {
375 
376 typedef struct _D3DVIEWPORT2 {
389 
390 typedef struct _D3DVIEWPORT7 {
398 
399 #define D3DMAXUSERCLIPPLANES 32
400 
401 #define D3DCLIPPLANE0 (1 << 0)
402 #define D3DCLIPPLANE1 (1 << 1)
403 #define D3DCLIPPLANE2 (1 << 2)
404 #define D3DCLIPPLANE3 (1 << 3)
405 #define D3DCLIPPLANE4 (1 << 4)
406 #define D3DCLIPPLANE5 (1 << 5)
407 
408 #define D3DCLIP_LEFT 0x00000001
409 #define D3DCLIP_RIGHT 0x00000002
410 #define D3DCLIP_TOP 0x00000004
411 #define D3DCLIP_BOTTOM 0x00000008
412 #define D3DCLIP_FRONT 0x00000010
413 #define D3DCLIP_BACK 0x00000020
414 #define D3DCLIP_GEN0 0x00000040
415 #define D3DCLIP_GEN1 0x00000080
416 #define D3DCLIP_GEN2 0x00000100
417 #define D3DCLIP_GEN3 0x00000200
418 #define D3DCLIP_GEN4 0x00000400
419 #define D3DCLIP_GEN5 0x00000800
420 
421 #define D3DSTATUS_CLIPUNIONLEFT D3DCLIP_LEFT
422 #define D3DSTATUS_CLIPUNIONRIGHT D3DCLIP_RIGHT
423 #define D3DSTATUS_CLIPUNIONTOP D3DCLIP_TOP
424 #define D3DSTATUS_CLIPUNIONBOTTOM D3DCLIP_BOTTOM
425 #define D3DSTATUS_CLIPUNIONFRONT D3DCLIP_FRONT
426 #define D3DSTATUS_CLIPUNIONBACK D3DCLIP_BACK
427 #define D3DSTATUS_CLIPUNIONGEN0 D3DCLIP_GEN0
428 #define D3DSTATUS_CLIPUNIONGEN1 D3DCLIP_GEN1
429 #define D3DSTATUS_CLIPUNIONGEN2 D3DCLIP_GEN2
430 #define D3DSTATUS_CLIPUNIONGEN3 D3DCLIP_GEN3
431 #define D3DSTATUS_CLIPUNIONGEN4 D3DCLIP_GEN4
432 #define D3DSTATUS_CLIPUNIONGEN5 D3DCLIP_GEN5
433 
434 #define D3DSTATUS_CLIPINTERSECTIONLEFT 0x00001000
435 #define D3DSTATUS_CLIPINTERSECTIONRIGHT 0x00002000
436 #define D3DSTATUS_CLIPINTERSECTIONTOP 0x00004000
437 #define D3DSTATUS_CLIPINTERSECTIONBOTTOM 0x00008000
438 #define D3DSTATUS_CLIPINTERSECTIONFRONT 0x00010000
439 #define D3DSTATUS_CLIPINTERSECTIONBACK 0x00020000
440 #define D3DSTATUS_CLIPINTERSECTIONGEN0 0x00040000
441 #define D3DSTATUS_CLIPINTERSECTIONGEN1 0x00080000
442 #define D3DSTATUS_CLIPINTERSECTIONGEN2 0x00100000
443 #define D3DSTATUS_CLIPINTERSECTIONGEN3 0x00200000
444 #define D3DSTATUS_CLIPINTERSECTIONGEN4 0x00400000
445 #define D3DSTATUS_CLIPINTERSECTIONGEN5 0x00800000
446 #define D3DSTATUS_ZNOTVISIBLE 0x01000000
447 
448 #define D3DSTATUS_CLIPUNIONALL ( \
449  D3DSTATUS_CLIPUNIONLEFT | \
450  D3DSTATUS_CLIPUNIONRIGHT | \
451  D3DSTATUS_CLIPUNIONTOP | \
452  D3DSTATUS_CLIPUNIONBOTTOM | \
453  D3DSTATUS_CLIPUNIONFRONT | \
454  D3DSTATUS_CLIPUNIONBACK | \
455  D3DSTATUS_CLIPUNIONGEN0 | \
456  D3DSTATUS_CLIPUNIONGEN1 | \
457  D3DSTATUS_CLIPUNIONGEN2 | \
458  D3DSTATUS_CLIPUNIONGEN3 | \
459  D3DSTATUS_CLIPUNIONGEN4 | \
460  D3DSTATUS_CLIPUNIONGEN5 \
461  )
462 
463 #define D3DSTATUS_CLIPINTERSECTIONALL ( \
464  D3DSTATUS_CLIPINTERSECTIONLEFT | \
465  D3DSTATUS_CLIPINTERSECTIONRIGHT | \
466  D3DSTATUS_CLIPINTERSECTIONTOP | \
467  D3DSTATUS_CLIPINTERSECTIONBOTTOM | \
468  D3DSTATUS_CLIPINTERSECTIONFRONT | \
469  D3DSTATUS_CLIPINTERSECTIONBACK | \
470  D3DSTATUS_CLIPINTERSECTIONGEN0 | \
471  D3DSTATUS_CLIPINTERSECTIONGEN1 | \
472  D3DSTATUS_CLIPINTERSECTIONGEN2 | \
473  D3DSTATUS_CLIPINTERSECTIONGEN3 | \
474  D3DSTATUS_CLIPINTERSECTIONGEN4 | \
475  D3DSTATUS_CLIPINTERSECTIONGEN5 \
476  )
477 
478 #define D3DSTATUS_DEFAULT ( \
479  D3DSTATUS_CLIPINTERSECTIONALL | \
480  D3DSTATUS_ZNOTVISIBLE)
481 
482 #define D3DTRANSFORM_CLIPPED 0x00000001
483 #define D3DTRANSFORM_UNCLIPPED 0x00000002
484 
485 typedef struct _D3DTRANSFORMDATA {
487  void *lpIn;
489  void *lpOut;
497 
498 typedef struct _D3DLIGHTINGELEMENT {
502 
503 typedef struct _D3DMATERIAL {
505  union {
508  } DUMMYUNIONNAME;
509  union {
512  } DUMMYUNIONNAME1;
513  union {
516  } DUMMYUNIONNAME2;
517  union {
520  } DUMMYUNIONNAME3;
521  union {
524  } DUMMYUNIONNAME4;
528 
529 typedef struct _D3DMATERIAL7 {
530  union {
533  } DUMMYUNIONNAME;
534  union {
537  } DUMMYUNIONNAME1;
538  union {
541  } DUMMYUNIONNAME2;
542  union {
545  } DUMMYUNIONNAME3;
546  union {
549  } DUMMYUNIONNAME4;
551 
552 #if (DIRECT3D_VERSION < 0x0800)
553 
554 typedef enum {
560  D3DLIGHT_FORCE_DWORD = 0x7fffffff
561 } D3DLIGHTTYPE;
562 
563 #endif
564 
565 typedef struct _D3DLIGHT {
579 
580 typedef struct _D3DLIGHT7 {
595 
596 #define D3DLIGHT_ACTIVE 0x00000001
597 #define D3DLIGHT_NO_SPECULAR 0x00000002
598 #define D3DLIGHT_ALL (D3DLIGHT_ACTIVE | D3DLIGHT_NO_SPECULAR) /* 0x3 */
599 
600 #define D3DLIGHT_RANGE_MAX ((float)sqrt(FLT_MAX))
601 
602 typedef struct _D3DLIGHT2 {
617 
618 typedef struct _D3DLIGHTDATA {
625 
626 #define D3DCOLOR_MONO 1
627 #define D3DCOLOR_RGB 2
628 
630 
631 #ifndef D3DCLEAR_TARGET
632 #define D3DCLEAR_TARGET 0x00000001
633 #endif
634 
635 #ifndef D3DCLEAR_ZBUFFER
636 #define D3DCLEAR_ZBUFFER 0x00000002
637 #endif
638 
639 #ifndef D3DCLEAR_STENCIL
640 #define D3DCLEAR_STENCIL 0x00000004
641 #endif
642 
643 typedef enum _D3DOPCODE {
658 
659  D3DOP_FORCE_DWORD = 0x7fffffff
660 } D3DOPCODE;
661 
662 typedef struct _D3DINSTRUCTION {
667 
668 typedef struct _D3DTEXTURELOAD {
672 
673 typedef struct _D3DPICKRECORD {
679 
680 #if (DIRECT3D_VERSION < 0x0800)
681 
682 typedef enum {
686  D3DSHADE_FORCE_DWORD = 0x7fffffff
687 } D3DSHADEMODE;
688 
689 typedef enum {
693  D3DFILL_FORCE_DWORD = 0x7fffffff
694 } D3DFILLMODE;
695 
696 typedef struct _D3DLINEPATTERN {
700 
701 #endif /* (DIRECT3D_VERSION < 0x0800) */
702 
703 typedef enum {
712 
713 #if (DIRECT3D_VERSION < 0x0800)
714 
715 typedef enum {
729  D3DBLEND_FORCE_DWORD = 0x7fffffff
730 } D3DBLEND;
731 
732 #endif /* (DIRECT3D_VERSION < 0x0800) */
733 
734 
735 typedef enum {
746 
747 
748 #if (DIRECT3D_VERSION < 0x0800)
749 
750 typedef enum _D3DTEXTUREADDRESS {
757 
758 typedef enum {
762  D3DCULL_FORCE_DWORD = 0x7fffffff
763 } D3DCULL;
764 
765 typedef enum {
774  D3DCMP_FORCE_DWORD = 0x7fffffff
775 } D3DCMPFUNC;
776 
777 typedef enum _D3DSTENCILOP {
787 } D3DSTENCILOP;
788 
789 typedef enum _D3DFOGMODE {
794  D3DFOG_FORCE_DWORD = 0x7fffffff
795 } D3DFOGMODE;
796 
797 typedef enum _D3DZBUFFERTYPE {
801  D3DZB_FORCE_DWORD = 0x7fffffff
803 
804 #endif /* (DIRECT3D_VERSION < 0x0800) */
805 
806 typedef enum _D3DANTIALIASMODE {
812 
813 typedef enum {
817  D3DVT_FORCE_DWORD = 0x7fffffff
818 } D3DVERTEXTYPE;
819 
820 #if (DIRECT3D_VERSION < 0x0800)
821 
822 typedef enum {
829  D3DPT_FORCE_DWORD = 0x7fffffff
831 
832 #endif /* (DIRECT3D_VERSION < 0x0800) */
833 
834 #define D3DSTATE_OVERRIDE_BIAS 256
835 
836 #define D3DSTATE_OVERRIDE(type) (D3DRENDERSTATETYPE)(((DWORD) (type) + D3DSTATE_OVERRIDE_BIAS))
837 
838 #if (DIRECT3D_VERSION < 0x0800)
839 
857 
858 #endif /* (DIRECT3D_VERSION < 0x0800) */
859 
860 typedef enum {
871 
872 #if (DIRECT3D_VERSION < 0x0800)
873 
874 typedef enum {
928 
938 
971 
995 
997 
998  /* FIXME: We have some retired values that are being reused for DirectX 7 */
1000 
1002 {
1006  D3DMCS_FORCE_DWORD = 0x7fffffff
1008 
1009 #define D3DRENDERSTATE_BLENDENABLE D3DRENDERSTATE_ALPHABLENDENABLE
1010 #define D3DRENDERSTATE_WRAPBIAS 128UL
1011 #define D3DWRAP_U 0x00000001L
1012 #define D3DWRAP_V 0x00000002L
1013 
1014 #define D3DWRAPCOORD_0 0x00000001L
1015 #define D3DWRAPCOORD_1 0x00000002L
1016 #define D3DWRAPCOORD_2 0x00000004L
1017 #define D3DWRAPCOORD_3 0x00000008L
1018 
1019 #endif /* (DIRECT3D_VERSION < 0x0800) */
1020 
1021 #define D3DRENDERSTATE_STIPPLEPATTERN(y) (D3DRENDERSTATE_STIPPLEPATTERN00 + (y))
1022 
1023 typedef struct _D3DSTATE {
1024  union {
1028  } DUMMYUNIONNAME1;
1029  union {
1032  } DUMMYUNIONNAME2;
1033 } D3DSTATE, *LPD3DSTATE;
1034 
1035 typedef struct _D3DMATRIXLOAD {
1039 
1040 typedef struct _D3DMATRIXMULTIPLY {
1045 
1046 typedef struct _D3DPROCESSVERTICES {
1053 
1054 #define D3DPROCESSVERTICES_TRANSFORMLIGHT 0x00000000L
1055 #define D3DPROCESSVERTICES_TRANSFORM 0x00000001L
1056 #define D3DPROCESSVERTICES_COPY 0x00000002L
1057 #define D3DPROCESSVERTICES_OPMASK 0x00000007L
1058 
1059 #define D3DPROCESSVERTICES_UPDATEEXTENTS 0x00000008L
1060 #define D3DPROCESSVERTICES_NOCOLOR 0x00000010L
1061 
1062 #if (DIRECT3D_VERSION < 0x0800)
1063 
1065 {
1090  D3DTSS_FORCE_DWORD = 0x7fffffff
1092 
1093 #define D3DTSS_TCI_PASSTHRU 0x00000000
1094 #define D3DTSS_TCI_CAMERASPACENORMAL 0x00010000
1095 #define D3DTSS_TCI_CAMERASPACEPOSITION 0x00020000
1096 #define D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR 0x00030000
1097 
1098 typedef enum _D3DTEXTUREOP
1099 {
1103 
1107 
1113 
1119 
1125 
1129 
1130  D3DTOP_FORCE_DWORD = 0x7fffffff
1131 } D3DTEXTUREOP;
1132 
1133 #define D3DTA_SELECTMASK 0x0000000f
1134 #define D3DTA_DIFFUSE 0x00000000
1135 #define D3DTA_CURRENT 0x00000001
1136 #define D3DTA_TEXTURE 0x00000002
1137 #define D3DTA_TFACTOR 0x00000003
1138 #define D3DTA_SPECULAR 0x00000004
1139 #define D3DTA_COMPLEMENT 0x00000010
1140 #define D3DTA_ALPHAREPLICATE 0x00000020
1141 
1142 #endif /* (DIRECT3D_VERSION < 0x0800) */
1143 
1145 {
1151  D3DTFG_FORCE_DWORD = 0x7fffffff
1153 
1155 {
1159  D3DTFN_FORCE_DWORD = 0x7fffffff
1161 
1163 {
1167  D3DTFP_FORCE_DWORD = 0x7fffffff
1169 
1170 #define D3DTRIFLAG_START 0x00000000L
1171 #define D3DTRIFLAG_STARTFLAT(len) (len)
1172 #define D3DTRIFLAG_ODD 0x0000001eL
1173 #define D3DTRIFLAG_EVEN 0x0000001fL
1174 
1175 #define D3DTRIFLAG_EDGEENABLE1 0x00000100L
1176 #define D3DTRIFLAG_EDGEENABLE2 0x00000200L
1177 #define D3DTRIFLAG_EDGEENABLE3 0x00000400L
1178 #define D3DTRIFLAG_EDGEENABLETRIANGLE \
1179  (D3DTRIFLAG_EDGEENABLE1 | D3DTRIFLAG_EDGEENABLE2 | D3DTRIFLAG_EDGEENABLE3)
1180 
1181 typedef struct _D3DTRIANGLE {
1182  union {
1185  } DUMMYUNIONNAME1;
1186  union {
1189  } DUMMYUNIONNAME2;
1190  union {
1193  } DUMMYUNIONNAME3;
1196 
1197 typedef struct _D3DLINE {
1198  union {
1201  } DUMMYUNIONNAME1;
1202  union {
1205  } DUMMYUNIONNAME2;
1206 } D3DLINE, *LPD3DLINE;
1207 
1208 typedef struct _D3DSPAN {
1211 } D3DSPAN, *LPD3DSPAN;
1212 
1213 typedef struct _D3DPOINT {
1216 } D3DPOINT, *LPD3DPOINT;
1217 
1218 typedef struct _D3DBRANCH {
1224 
1225 typedef struct _D3DSTATUS {
1230 
1231 #define D3DSETSTATUS_STATUS 0x00000001L
1232 #define D3DSETSTATUS_EXTENTS 0x00000002L
1233 #define D3DSETSTATUS_ALL (D3DSETSTATUS_STATUS | D3DSETSTATUS_EXTENTS)
1234 
1235 typedef struct _D3DCLIPSTATUS {
1238  float minx, maxx;
1239  float miny, maxy;
1240  float minz, maxz;
1242 
1243 #define D3DCLIPSTATUS_STATUS 0x00000001L
1244 #define D3DCLIPSTATUS_EXTENTS2 0x00000002L
1245 #define D3DCLIPSTATUS_EXTENTS3 0x00000004L
1246 
1247 typedef struct {
1254 } D3DSTATS, *LPD3DSTATS;
1255 
1256 #define D3DEXECUTE_CLIPPED 0x00000001l
1257 #define D3DEXECUTE_UNCLIPPED 0x00000002l
1258 
1259 typedef struct _D3DEXECUTEDATA {
1268 
1269 #define D3DPAL_FREE 0x00
1270 #define D3DPAL_READONLY 0x40
1271 #define D3DPAL_RESERVED 0x80
1272 
1273 typedef struct _D3DVERTEXBUFFERDESC {
1279 
1280 #define D3DVBCAPS_SYSTEMMEMORY 0x00000800l
1281 #define D3DVBCAPS_WRITEONLY 0x00010000l
1282 #define D3DVBCAPS_OPTIMIZED 0x80000000l
1283 #define D3DVBCAPS_DONOTCLIP 0x00000001l
1284 
1285 #define D3DVOP_LIGHT (1 << 10)
1286 #define D3DVOP_TRANSFORM (1 << 0)
1287 #define D3DVOP_CLIP (1 << 2)
1288 #define D3DVOP_EXTENTS (1 << 3)
1289 
1290 #if (DIRECT3D_VERSION < 0x0800)
1291 
1292 #define D3DMAXNUMVERTICES ((1<<16) - 1)
1293 
1294 #define D3DMAXNUMPRIMITIVES ((1<<16) - 1)
1295 
1296 #define D3DPV_DONOTCOPYDATA (1 << 0)
1297 
1298 #define D3DFVF_RESERVED0 0x001
1299 #define D3DFVF_POSITION_MASK 0x00E
1300 #define D3DFVF_XYZ 0x002
1301 #define D3DFVF_XYZRHW 0x004
1302 #define D3DFVF_XYZB1 0x006
1303 #define D3DFVF_XYZB2 0x008
1304 #define D3DFVF_XYZB3 0x00a
1305 #define D3DFVF_XYZB4 0x00c
1306 #define D3DFVF_XYZB5 0x00e
1307 
1308 #define D3DFVF_NORMAL 0x010
1309 #define D3DFVF_RESERVED1 0x020
1310 #define D3DFVF_DIFFUSE 0x040
1311 #define D3DFVF_SPECULAR 0x080
1312 #define D3DFVF_TEXCOUNT_MASK 0xf00
1313 #define D3DFVF_TEXCOUNT_SHIFT 8
1314 #define D3DFVF_TEX0 0x000
1315 #define D3DFVF_TEX1 0x100
1316 #define D3DFVF_TEX2 0x200
1317 #define D3DFVF_TEX3 0x300
1318 #define D3DFVF_TEX4 0x400
1319 #define D3DFVF_TEX5 0x500
1320 #define D3DFVF_TEX6 0x600
1321 #define D3DFVF_TEX7 0x700
1322 #define D3DFVF_TEX8 0x800
1323 
1324 #define D3DFVF_RESERVED2 0xf000
1325 
1326 #endif /* (DIRECT3D_VERSION < 0x0800) */
1327 
1328 #define D3DFVF_VERTEX ( D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1 )
1329 #define D3DFVF_LVERTEX ( D3DFVF_XYZ | D3DFVF_RESERVED1 | D3DFVF_DIFFUSE | \
1330  D3DFVF_SPECULAR | D3DFVF_TEX1 )
1331 #define D3DFVF_TLVERTEX ( D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | \
1332  D3DFVF_TEX1 )
1333 
1334 typedef struct _D3DDP_PTRSTRIDE
1335 {
1336  void *lpvData;
1338 } D3DDP_PTRSTRIDE;
1339 
1340 #define D3DDP_MAXTEXCOORD 8
1341 
1349 
1350 #define D3DVIS_INSIDE_FRUSTUM 0
1351 #define D3DVIS_INTERSECT_FRUSTUM 1
1352 #define D3DVIS_OUTSIDE_FRUSTUM 2
1353 #define D3DVIS_INSIDE_LEFT 0
1354 #define D3DVIS_INTERSECT_LEFT (1 << 2)
1355 #define D3DVIS_OUTSIDE_LEFT (2 << 2)
1356 #define D3DVIS_INSIDE_RIGHT 0
1357 #define D3DVIS_INTERSECT_RIGHT (1 << 4)
1358 #define D3DVIS_OUTSIDE_RIGHT (2 << 4)
1359 #define D3DVIS_INSIDE_TOP 0
1360 #define D3DVIS_INTERSECT_TOP (1 << 6)
1361 #define D3DVIS_OUTSIDE_TOP (2 << 6)
1362 #define D3DVIS_INSIDE_BOTTOM 0
1363 #define D3DVIS_INTERSECT_BOTTOM (1 << 8)
1364 #define D3DVIS_OUTSIDE_BOTTOM (2 << 8)
1365 #define D3DVIS_INSIDE_NEAR 0
1366 #define D3DVIS_INTERSECT_NEAR (1 << 10)
1367 #define D3DVIS_OUTSIDE_NEAR (2 << 10)
1368 #define D3DVIS_INSIDE_FAR 0
1369 #define D3DVIS_INTERSECT_FAR (1 << 12)
1370 #define D3DVIS_OUTSIDE_FAR (2 << 12)
1371 
1372 #define D3DVIS_MASK_FRUSTUM (3 << 0)
1373 #define D3DVIS_MASK_LEFT (3 << 2)
1374 #define D3DVIS_MASK_RIGHT (3 << 4)
1375 #define D3DVIS_MASK_TOP (3 << 6)
1376 #define D3DVIS_MASK_BOTTOM (3 << 8)
1377 #define D3DVIS_MASK_NEAR (3 << 10)
1378 #define D3DVIS_MASK_FAR (3 << 12)
1379 
1380 
1381 #if (DIRECT3D_VERSION < 0x0800)
1382 
1383 #define D3DDEVINFOID_TEXTUREMANAGER 1
1384 #define D3DDEVINFOID_D3DTEXTUREMANAGER 2
1385 #define D3DDEVINFOID_TEXTURING 3
1386 
1388 {
1392  D3DSBT_FORCE_DWORD = 0xffffffff
1394 
1396 {
1402 
1410  D3DTTFF_FORCE_DWORD = 0x7fffffff
1412 
1413 #define D3DFVF_TEXTUREFORMAT2 0
1414 #define D3DFVF_TEXTUREFORMAT1 3
1415 #define D3DFVF_TEXTUREFORMAT3 1
1416 #define D3DFVF_TEXTUREFORMAT4 2
1417 
1418 #define D3DFVF_TEXCOORDSIZE3(CoordIndex) (D3DFVF_TEXTUREFORMAT3 << (CoordIndex*2 + 16))
1419 #define D3DFVF_TEXCOORDSIZE2(CoordIndex) (D3DFVF_TEXTUREFORMAT2)
1420 #define D3DFVF_TEXCOORDSIZE4(CoordIndex) (D3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16))
1421 #define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16))
1422 
1423 #ifdef __i386__
1424 #include <poppack.h>
1425 #endif
1426 
1427 #endif /* (DIRECT3D_VERSION < 0x0800) */
1428 
1429 #endif
struct _D3DLVERTEX * LPD3DLVERTEX
D3DVALUE _44
Definition: d3dtypes.h:345
D3DVALUE dvMinZ
Definition: d3dtypes.h:372
float _11
Definition: d3d8types.h:1111
_D3DTEXTUREADDRESS
Definition: d3d8types.h:859
D3DVALUE dvAttenuation0
Definition: d3dtypes.h:589
struct _D3DSTATUS D3DSTATUS
union _D3DVERTEX::@2672 DUMMYUNIONNAME8
D3DCOLORVALUE dcvSpecular
Definition: d3dtypes.h:515
D3DCOLORVALUE dcvEmissive
Definition: d3dtypes.h:519
#define HRESULT
Definition: msvc.h:9
struct _D3DTEXTURELOAD * LPD3DTEXTURELOAD
union _D3DHVERTEX::@2647 DUMMYUNIONNAME1
struct _D3DTEXTURELOAD D3DTEXTURELOAD
struct _D3DTRIANGLE * LPD3DTRIANGLE
enum _D3DTEXTUREMIPFILTER D3DTEXTUREMIPFILTER
D3DVALUE z
Definition: d3dtypes.h:107
D3DCOLOR dcSpecular
Definition: d3dtypes.h:243
union _D3DTLVERTEX::@2650 DUMMYUNIONNAME1
DWORD dwY
Definition: d3dtypes.h:365
union _D3DMATERIAL::@2674 DUMMYUNIONNAME1
D3DVALUE nz
Definition: d3dtypes.h:318
DWORD dwSize
Definition: d3dtypes.h:619
D3DVALUE dvHZ
Definition: d3dtypes.h:213
D3DVALUE dvY
Definition: d3dtypes.h:104
D3DCOLORVALUE diffuse
Definition: d3dtypes.h:506
D3DCMPFUNC
Definition: d3dtypes.h:765
D3DVECTOR dvDirection
Definition: d3dtypes.h:570
D3DVALUE dvAttenuation0
Definition: d3dtypes.h:573
union _D3DMATERIAL7::@2682 DUMMYUNIONNAME4
struct _D3DMATERIAL * LPD3DMATERIAL
union _D3DTLVERTEX::@2657 DUMMYUNIONNAME8
D3DVALUE a
Definition: d3dtypes.h:173
D3DVALUE dvA
Definition: d3dtypes.h:174
D3DVALUE x
Definition: d3dtypes.h:266
union _D3DLVERTEX::@2659 DUMMYUNIONNAME2
union _D3DLVERTEX::@2664 DUMMYUNIONNAME7
D3DDP_PTRSTRIDE normal
Definition: d3dtypes.h:1344
DWORD dwValue
Definition: d3dtypes.h:1220
union _D3DLVERTEX::@2663 DUMMYUNIONNAME6
complex< _Tp > _STLP_CALL operator *(const _Tp &__x, const complex< _Tp > &__z)
Definition: _complex.h:644
struct _D3DVIEWPORT7 D3DVIEWPORT7
D3DVALUE dvSY
Definition: d3dtypes.h:227
DWORD dwInSize
Definition: d3dtypes.h:621
struct _D3DCLIPSTATUS D3DCLIPSTATUS
D3DSHADEMODE
Definition: d3dtypes.h:682
D3DVALUE dvClipWidth
Definition: d3dtypes.h:384
D3DVECTOR dvPosition
Definition: d3dtypes.h:569
D3DFILLMODE
Definition: d3dtypes.h:689
WORD wCount
Definition: d3dtypes.h:1209
float _43
Definition: d3d8types.h:1114
struct _D3DVERTEXBUFFERDESC D3DVERTEXBUFFERDESC
DWORD dwFlags
Definition: d3dtypes.h:1226
D3DVALUE dvMaxX
Definition: d3dtypes.h:370
D3DVALUE power
Definition: d3dtypes.h:547
float _22
Definition: d3d8types.h:1112
union _D3DTLVERTEX::@2656 DUMMYUNIONNAME7
DWORD dwWidth
Definition: d3dtypes.h:393
union _D3DVERTEX::@2670 DUMMYUNIONNAME6
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
D3DVALUE y
Definition: d3dtypes.h:270
D3DLIGHTTYPE dltType
Definition: d3dtypes.h:604
struct _D3DCOLORVALUE D3DCOLORVALUE
union _D3DVECTOR::@2636 DUMMYUNIONNAME1
struct _D3DSPAN D3DSPAN
union _D3DRECT::@2643 DUMMYUNIONNAME1
struct _D3DLVERTEX D3DLVERTEX
union _D3DVERTEX::@2669 DUMMYUNIONNAME5
D3DVALUE dvX
Definition: d3dtypes.h:267
D3DVALUE dvMaxZ
Definition: d3dtypes.h:373
D3DVALUE power
Definition: d3dtypes.h:522
struct _D3DLIGHTDATA D3DLIGHTDATA
_D3DTEXTUREMINFILTER
Definition: d3dtypes.h:1154
D3DVALUE dvRange
Definition: d3dtypes.h:608
LONG lX1
Definition: d3dtypes.h:183
GLintptr offset
Definition: glext.h:5920
LONG lY2
Definition: d3dtypes.h:195
#define CALLBACK
Definition: compat.h:27
union _D3DTRIANGLE::@2685 DUMMYUNIONNAME1
_D3DSTENCILOP
Definition: d3d8types.h:837
HRESULT(CALLBACK * LPD3DVALIDATECALLBACK)(void *ctx, DWORD offset)
Definition: d3dtypes.h:83
struct _D3DMATRIXMULTIPLY * LPD3DMATRIXMULTIPLY
GLdouble n
Definition: glext.h:7729
union _D3DCOLORVALUE::@2641 DUMMYUNIONNAME3
D3DBLEND
Definition: d3dtypes.h:715
D3DVALUE dvB
Definition: d3dtypes.h:170
struct _D3DHVERTEX D3DHVERTEX
D3DVALUE tv
Definition: d3dtypes.h:326
enum _D3DSTENCILOP D3DSTENCILOP
struct _D3DLIGHTINGELEMENT D3DLIGHTINGELEMENT
DWORD dwReserved
Definition: d3dtypes.h:277
D3DVALUE dvMinZ
Definition: d3dtypes.h:386
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
D3DDP_PTRSTRIDE position
Definition: d3dtypes.h:1343
D3DVALUE y
Definition: d3dtypes.h:103
D3DVALUE dvRange
Definition: d3dtypes.h:587
struct _D3DLINEPATTERN D3DLINEPATTERN
HRESULT(CALLBACK * LPD3DENUMTEXTUREFORMATSCALLBACK)(DDSURFACEDESC *surface_desc, void *ctx)
Definition: d3dtypes.h:84
D3DCOLORVALUE emissive
Definition: d3dtypes.h:543
DWORD * LPD3DCOLOR
Definition: d3dtypes.h:92
D3DVALUE x
Definition: d3dtypes.h:298
D3DVALUE y
Definition: d3dtypes.h:302
enum _D3DFOGMODE D3DFOGMODE
D3DVALUE dvTU
Definition: d3dtypes.h:288
struct _D3DVECTOR D3DVECTOR
struct _D3DLIGHT2 D3DLIGHT2
struct _D3DSTATUS * LPD3DSTATUS
DWORD * LPD3DMATRIXHANDLE
Definition: d3dtypes.h:156
DWORD dwSize
Definition: d3dtypes.h:377
DWORD dwSize
Definition: d3dtypes.h:603
struct _D3DTRIANGLE D3DTRIANGLE
_D3DTEXTUREOP
Definition: d3d8types.h:880
DWORD dwLinesDrawn
Definition: d3dtypes.h:1250
D3DVECTOR dvPosition
Definition: d3dtypes.h:606
LONG y1
Definition: d3d8types.h:1154
D3DCOLORVALUE dcvAmbient
Definition: d3dtypes.h:584
D3DVALUE dvRange
Definition: d3dtypes.h:571
D3DVALUE dvPhi
Definition: d3dtypes.h:577
D3DVALUE dvZ
Definition: d3dtypes.h:275
D3DLIGHTSTATETYPE dlstLightStateType
Definition: d3dtypes.h:1026
DWORD D3DTEXTUREHANDLE
Definition: d3dtypes.h:155
D3DCOLOR color
Definition: d3dtypes.h:238
D3DVALUE dvNZ
Definition: d3dtypes.h:319
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
LONG lY1
Definition: d3dtypes.h:187
DWORD dwHVertexOffset
Definition: d3dtypes.h:1265
struct _D3DVIEWPORT * LPD3DVIEWPORT
enum _D3DSTATEBLOCKTYPE D3DSTATEBLOCKTYPE
struct D3DSTATS * LPD3DSTATS
WORD v1
Definition: d3dtypes.h:1199
D3DVALUE dvFalloff
Definition: d3dtypes.h:609
_D3DSTATEBLOCKTYPE
Definition: d3d8types.h:829
GLfloat GLfloat nz
Definition: glext.h:8896
enum _D3DTEXTUREADDRESS D3DTEXTUREADDRESS
DWORD dwHeight
Definition: d3dtypes.h:367
struct _D3DLIGHT * LPD3DLIGHT
D3DVALUE dvAttenuation1
Definition: d3dtypes.h:611
D3DCOLORVALUE dcvSpecular
Definition: d3dtypes.h:583
struct _D3DMATRIX * LPD3DMATRIX
DWORD dwStatus
Definition: d3dtypes.h:1237
D3DVALUE z
Definition: d3dtypes.h:306
D3DVALUE dvAttenuation1
Definition: d3dtypes.h:574
D3DTEXTUREFILTER
Definition: d3dtypes.h:703
DWORD dwHeight
Definition: d3dtypes.h:394
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
GLuint color
Definition: glext.h:6243
#define D3DDP_MAXTEXCOORD
Definition: d3dtypes.h:1340
float _13
Definition: d3d8types.h:1111
LONG D3DFIXED
Definition: d3dtypes.h:46
D3DLIGHTSTATETYPE
Definition: d3dtypes.h:860
struct _D3DPOINT * LPD3DPOINT
DWORD dwInstructionLength
Definition: d3dtypes.h:1264
union _D3DTLVERTEX::@2655 DUMMYUNIONNAME6
union _D3DTRIANGLE::@2686 DUMMYUNIONNAME2
D3DVERTEXTYPE
Definition: d3dtypes.h:813
D3DVALUE dvTV
Definition: d3dtypes.h:327
D3DVALUE dvZ
Definition: d3dtypes.h:307
DWORD dwOffset
Definition: d3dtypes.h:676
struct _D3DRECT * LPD3DRECT
Definition: d3dtypes.h:199
D3DVALUE dvX
Definition: d3dtypes.h:299
struct _D3DVERTEXBUFFERDESC * LPD3DVERTEXBUFFERDESC
D3DCULL
Definition: d3dtypes.h:758
union _D3DMATERIAL7::@2681 DUMMYUNIONNAME3
D3DVALUE dvTU
Definition: d3dtypes.h:323
struct _D3DLIGHT2 * LPD3DLIGHT2
union _D3DVERTEX::@2671 DUMMYUNIONNAME7
struct _D3DVIEWPORT2 * LPD3DVIEWPORT2
float _42
Definition: d3d8types.h:1114
D3DVALUE _34
Definition: d3dtypes.h:344
struct _D3DVIEWPORT7 * LPD3DVIEWPORT7
D3DVALUE ny
Definition: d3dtypes.h:314
union _D3DMATERIAL::@2673 DUMMYUNIONNAME
D3DDP_PTRSTRIDE textureCoords[D3DDP_MAXTEXCOORD]
Definition: d3dtypes.h:1347
_D3DMATERIALCOLORSOURCE
Definition: d3d8types.h:663
float _41
Definition: d3d8types.h:1114
GLdouble GLdouble z
Definition: glext.h:5874
float D3DVALUE
Definition: d3dtypes.h:89
D3DCOLOR dcColor
Definition: d3dtypes.h:280
DWORD dwSize
Definition: d3dtypes.h:504
DWORD dwFlags
Definition: d3dtypes.h:202
D3DLIGHTTYPE
Definition: d3dtypes.h:554
D3DVALUE dvMaxZ
Definition: d3dtypes.h:387
struct _D3DBRANCH D3DBRANCH
D3DMATRIXHANDLE hSrcMatrix
Definition: d3dtypes.h:1037
union _D3DVERTEX::@2665 DUMMYUNIONNAME1
D3DVALUE dvArg[1]
Definition: d3dtypes.h:1031
D3DCOLORVALUE dcvEmissive
Definition: d3dtypes.h:544
DWORD dwSpansDrawn
Definition: d3dtypes.h:1252
struct _D3DHVERTEX * LPD3DHVERTEX
WORD v2
Definition: d3dtypes.h:1203
D3DVALUE dvClipX
Definition: d3dtypes.h:382
float _21
Definition: d3d8types.h:1112
struct _D3DLIGHTDATA * LPD3DLIGHTDATA
struct _D3DTLVERTEX D3DTLVERTEX
D3DVALUE dvZ
Definition: d3dtypes.h:108
struct _D3DMATRIXLOAD * LPD3DMATRIXLOAD
struct _D3DPICKRECORD D3DPICKRECORD
union _D3DCOLORVALUE::@2639 DUMMYUNIONNAME1
struct _D3DLIGHTINGELEMENT * LPD3DLIGHTINGELEMENT
D3DTLVERTEX * lpOut
Definition: d3dtypes.h:622
union _D3DMATERIAL::@2675 DUMMYUNIONNAME2
D3DVALUE dvNY
Definition: d3dtypes.h:315
DWORD D3DCOLOR
Definition: d3dtypes.h:92
D3DVALUE tu
Definition: d3dtypes.h:322
HRESULT(CALLBACK * LPD3DENUMPIXELFORMATSCALLBACK)(DDPIXELFORMAT *format, void *ctx)
Definition: d3dtypes.h:85
D3DVALUE sy
Definition: d3dtypes.h:226
DWORD dwInstructionOffset
Definition: d3dtypes.h:1263
union _D3DMATERIAL::@2676 DUMMYUNIONNAME3
DWORD dwMask
Definition: d3dtypes.h:1219
D3DVALUE dvPhi
Definition: d3dtypes.h:593
D3DVALUE b
Definition: d3dtypes.h:169
struct _D3DVERTEX D3DVERTEX
D3DCOLOR dcColor
Definition: d3dtypes.h:239
union _D3DMATERIAL7::@2678 DUMMYUNIONNAME
D3DVALUE dvX
Definition: d3dtypes.h:100
D3DVALUE x
Definition: d3dtypes.h:99
struct _D3DMATERIAL D3DMATERIAL
enum _D3DTEXTUREMAGFILTER D3DTEXTUREMAGFILTER
D3DVALUE dvY
Definition: d3dtypes.h:271
D3DVALUE _24
Definition: d3dtypes.h:343
struct _D3DRECT D3DRECT
LONG lX2
Definition: d3dtypes.h:191
D3DVALUE dvG
Definition: d3dtypes.h:166
D3DVALUE dvTheta
Definition: d3dtypes.h:592
DWORD D3DMATRIXHANDLE
Definition: d3dtypes.h:156
union _D3DTRIANGLE::@2687 DUMMYUNIONNAME3
_D3DZBUFFERTYPE
Definition: d3d8types.h:978
D3DVALUE dvTV
Definition: d3dtypes.h:292
WORD wFirst
Definition: d3dtypes.h:1210
WORD wV1
Definition: d3dtypes.h:1200
D3DVALUE z
Definition: d3dtypes.h:274
D3DVALUE dvMaxY
Definition: d3dtypes.h:371
D3DVECTOR dvDirection
Definition: d3dtypes.h:607
D3DVALUE dvNX
Definition: d3dtypes.h:311
DWORD dwSize
Definition: d3dtypes.h:1248
GLfloat f
Definition: glext.h:7540
enum _D3DTEXTUREMINFILTER D3DTEXTUREMINFILTER
D3DRECT drExtent
Definition: d3dtypes.h:495
D3DCOLORVALUE dcvColor
Definition: d3dtypes.h:605
D3DCOLORVALUE specular
Definition: d3dtypes.h:514
D3DVECTOR dvPosition
Definition: d3dtypes.h:499
D3DDP_PTRSTRIDE specular
Definition: d3dtypes.h:1346
DWORD dwVertexOffset
Definition: d3dtypes.h:1261
union _D3DLINE::@2688 DUMMYUNIONNAME1
DWORD dwRampSize
Definition: d3dtypes.h:526
D3DDP_PTRSTRIDE diffuse
Definition: d3dtypes.h:1345
D3DVALUE dvAttenuation0
Definition: d3dtypes.h:610
struct _D3DDRAWPRIMITIVESTRIDEDDATA * LPD3DDRAWPRIMITIVESTRIDEDDATA
D3DVALUE tv
Definition: d3dtypes.h:291
struct _D3DMATRIXLOAD D3DMATRIXLOAD
struct _D3DMATERIAL7 * LPD3DMATERIAL7
union _D3DVERTEX::@2668 DUMMYUNIONNAME4
union _D3DRECT::@2644 DUMMYUNIONNAME2
struct _D3DINSTRUCTION D3DINSTRUCTION
DWORD D3DCOLORMODEL
Definition: d3dtypes.h:629
union _D3DLVERTEX::@2662 DUMMYUNIONNAME5
D3DCOLORVALUE diffuse
Definition: d3dtypes.h:531
D3DVALUE nx
Definition: d3dtypes.h:310
D3DRENDERSTATETYPE
Definition: d3dtypes.h:874
struct _D3DLIGHT7 * LPD3DLIGHT7
float _31
Definition: d3d8types.h:1113
union _D3DVERTEX::@2667 DUMMYUNIONNAME3
union _D3DLINE::@2689 DUMMYUNIONNAME2
struct _D3DDP_PTRSTRIDE D3DDP_PTRSTRIDE
D3DCOLORVALUE dcvAmbient
Definition: d3dtypes.h:536
_D3DANTIALIASMODE
Definition: d3dtypes.h:806
DWORD * LPD3DTEXTUREHANDLE
Definition: d3dtypes.h:155
struct _D3DPICKRECORD * LPD3DPICKRECORD
struct _D3DTRANSFORMDATA * LPD3DTRANSFORMDATA
const GLubyte * c
Definition: glext.h:8905
struct _D3DMATRIXMULTIPLY D3DMATRIXMULTIPLY
D3DVALUE dvHY
Definition: d3dtypes.h:209
D3DVECTOR dvNormal
Definition: d3dtypes.h:500
unsigned short WORD
Definition: ntddk_ex.h:93
D3DVALUE dvY
Definition: d3dtypes.h:303
unsigned long DWORD
Definition: ntddk_ex.h:95
D3DVALUE dvHX
Definition: d3dtypes.h:205
struct _D3DMATERIAL7 D3DMATERIAL7
D3DVALUE g
Definition: d3dtypes.h:165
_D3DVERTEXBLENDFLAGS
Definition: d3d8types.h:969
LONG y2
Definition: d3d8types.h:1156
D3DCOLORVALUE emissive
Definition: d3dtypes.h:518
D3DVALUE dvClipY
Definition: d3dtypes.h:383
DWORD * LPD3DMATERIALHANDLE
Definition: d3dtypes.h:154
DWORD dwWidth
Definition: d3dtypes.h:366
D3DLIGHTTYPE dltType
Definition: d3dtypes.h:581
DWORD dwTrianglesDrawn
Definition: d3dtypes.h:1249
union _D3DVECTOR::@2638 DUMMYUNIONNAME3
WORD wCount
Definition: d3dtypes.h:1214
enum _D3DMATERIALCOLORSOURCE D3DMATERIALCOLORSOURCE
union _D3DLVERTEX::@2660 DUMMYUNIONNAME3
struct _D3DSTATE D3DSTATE
DWORD dwVertexCount
Definition: d3dtypes.h:1262
#define _x(oid)
float _23
Definition: d3d8types.h:1112
CHString WINAPI operator+(WCHAR ch, const CHString &string)
Definition: chstring.cpp:1337
WORD wV2
Definition: d3dtypes.h:1204
LONG x1
Definition: d3d8types.h:1153
struct _D3DSTATE * LPD3DSTATE
D3DMATRIXHANDLE hSrcMatrix1
Definition: d3dtypes.h:1042
D3DVALUE dvTU
Definition: d3dtypes.h:247
struct _D3DVIEWPORT D3DVIEWPORT
D3DRECT drExtent
Definition: d3dtypes.h:1228
D3DVALUE rhw
Definition: d3dtypes.h:234
struct _D3DLINE * LPD3DLINE
D3DTRANSFORMSTATETYPE dtstTransformStateType
Definition: d3dtypes.h:1025
enum _D3DZBUFFERTYPE D3DZBUFFERTYPE
D3DSTATUS dsStatus
Definition: d3dtypes.h:1266
D3DVALUE dvAttenuation2
Definition: d3dtypes.h:575
D3DCOLORVALUE ambient
Definition: d3dtypes.h:535
union _D3DMATERIAL7::@2679 DUMMYUNIONNAME1
D3DTEXTUREHANDLE hSrcTexture
Definition: d3dtypes.h:670
union _D3DTLVERTEX::@2654 DUMMYUNIONNAME5
unsigned char BYTE
Definition: mem.h:68
D3DCOLOR specular
Definition: d3dtypes.h:283
D3DVALUE dvAttenuation2
Definition: d3dtypes.h:612
DWORD dwSize
Definition: d3dtypes.h:566
GLdouble s
Definition: gl.h:2039
struct _D3DLIGHT7 D3DLIGHT7
D3DTEXTUREBLEND
Definition: d3dtypes.h:735
union _D3DMATERIAL7::@2680 DUMMYUNIONNAME2
enum _D3DTEXTURESTAGESTATETYPE D3DTEXTURESTAGESTATETYPE
D3DVECTOR dvDirection
Definition: d3dtypes.h:586
_D3DFOGMODE
Definition: d3d8types.h:591
GLfloat GLfloat GLfloat GLfloat nx
Definition: glext.h:8898
struct _D3DEXECUTEDATA * LPD3DEXECUTEDATA
union _D3DSTATE::@2683 DUMMYUNIONNAME1
DWORD dwWidth
Definition: d3dtypes.h:380
struct _D3DTLVERTEX * LPD3DTLVERTEX
D3DCOLORVALUE dcvSpecular
Definition: d3dtypes.h:540
D3DVALUE dvMinZ
Definition: d3dtypes.h:395
WORD wFirst
Definition: d3dtypes.h:1215
_D3DTEXTURETRANSFORMFLAGS
Definition: d3d8types.h:943
DWORD dwClipIntersection
Definition: d3dtypes.h:493
D3DVALUE dvTV
Definition: d3dtypes.h:251
D3DCOLORVALUE dcvDiffuse
Definition: d3dtypes.h:582
DWORD dwOffset
Definition: d3dtypes.h:1222
float _33
Definition: d3d8types.h:1113
union _D3DVERTEX::@2666 DUMMYUNIONNAME2
GLfloat GLfloat GLfloat v2
Definition: glext.h:6063
union _D3DCOLORVALUE::@2640 DUMMYUNIONNAME2
struct _D3DMATRIX D3DMATRIX
DWORD dwSize
Definition: d3dtypes.h:363
_D3DTEXTUREMAGFILTER
Definition: d3dtypes.h:1144
struct _D3DEXECUTEDATA D3DEXECUTEDATA
enum _D3DTRANSFORMSTATETYPE D3DTRANSFORMSTATETYPE
struct _D3DCOLORVALUE * LPD3DCOLORVALUE
DWORD dwArg[1]
Definition: d3dtypes.h:1030
D3DCOLOR dcSpecular
Definition: d3dtypes.h:284
D3DVALUE dvScaleX
Definition: d3dtypes.h:368
D3DVALUE dvAttenuation1
Definition: d3dtypes.h:590
D3DCOLORVALUE ambient
Definition: d3dtypes.h:510
struct _D3DSPAN * LPD3DSPAN
D3DVALUE dvSZ
Definition: d3dtypes.h:231
const GLdouble * v
Definition: gl.h:2040
struct _D3DLINE D3DLINE
struct _D3DLIGHT D3DLIGHT
LONG x2
Definition: d3d8types.h:1155
rope< _CharT, _Alloc > & operator+=(rope< _CharT, _Alloc > &__left, const rope< _CharT, _Alloc > &__right)
Definition: _rope.h:2202
D3DVALUE dvZ
Definition: d3dtypes.h:677
union _D3DCOLORVALUE::@2642 DUMMYUNIONNAME4
DWORD dwOutSize
Definition: d3dtypes.h:623
D3DVALUE dvPower
Definition: d3dtypes.h:523
D3DCOLORVALUE dcvDiffuse
Definition: d3dtypes.h:507
D3DVALUE dvClipHeight
Definition: d3dtypes.h:385
DWORD dwPointsDrawn
Definition: d3dtypes.h:1251
union _D3DVECTOR::@2637 DUMMYUNIONNAME2
D3DVALUE _14
Definition: d3dtypes.h:342
D3DVALUE dvAttenuation2
Definition: d3dtypes.h:591
struct _D3DVERTEX * LPD3DVERTEX
D3DVALUE dvScaleY
Definition: d3dtypes.h:369
D3DVECTOR dvPosition
Definition: d3dtypes.h:585
_D3DOPCODE
Definition: d3dtypes.h:643
D3DVALUE dvFalloff
Definition: d3dtypes.h:588
D3DTEXTUREHANDLE hTexture
Definition: d3dtypes.h:525
union _D3DTLVERTEX::@2651 DUMMYUNIONNAME2
D3DVALUE tu
Definition: d3dtypes.h:246
union _D3DHVERTEX::@2648 DUMMYUNIONNAME2
struct _D3DTRANSFORMDATA D3DTRANSFORMDATA
D3DPRIMITIVETYPE
Definition: d3dtypes.h:822
struct _D3DPROCESSVERTICES * LPD3DPROCESSVERTICES
struct _D3DPOINT D3DPOINT
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
struct _D3DDRAWPRIMITIVESTRIDEDDATA D3DDRAWPRIMITIVESTRIDEDDATA
struct _D3DVIEWPORT2 D3DVIEWPORT2
D3DVALUE sz
Definition: d3dtypes.h:230
D3DVALUE dvRHW
Definition: d3dtypes.h:235
D3DCOLOR specular
Definition: d3dtypes.h:242
enum _D3DVERTEXBLENDFLAGS D3DVERTEXBLENDFLAGS
struct _D3DPROCESSVERTICES D3DPROCESSVERTICES
D3DVALUE tu
Definition: d3dtypes.h:287
union _D3DRECT::@2645 DUMMYUNIONNAME3
D3DVALUE r
Definition: d3dtypes.h:161
float _32
Definition: d3d8types.h:1113
D3DVALUE dvTheta
Definition: d3dtypes.h:576
D3DHVERTEX * lpHOut
Definition: d3dtypes.h:491
D3DVALUE hy
Definition: d3dtypes.h:208
GLfloat ny
Definition: glext.h:8896
union _D3DMATERIAL::@2677 DUMMYUNIONNAME4
#define c
Definition: ke_i.h:80
enum _D3DOPCODE D3DOPCODE
D3DMATRIXHANDLE hSrcMatrix2
Definition: d3dtypes.h:1043
D3DVALUE dvR
Definition: d3dtypes.h:162
union _D3DTLVERTEX::@2653 DUMMYUNIONNAME4
struct _D3DINSTRUCTION * LPD3DINSTRUCTION
D3DVALUE dvPower
Definition: d3dtypes.h:548
DWORD dwStatus
Definition: d3dtypes.h:1227
D3DCOLORVALUE dcvAmbient
Definition: d3dtypes.h:511
struct _D3DVECTOR * LPD3DVECTOR
D3DCOLORVALUE specular
Definition: d3dtypes.h:539
BOOL bNegate
Definition: d3dtypes.h:1221
D3DMATRIXHANDLE hDestMatrix
Definition: d3dtypes.h:1036
D3DCOLORVALUE dcvColor
Definition: d3dtypes.h:568
D3DVALUE dvMaxZ
Definition: d3dtypes.h:396
D3DVALUE dvPhi
Definition: d3dtypes.h:614
D3DTEXTUREHANDLE hDestTexture
Definition: d3dtypes.h:669
D3DMATRIXHANDLE hDestMatrix
Definition: d3dtypes.h:1041
_D3DTEXTUREMIPFILTER
Definition: d3dtypes.h:1162
complex< _Tp > _STLP_CALL operator/(const _Tp &__x, const complex< _Tp > &__z)
Definition: _complex.h:652
D3DVALUE hz
Definition: d3dtypes.h:212
union _D3DSTATE::@2684 DUMMYUNIONNAME2
enum _D3DTRANSFORMSTATETYPE D3DTRANSFORMSTATETYPE
DWORD dwVerticesProcessed
Definition: d3dtypes.h:1253
D3DLIGHTINGELEMENT * lpIn
Definition: d3dtypes.h:620
union _D3DLVERTEX::@2658 DUMMYUNIONNAME1
D3DVALUE dvSX
Definition: d3dtypes.h:223
enum _D3DTEXTURETRANSFORMFLAGS D3DTEXTURETRANSFORMFLAGS
float * LPD3DVALUE
Definition: d3dtypes.h:89
enum _D3DANTIALIASMODE D3DANTIALIASMODE
enum _D3DTEXTUREOP D3DTEXTUREOP
union _D3DLVERTEX::@2661 DUMMYUNIONNAME4
GLfloat GLfloat v1
Definition: glext.h:6062
float _12
Definition: d3d8types.h:1111
DWORD dwFlags
Definition: d3dtypes.h:615
union _D3DRECT::@2646 DUMMYUNIONNAME4
struct _D3DBRANCH * LPD3DBRANCH
D3DRENDERSTATETYPE drstRenderStateType
Definition: d3dtypes.h:1027
D3DVALUE dvFalloff
Definition: d3dtypes.h:572
struct _D3DCLIPSTATUS * LPD3DCLIPSTATUS
D3DVALUE hx
Definition: d3dtypes.h:204
_D3DTEXTURESTAGESTATETYPE
Definition: d3d8types.h:911
D3DVALUE sx
Definition: d3dtypes.h:222
DWORD dwX
Definition: d3dtypes.h:364
D3DCOLOR color
Definition: d3dtypes.h:279
D3DLIGHTTYPE dltType
Definition: d3dtypes.h:567
union _D3DHVERTEX::@2649 DUMMYUNIONNAME3
DWORD dwHeight
Definition: d3dtypes.h:381
union _D3DTLVERTEX::@2652 DUMMYUNIONNAME3
D3DVALUE tv
Definition: d3dtypes.h:250
D3DVALUE dvTheta
Definition: d3dtypes.h:613
_D3DTRANSFORMSTATETYPE
Definition: d3d8types.h:954
DWORD D3DMATERIALHANDLE
Definition: d3dtypes.h:154
D3DCOLORVALUE dcvDiffuse
Definition: d3dtypes.h:532