Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

496 lines
19 KiB

  1. /*
  2. * $Id: gensym.cpp,v 1.7 1995/11/21 14:45:51 sjl Exp $
  3. *
  4. * Copyright (c) Microsoft Corp. 1993-1997
  5. *
  6. * All rights reserved.
  7. *
  8. * This file contains private, unpublished information and may not be
  9. * copied in part or in whole without express permission of
  10. * Microsoft Corp.
  11. *
  12. */
  13. #include <stdio.h>
  14. #include "ddrawp.h"
  15. #include "dpf.h"
  16. #include "d3di.hpp"
  17. #define DEFINE(type, member) \
  18. printf(#type "_" #member " equ 0%xh\n", ((LONG)(&((type *)0)->member)))
  19. #define MACRO(name) \
  20. printf(#name " equ 0%xh\n", name)
  21. main()
  22. // pcomment prints a comment.
  23. #define pcomment(s) printf("; %s\n",s)
  24. // pequate prints an equate statement.
  25. #define pequate(name, value) printf("%s equ 0x%08lX\n",name,value);
  26. #define OFFSET(type, field) ((LONG)(&((type *)0)->field))
  27. // pblank prints a blank line.
  28. #define pblank() printf("\n")
  29. #define printVCACHE(name) \
  30. { \
  31. printf("%-30s equ 0%LXH\n", "PV_VCACHE_"#name, OFFSET(D3DFE_PROCESSVERTICES, vcache.##name)); \
  32. }
  33. #define printD3DI_LIGHT(name) \
  34. { \
  35. printf("%-30s equ 0%LXH\n", "D3DI_LIGHT_"#name, OFFSET(D3DI_LIGHT, name)); \
  36. }
  37. #define printD3DFE_LIGHTING(name) \
  38. { \
  39. printf("%-30s equ 0%LXH\n", "PV_LIGHTING_"#name, OFFSET(D3DFE_PROCESSVERTICES, lighting.##name)); \
  40. }
  41. #define printDevice(name) \
  42. { \
  43. printf("%-30s equ 0%LXH\n", "DEVI_"#name, OFFSET(DIRECT3DDEVICEI, name)); \
  44. }
  45. #define printPV(name) \
  46. { \
  47. printf("%-30s equ 0%LXH\n", "D3DPV_"#name, OFFSET(D3DFE_PROCESSVERTICES, name)); \
  48. }
  49. #define printDeviceDP2(name) \
  50. { \
  51. printf("%-30s equ 0%LXH\n", #name, OFFSET(CDirect3DDeviceIDP2, name)); \
  52. }
  53. {
  54. pcomment("------------------------------------------------------------------");
  55. pcomment(" Module Name: offsets.asm");
  56. pcomment("");
  57. pcomment(" Defines D3D assembly-language structures.");
  58. pcomment(" This file is generated");
  59. pcomment("");
  60. pcomment(" Copyright (c) 1998, 1995 Microsoft Corporation");
  61. pcomment("------------------------------------------------------------------");
  62. pblank();
  63. pblank();
  64. DEFINE(D3DINSTRUCTION, wCount);
  65. DEFINE(D3DINSTRUCTION, bSize);
  66. DEFINE(D3DINSTRUCTION, bOpcode);
  67. DEFINE(D3DVERTEX, x);
  68. DEFINE(D3DVERTEX, y);
  69. DEFINE(D3DVERTEX, z);
  70. DEFINE(D3DVERTEX, tu);
  71. DEFINE(D3DVERTEX, tv);
  72. DEFINE(D3DLVERTEX, color);
  73. DEFINE(D3DLVERTEX, specular);
  74. DEFINE(D3DTLVERTEX, sx);
  75. DEFINE(D3DTLVERTEX, sy);
  76. DEFINE(D3DTLVERTEX, sz);
  77. DEFINE(D3DTLVERTEX, rhw);
  78. DEFINE(D3DTLVERTEX, color);
  79. DEFINE(D3DTLVERTEX, specular);
  80. DEFINE(D3DTLVERTEX, tu);
  81. DEFINE(D3DTLVERTEX, tv);
  82. printf("D3DTLVERTEX_size equ %d\n", sizeof(D3DTLVERTEX));
  83. DEFINE(D3DHVERTEX, dwFlags);
  84. DEFINE(D3DHVERTEX, hx);
  85. DEFINE(D3DHVERTEX, hy);
  86. DEFINE(D3DHVERTEX, hz);
  87. printf("D3DHVERTEX_size equ %d\n", sizeof(D3DHVERTEX));
  88. DEFINE(D3DTRIANGLE, v1);
  89. DEFINE(D3DTRIANGLE, v2);
  90. DEFINE(D3DTRIANGLE, v3);
  91. DEFINE(D3DTRIANGLE, wFlags);
  92. printf("D3DTRIANGLE_size equ %d\n", sizeof(D3DTRIANGLE));
  93. DEFINE(D3DMATRIXI, _11);
  94. DEFINE(D3DMATRIXI, _12);
  95. DEFINE(D3DMATRIXI, _13);
  96. DEFINE(D3DMATRIXI, _14);
  97. DEFINE(D3DMATRIXI, _21);
  98. DEFINE(D3DMATRIXI, _22);
  99. DEFINE(D3DMATRIXI, _23);
  100. DEFINE(D3DMATRIXI, _24);
  101. DEFINE(D3DMATRIXI, _31);
  102. DEFINE(D3DMATRIXI, _32);
  103. DEFINE(D3DMATRIXI, _33);
  104. DEFINE(D3DMATRIXI, _34);
  105. DEFINE(D3DMATRIXI, _41);
  106. DEFINE(D3DMATRIXI, _42);
  107. DEFINE(D3DMATRIXI, _43);
  108. DEFINE(D3DMATRIXI, _44);
  109. DEFINE(D3DLIGHTINGELEMENT, dvPosition);
  110. DEFINE(D3DLIGHTINGELEMENT, dvNormal);
  111. printf("D3DMATRIXI_size equ %d\n", sizeof(D3DMATRIXI));
  112. printf("D3DFE_LIGHTING_size equ %d\n", sizeof(D3DFE_LIGHTING));
  113. printf("D3DFE_VIEWPORTCACHE_size equ %d\n", sizeof(D3DFE_VIEWPORTCACHE));
  114. MACRO(D3DOP_TRIANGLE);
  115. MACRO(D3DCLIP_LEFT);
  116. MACRO(D3DCLIP_RIGHT);
  117. MACRO(D3DCLIP_TOP);
  118. MACRO(D3DCLIP_BOTTOM);
  119. MACRO(D3DCLIP_FRONT);
  120. MACRO(D3DCLIP_BACK);
  121. MACRO(D3DTBLEND_COPY);
  122. MACRO(D3DSHADE_FLAT);
  123. MACRO(D3DCMP_LESSEQUAL);
  124. MACRO(D3DCMP_GREATEREQUAL);
  125. MACRO(D3DCMP_ALWAYS);
  126. MACRO(D3DSTATUS_ZNOTVISIBLE);
  127. MACRO(D3DDEV_DONOTUPDATEEXTENTS);
  128. MACRO(D3DDEV_DONOTCLIP);
  129. // Geometry pipeline
  130. pcomment("-------------------- VCACHE ------------------------------------");
  131. printVCACHE(scaleX);
  132. printVCACHE(scaleY);
  133. printVCACHE(scaleZ);
  134. printVCACHE(offsetX);
  135. printVCACHE(offsetY);
  136. printVCACHE(offsetZ);
  137. printVCACHE(minXgb);
  138. printVCACHE(minYgb);
  139. printVCACHE(maxXgb);
  140. printVCACHE(maxYgb);
  141. printVCACHE(minX);
  142. printVCACHE(minY);
  143. printVCACHE(maxX);
  144. printVCACHE(maxY);
  145. printVCACHE(gb11);
  146. printVCACHE(gb22);
  147. printVCACHE(gb41);
  148. printVCACHE(gb42);
  149. printVCACHE(Kgbx1);
  150. printVCACHE(Kgby1);
  151. printVCACHE(Kgbx2);
  152. printVCACHE(Kgby2);
  153. printVCACHE(dvX);
  154. printVCACHE(dvY);
  155. printVCACHE(dvWidth);
  156. printVCACHE(dvHeight);
  157. printVCACHE(scaleXi);
  158. printVCACHE(scaleYi);
  159. printVCACHE(minXi);
  160. printVCACHE(minYi);
  161. printVCACHE(maxXi);
  162. printVCACHE(maxYi);
  163. pcomment("---------------- D3DFE_LIGHTING ------------------------------------");
  164. printD3DFE_LIGHTING(diffuse);
  165. printD3DFE_LIGHTING(alpha);
  166. printD3DFE_LIGHTING(diffuse0);
  167. printD3DFE_LIGHTING(currentSpecTable);
  168. printD3DFE_LIGHTING(specular);
  169. printD3DFE_LIGHTING(outDiffuse);
  170. printD3DFE_LIGHTING(vertexAmbient);
  171. printD3DFE_LIGHTING(vertexDiffuse);
  172. printD3DFE_LIGHTING(outSpecular);
  173. printD3DFE_LIGHTING(vertexSpecular);
  174. printD3DFE_LIGHTING(dwLightingFlags);
  175. printD3DFE_LIGHTING(alphaSpecular);
  176. printD3DFE_LIGHTING(model_eye);
  177. printD3DFE_LIGHTING(activeLights);
  178. printD3DFE_LIGHTING(material);
  179. printD3DFE_LIGHTING(ambientSceneScaled);
  180. printD3DFE_LIGHTING(ambientScene);
  181. printD3DFE_LIGHTING(fog_mode);
  182. printD3DFE_LIGHTING(fog_density);
  183. printD3DFE_LIGHTING(fog_start);
  184. printD3DFE_LIGHTING(fog_end);
  185. printD3DFE_LIGHTING(fog_factor);
  186. printD3DFE_LIGHTING(specThreshold);
  187. printD3DFE_LIGHTING(ambient_save);
  188. printD3DFE_LIGHTING(materialAlpha);
  189. printD3DFE_LIGHTING(materialAlphaS);
  190. printD3DFE_LIGHTING(dwDiffuse0);
  191. printD3DFE_LIGHTING(directionToCamera);
  192. printD3DFE_LIGHTING(dwAmbientSrcIndex);
  193. printD3DFE_LIGHTING(dwDiffuseSrcIndex);
  194. printD3DFE_LIGHTING(dwSpecularSrcIndex);
  195. printD3DFE_LIGHTING(dwEmissiveSrcIndex);
  196. pcomment("---------------- D3DI_LIGHT ------------------------------------");
  197. printD3DI_LIGHT(model_position);
  198. printD3DI_LIGHT(type);
  199. printD3DI_LIGHT(model_direction);
  200. printD3DI_LIGHT(flags);
  201. printD3DI_LIGHT(falloff);
  202. printD3DI_LIGHT(inv_theta_minus_phi);
  203. printD3DI_LIGHT(halfway);
  204. printD3DI_LIGHT(next);
  205. printD3DI_LIGHT(range_squared);
  206. printD3DI_LIGHT(attenuation0);
  207. printD3DI_LIGHT(attenuation1);
  208. printD3DI_LIGHT(attenuation2);
  209. printD3DI_LIGHT(cos_theta_by_2);
  210. printD3DI_LIGHT(cos_phi_by_2);
  211. printD3DI_LIGHT(position);
  212. printD3DI_LIGHT(direction);
  213. printD3DI_LIGHT(range);
  214. pcomment("---------------- D3DFE_PROCESSVERTICES ------------------------------");
  215. printPV(mCTM);
  216. printPV(dwMaxTextureIndices);
  217. printPV(lighting);
  218. printPV(vcache);
  219. printPV(dvExtentsAdjust);
  220. printPV(lpdwRStates);
  221. printPV(ClipperState);
  222. printPV(dwVertexBase);
  223. printPV(dwFlags);
  224. printPV(dwDeviceFlags);
  225. printPV(dwNumVertices);
  226. printPV(dwNumPrimitives);
  227. printPV(dwNumIndices);
  228. printPV(lpwIndices);
  229. printPV(primType);
  230. printPV(nTexCoord);
  231. printPV(position);
  232. printPV(normal);
  233. printPV(diffuse);
  234. printPV(specular);
  235. printPV(textures);
  236. printPV(dwVIDIn);
  237. printPV(dwVIDOut);
  238. printPV(dwOutputSize);
  239. printPV(lpvOut);
  240. printPV(lpClipFlags);
  241. printPV(rExtents);
  242. printPV(dwClipUnion);
  243. printPV(dwClipIntersection);
  244. printPV(texOffset);
  245. printPV(normalOffset);
  246. printPV(diffuseOffset);
  247. printPV(specularOffset);
  248. printPV(texOffsetOut);
  249. printPV(diffuseOffsetOut);
  250. printPV(specularOffsetOut);
  251. printPV(dwClipMaskOffScreen);
  252. printPV(dwFirstClippedVertex);
  253. printPV(dwDP2VertexCount);
  254. printPV(dwVertexPoolSize);
  255. printPV(userClipPlane);
  256. printPV(dwFlags2);
  257. pcomment("---------------- DIRECT3DDEVICEI ------------------------------------");
  258. printDevice(mCTM);
  259. printDevice(dwMaxTextureIndices);
  260. printDevice(lighting);
  261. printDevice(vcache);
  262. printDevice(dvExtentsAdjust);
  263. printDevice(lpdwRStates);
  264. printDevice(pD3DMappedTexI);
  265. printDevice(ClipperState);
  266. printDevice(dwVertexBase);
  267. printDevice(dwFlags);
  268. printDevice(dwDeviceFlags);
  269. printDevice(dwNumVertices);
  270. printDevice(dwNumPrimitives);
  271. printDevice(dwNumIndices);
  272. printDevice(lpwIndices);
  273. printDevice(primType);
  274. printDevice(nTexCoord);
  275. printDevice(position);
  276. printDevice(normal);
  277. printDevice(diffuse);
  278. printDevice(specular);
  279. printDevice(textures);
  280. printDevice(dwVIDIn);
  281. printDevice(dwVIDOut);
  282. printDevice(dwOutputSize);
  283. printDevice(lpvOut);
  284. printDevice(lpClipFlags);
  285. printDevice(rExtents);
  286. printDevice(dwClipUnion);
  287. printDevice(dwClipIntersection);
  288. printDevice(deviceType );
  289. printDevice(lpDirect3DI );
  290. printDevice(list );
  291. printDevice(texBlocks );
  292. printDevice(guid );
  293. printDevice(guid );
  294. printDevice(lpD3DHALCallbacks );
  295. printDevice(lpD3DHALGlobalDriverData );
  296. printDevice(lpD3DHALCallbacks2 );
  297. printDevice(lpD3DHALCallbacks3 );
  298. printDevice(lpDD );
  299. printDevice(lpDDGbl );
  300. printDevice(lpDDSTarget );
  301. printDevice(lpDDSZBuffer );
  302. printDevice(lpDDPalTarget );
  303. printDevice(lpDDSTarget_DDS7 );
  304. printDevice(lpDDSZBuffer_DDS7 );
  305. printDevice(transform );
  306. printDevice(dwhContext );
  307. printDevice(red_mask );
  308. printDevice(red_scale );
  309. printDevice(red_shift );
  310. printDevice(green_mask);
  311. printDevice(green_scale);
  312. printDevice(green_shift);
  313. printDevice(blue_mask);
  314. printDevice(blue_scale);
  315. printDevice(blue_shift);
  316. printDevice(zmask_shift);
  317. printDevice(stencilmask_shift);
  318. printDevice(bDDSTargetIsPalettized);
  319. printDevice(iClipStatus);
  320. printDevice(dwFEFlags);
  321. printDevice(dwDebugFlags);
  322. printDevice(specular_tables);
  323. printDevice(specular_table);
  324. printDevice(lightVertexFuncTable);
  325. printDevice(pHalProv);
  326. printDevice(hDllProv);
  327. printDevice(d3dDevDesc);
  328. printDevice(lpD3DMappedTexI);
  329. printDevice(lpD3DMappedBlock);
  330. printDevice(lpClipper);
  331. printDevice(dwHintFlags);
  332. printDevice(lpwDPBuffer);
  333. printDevice(dwCurrentBatchVID);
  334. printDevice(HVbuf);
  335. printDevice(lpD3DExtendedCaps);
  336. printDevice(rstates);
  337. printDevice(tsstates);
  338. printDevice(pfnRastService);
  339. printDevice(pGeometryFuncs);
  340. printDevice(mWV);
  341. pcomment("---------------- CDirect3DDeviceIDP2 ----------------------");
  342. printDeviceDP2(lpDDSCB1);
  343. printDeviceDP2(allocatedBuf);
  344. printDeviceDP2(dp2data);
  345. printDeviceDP2(lpDP2CurrCommand);
  346. printDeviceDP2(wDP2CurrCmdCnt);
  347. printDeviceDP2(bDP2CurrCmdOP);
  348. printDeviceDP2(TLVbuf_size);
  349. printDeviceDP2(TLVbuf_base);
  350. printDeviceDP2(dwDP2CommandLength);
  351. printDeviceDP2(dwDP2CommandBufSize);
  352. printDeviceDP2(lpvDP2Commands);
  353. printDeviceDP2(dwDP2Flags);
  354. #ifdef VTABLE_HACK
  355. printDeviceDP2(dwLastFlags);
  356. printDeviceDP2(lpDP2LastVBI);
  357. #endif
  358. pcomment("---------------- MISC ------------------------------------");
  359. /*
  360. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  361. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  362. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  363. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  364. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  365. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  366. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  367. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  368. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  369. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  370. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  371. pequate("DEVI_ ", OFFSET(DIRECT3DDEVICEI, ));
  372. */
  373. pequate("_R_", 0);
  374. pequate("_G_", 4);
  375. pequate("_B_", 8);
  376. pequate("_X_", 0);
  377. pequate("_Y_", 4);
  378. pequate("_Z_", 8);
  379. pequate("_W_", 12);
  380. pequate("D3DLIGHTI_COMPUTE_SPECULAR ", D3DLIGHTI_COMPUTE_SPECULAR);
  381. pcomment("---------------- dwHintFlags-----------------------------------");
  382. pequate("D3DDEVBOOL_HINTFLAGS_INSCENE ", D3DDEVBOOL_HINTFLAGS_INSCENE );
  383. pequate("D3DDEVBOOL_HINTFLAGS_MULTITHREADED ", D3DDEVBOOL_HINTFLAGS_MULTITHREADED);
  384. pcomment("---------------- dwFEFlags ------------------------------------");
  385. pequate("D3DFE_WORLDMATRIX_DIRTY ", D3DFE_WORLDMATRIX_DIRTY );
  386. pequate("D3DFE_WORLDMATRIX1_DIRTY ", D3DFE_WORLDMATRIX1_DIRTY );
  387. pequate("D3DFE_WORLDMATRIX2_DIRTY ", D3DFE_WORLDMATRIX2_DIRTY );
  388. pequate("D3DFE_WORLDMATRIX3_DIRTY ", D3DFE_WORLDMATRIX3_DIRTY );
  389. pequate("D3DFE_TLVERTEX ", D3DFE_TLVERTEX );
  390. pequate("D3DFE_REALHAL ", D3DFE_REALHAL );
  391. pequate("D3DFE_PROJMATRIX_DIRTY ", D3DFE_PROJMATRIX_DIRTY );
  392. pequate("D3DFE_VIEWMATRIX_DIRTY ", D3DFE_VIEWMATRIX_DIRTY );
  393. pequate("D3DFE_RECORDSTATEMODE ", D3DFE_RECORDSTATEMODE );
  394. pequate("D3DFE_EXECUTESTATEMODE ", D3DFE_EXECUTESTATEMODE );
  395. pequate("D3DFE_NEED_TRANSFORM_LIGHTS ", D3DFE_NEED_TRANSFORM_LIGHTS );
  396. pequate("D3DFE_MATERIAL_DIRTY ", D3DFE_MATERIAL_DIRTY );
  397. pequate("D3DFE_CLIPPLANES_DIRTY ", D3DFE_CLIPPLANES_DIRTY );
  398. pequate("D3DFE_LIGHTS_DIRTY ", D3DFE_LIGHTS_DIRTY );
  399. pequate("D3DFE_VERTEXBLEND_DIRTY ", D3DFE_VERTEXBLEND_DIRTY );
  400. pequate("D3DFE_FRUSTUMPLANES_DIRTY ", D3DFE_FRUSTUMPLANES_DIRTY );
  401. pequate("D3DFE_WORLDVIEWMATRIX_DIRTY ", D3DFE_WORLDVIEWMATRIX_DIRTY );
  402. pequate("D3DFE_FVF_DIRTY ", D3DFE_FVF_DIRTY );
  403. pequate("D3DFE_NEED_TEXTURE_UPDATE ", D3DFE_NEED_TEXTURE_UPDATE );
  404. pequate("D3DFE_MAP_TSS_TO_RS ", D3DFE_MAP_TSS_TO_RS );
  405. pequate("D3DFE_INVWORLDVIEWMATRIX_DIRTY ", D3DFE_INVWORLDVIEWMATRIX_DIRTY);
  406. pequate("D3DFE_LOSTSURFACES ", D3DFE_LOSTSURFACES );
  407. pequate("D3DFE_DISABLE_TEXTURES ", D3DFE_DISABLE_TEXTURES );
  408. pequate("D3DFE_CLIPMATRIX_DIRTY ", D3DFE_CLIPMATRIX_DIRTY );
  409. pequate("D3DFE_TLHAL ", D3DFE_TLHAL );
  410. pequate("D3DFE_STATESETS ", D3DFE_STATESETS );
  411. pcomment("---------------- pv->dwFlags ------------------------------------");
  412. pequate("D3DPV_FOG ", D3DPV_FOG );
  413. pequate("D3DPV_DOCOLORVERTEX ", D3DPV_DOCOLORVERTEX );
  414. pequate("D3DPV_LIGHTING ", D3DPV_LIGHTING );
  415. pequate("D3DPV_SOA ", D3DPV_SOA );
  416. pequate("D3DPV_COLORVERTEX_E ", D3DPV_COLORVERTEX_E );
  417. pequate("D3DPV_COLORVERTEX_D ", D3DPV_COLORVERTEX_D );
  418. pequate("D3DPV_COLORVERTEX_S ", D3DPV_COLORVERTEX_S );
  419. pequate("D3DPV_COLORVERTEX_A ", D3DPV_COLORVERTEX_A );
  420. pequate("D3DPV_DONOTCOPYSPECULAR ", D3DPV_DONOTCOPYSPECULAR );
  421. pequate("D3DPV_RESERVED1 ", D3DPV_RESERVED1 );
  422. pequate("D3DPV_RESERVED2 ", D3DPV_RESERVED2 );
  423. pequate("D3DPV_RESERVED3 ", D3DPV_RESERVED3 );
  424. pequate("D3DPV_NONCLIPPED ", D3DPV_NONCLIPPED );
  425. pequate("D3DPV_FRUSTUMPLANES_DIRTY ", D3DPV_FRUSTUMPLANES_DIRTY );
  426. pequate("D3DPV_VBCALL ", D3DPV_VBCALL );
  427. pequate("D3DPV_DONOTCOPYTEXTURE ", D3DPV_DONOTCOPYTEXTURE );
  428. pequate("D3DPV_TLVCLIP ", D3DPV_TLVCLIP );
  429. pequate("D3DPV_TRANSFORMONLY ", D3DPV_TRANSFORMONLY );
  430. pequate("D3DPV_DONOTCOPYDIFFUSE ", D3DPV_DONOTCOPYDIFFUSE );
  431. pequate("D3DPV_PERSIST ", D3DPV_PERSIST );
  432. pcomment("---------------- pv->dwDeviceFlags ------------------------------");
  433. pequate("D3DDEV_GUARDBAND ", D3DDEV_GUARDBAND );
  434. pequate("D3DDEV_RANGEBASEDFOG ", D3DDEV_RANGEBASEDFOG );
  435. pequate("D3DDEV_FOG ", D3DDEV_FOG );
  436. pequate("D3DDEV_FVF ", D3DDEV_FVF );
  437. pequate("D3DDEV_DONOTSTRIPELEMENTS ", D3DDEV_DONOTSTRIPELEMENTS );
  438. pequate("D3DDEV_TEXTRANSFORMDIRTY ", D3DDEV_TEXTRANSFORMDIRTY );
  439. pequate("D3DDEV_REMAPTEXTUREINDICES ", D3DDEV_REMAPTEXTUREINDICES);
  440. pequate("D3DDEV_TRANSFORMDIRTY ", D3DDEV_TRANSFORMDIRTY );
  441. pequate("D3DDEV_LIGHTSDIRTY ", D3DDEV_LIGHTSDIRTY );
  442. pequate("D3DDEV_DONOTCLIP ", D3DDEV_DONOTCLIP );
  443. pequate("D3DDEV_DONOTUPDATEEXTENTS ", D3DDEV_DONOTUPDATEEXTENTS );
  444. pequate("D3DDEV_NOFVFANDNOTEXTURE ", D3DDEV_NOFVFANDNOTEXTURE );
  445. pequate("D3DDEV_TLVBUFWRITEONLY ", D3DDEV_TLVBUFWRITEONLY );
  446. pequate("D3DDEV_MODELSPACELIGHTING ", D3DDEV_MODELSPACELIGHTING );
  447. pequate("D3DDEV_LOCALVIEWER ", D3DDEV_LOCALVIEWER );
  448. pequate("D3DDEV_NORMALIZENORMALS ", D3DDEV_NORMALIZENORMALS );
  449. pequate("D3DDEV_TEXTURETRANSFORM ", D3DDEV_TEXTURETRANSFORM );
  450. pequate("D3DDEV_STRIDE ", D3DDEV_STRIDE );
  451. pequate("D3DDEV_COLORVERTEX ", D3DDEV_COLORVERTEX );
  452. pequate("D3DDEV_INTERPOLATE_COLOR ", D3DDEV_INTERPOLATE_COLOR );
  453. pequate("D3DDEV_INTERPOLATE_SPECULAR ", D3DDEV_INTERPOLATE_SPECULAR);
  454. return 0;
  455. }