Counter Strike : Global Offensive Source Code
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.

229 lines
12 KiB

  1. #include "stdafx.h"
  2. #include "sqplus.h"
  3. #include "DXSquirrel_Binds.h"
  4. //updates the message loop
  5. _MEMBER_FUNCTION_IMPL(DX,Update)
  6. {
  7. StackHandler sa(v);
  8. MSG msg;
  9. ZeroMemory( &msg, sizeof(msg) );
  10. while( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) )
  11. {
  12. if(msg.message == WM_QUIT)
  13. {
  14. return sa.Return(false);
  15. }
  16. TranslateMessage( &msg );
  17. DispatchMessage( &msg );
  18. }
  19. return sa.Return(true);
  20. }
  21. //
  22. _BEGIN_NAMESPACE(DX)
  23. _MEMBER_FUNCTION(DX,Update,0,0)
  24. _BEGIN_NAMESPACE_CONSTANTS(DX)
  25. //D3DDEVTYPE
  26. _CONSTANT(D3DDEVTYPE_HAL,OT_INTEGER,D3DDEVTYPE_HAL)
  27. _CONSTANT(D3DDEVTYPE_REF,OT_INTEGER,D3DDEVTYPE_REF)
  28. _CONSTANT(D3DDEVTYPE_SW,OT_INTEGER,D3DDEVTYPE_SW)
  29. //SWAPEFFECT
  30. _CONSTANT(D3DSWAPEFFECT_DISCARD,OT_INTEGER,D3DSWAPEFFECT_DISCARD)
  31. _CONSTANT(D3DSWAPEFFECT_FLIP,OT_INTEGER,D3DSWAPEFFECT_FLIP)
  32. _CONSTANT(D3DSWAPEFFECT_COPY,OT_INTEGER,D3DSWAPEFFECT_COPY)
  33. //D3DCREATE
  34. _CONSTANT(D3DCREATE_ADAPTERGROUP_DEVICE,OT_INTEGER,D3DCREATE_ADAPTERGROUP_DEVICE)
  35. _CONSTANT(D3DCREATE_DISABLE_DRIVER_MANAGEMENT,OT_INTEGER,D3DCREATE_DISABLE_DRIVER_MANAGEMENT)
  36. _CONSTANT(D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX,OT_INTEGER,D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX)
  37. _CONSTANT(D3DCREATE_FPU_PRESERVE,OT_INTEGER,D3DCREATE_FPU_PRESERVE)
  38. _CONSTANT(D3DCREATE_HARDWARE_VERTEXPROCESSING,OT_INTEGER,D3DCREATE_HARDWARE_VERTEXPROCESSING)
  39. _CONSTANT(D3DCREATE_MIXED_VERTEXPROCESSING,OT_INTEGER,D3DCREATE_MIXED_VERTEXPROCESSING)
  40. _CONSTANT(D3DCREATE_MULTITHREADED,OT_INTEGER,D3DCREATE_MULTITHREADED)
  41. _CONSTANT(D3DCREATE_NOWINDOWCHANGES,OT_INTEGER,D3DCREATE_NOWINDOWCHANGES)
  42. _CONSTANT(D3DCREATE_PUREDEVICE,OT_INTEGER,D3DCREATE_PUREDEVICE)
  43. _CONSTANT(D3DCREATE_SOFTWARE_VERTEXPROCESSING,OT_INTEGER,D3DCREATE_SOFTWARE_VERTEXPROCESSING)
  44. //D3DFMT
  45. _CONSTANT(D3DFMT_UNKNOWN,OT_INTEGER,D3DFMT_UNKNOWN)
  46. _CONSTANT(D3DFMT_R8G8B8,OT_INTEGER,D3DFMT_R8G8B8)
  47. _CONSTANT(D3DFMT_A8R8G8B8,OT_INTEGER,D3DFMT_A8R8G8B8)
  48. _CONSTANT(D3DFMT_X8R8G8B8,OT_INTEGER,D3DFMT_X8R8G8B8)
  49. _CONSTANT(D3DFMT_R5G6B5,OT_INTEGER,D3DFMT_R5G6B5)
  50. _CONSTANT(D3DFMT_X1R5G5B5,OT_INTEGER,D3DFMT_X1R5G5B5)
  51. _CONSTANT(D3DFMT_A1R5G5B5,OT_INTEGER,D3DFMT_A1R5G5B5)
  52. _CONSTANT(D3DFMT_A4R4G4B4,OT_INTEGER,D3DFMT_A4R4G4B4)
  53. _CONSTANT(D3DFMT_R3G3B2,OT_INTEGER,D3DFMT_R3G3B2)
  54. _CONSTANT(D3DFMT_A8,OT_INTEGER,D3DFMT_A8)
  55. _CONSTANT(D3DFMT_A8R3G3B2,OT_INTEGER,D3DFMT_A8R3G3B2)
  56. _CONSTANT(D3DFMT_X4R4G4B4,OT_INTEGER,D3DFMT_X4R4G4B4)
  57. _CONSTANT(D3DFMT_A2B10G10R10,OT_INTEGER,D3DFMT_A2B10G10R10)
  58. _CONSTANT(D3DFMT_A8B8G8R8,OT_INTEGER,D3DFMT_A8B8G8R8)
  59. _CONSTANT(D3DFMT_X8B8G8R8,OT_INTEGER,D3DFMT_X8B8G8R8)
  60. _CONSTANT(D3DFMT_G16R16,OT_INTEGER,D3DFMT_G16R16)
  61. _CONSTANT(D3DFMT_A2R10G10B10,OT_INTEGER,D3DFMT_A2R10G10B10)
  62. _CONSTANT(D3DFMT_A16B16G16R16,OT_INTEGER,D3DFMT_A16B16G16R16)
  63. _CONSTANT(D3DFMT_A8P8,OT_INTEGER,D3DFMT_A8P8)
  64. _CONSTANT(D3DFMT_P8,OT_INTEGER,D3DFMT_P8)
  65. _CONSTANT(D3DFMT_L8,OT_INTEGER,D3DFMT_L8)
  66. _CONSTANT(D3DFMT_A8L8,OT_INTEGER,D3DFMT_A8L8)
  67. _CONSTANT(D3DFMT_A4L4,OT_INTEGER,D3DFMT_A4L4)
  68. _CONSTANT(D3DFMT_V8U8,OT_INTEGER,D3DFMT_V8U8)
  69. _CONSTANT(D3DFMT_L6V5U5,OT_INTEGER,D3DFMT_L6V5U5)
  70. _CONSTANT(D3DFMT_X8L8V8U8,OT_INTEGER,D3DFMT_X8L8V8U8)
  71. _CONSTANT(D3DFMT_Q8W8V8U8,OT_INTEGER,D3DFMT_Q8W8V8U8)
  72. _CONSTANT(D3DFMT_V16U16,OT_INTEGER,D3DFMT_V16U16)
  73. _CONSTANT(D3DFMT_A2W10V10U10,OT_INTEGER,D3DFMT_A2W10V10U10)
  74. _CONSTANT(D3DFMT_UYVY,OT_INTEGER,D3DFMT_UYVY)
  75. _CONSTANT(D3DFMT_R8G8_B8G8,OT_INTEGER,D3DFMT_R8G8_B8G8)
  76. _CONSTANT(D3DFMT_YUY2,OT_INTEGER,D3DFMT_YUY2)
  77. _CONSTANT(D3DFMT_G8R8_G8B8,OT_INTEGER,D3DFMT_G8R8_G8B8)
  78. _CONSTANT(D3DFMT_DXT1,OT_INTEGER,D3DFMT_DXT1)
  79. _CONSTANT(D3DFMT_DXT2,OT_INTEGER,D3DFMT_DXT2)
  80. _CONSTANT(D3DFMT_DXT3,OT_INTEGER,D3DFMT_DXT3)
  81. _CONSTANT(D3DFMT_DXT4,OT_INTEGER,D3DFMT_DXT4)
  82. _CONSTANT(D3DFMT_DXT5,OT_INTEGER,D3DFMT_DXT5)
  83. _CONSTANT(D3DFMT_D16_LOCKABLE,OT_INTEGER,D3DFMT_D16_LOCKABLE)
  84. _CONSTANT(D3DFMT_D32,OT_INTEGER,D3DFMT_D32)
  85. _CONSTANT(D3DFMT_D15S1,OT_INTEGER,D3DFMT_D15S1)
  86. _CONSTANT(D3DFMT_D24S8,OT_INTEGER,D3DFMT_D24S8)
  87. _CONSTANT(D3DFMT_D24X8,OT_INTEGER,D3DFMT_D24X8)
  88. _CONSTANT(D3DFMT_D24X4S4,OT_INTEGER,D3DFMT_D24X4S4)
  89. _CONSTANT(D3DFMT_D16,OT_INTEGER,D3DFMT_D16)
  90. _CONSTANT(D3DFMT_D32F_LOCKABLE,OT_INTEGER,D3DFMT_D32F_LOCKABLE)
  91. _CONSTANT(D3DFMT_D24FS8,OT_INTEGER,D3DFMT_D24FS8)
  92. _CONSTANT(D3DFMT_L16,OT_INTEGER,D3DFMT_L16)
  93. _CONSTANT(D3DFMT_VERTEXDATA,OT_INTEGER,D3DFMT_VERTEXDATA)
  94. _CONSTANT(D3DFMT_INDEX16,OT_INTEGER,D3DFMT_INDEX16)
  95. _CONSTANT(D3DFMT_INDEX32,OT_INTEGER,D3DFMT_INDEX32)
  96. _CONSTANT(D3DFMT_Q16W16V16U16,OT_INTEGER,D3DFMT_Q16W16V16U16)
  97. _CONSTANT(D3DFMT_MULTI2_ARGB8,OT_INTEGER,D3DFMT_MULTI2_ARGB8)
  98. _CONSTANT(D3DFMT_R16F,OT_INTEGER,D3DFMT_R16F)
  99. _CONSTANT(D3DFMT_G16R16F,OT_INTEGER,D3DFMT_G16R16F)
  100. _CONSTANT(D3DFMT_A16B16G16R16F,OT_INTEGER,D3DFMT_A16B16G16R16F)
  101. _CONSTANT(D3DFMT_R32F,OT_INTEGER,D3DFMT_R32F)
  102. _CONSTANT(D3DFMT_G32R32F,OT_INTEGER,D3DFMT_G32R32F)
  103. _CONSTANT(D3DFMT_A32B32G32R32F,OT_INTEGER,D3DFMT_A32B32G32R32F)
  104. _CONSTANT(D3DFMT_CxV8U8,OT_INTEGER,D3DFMT_CxV8U8)
  105. //D3DCLEAR
  106. _CONSTANT(D3DCLEAR_STENCIL,OT_INTEGER,D3DCLEAR_STENCIL)
  107. _CONSTANT(D3DCLEAR_TARGET,OT_INTEGER,D3DCLEAR_TARGET)
  108. _CONSTANT(D3DCLEAR_ZBUFFER,OT_INTEGER,D3DCLEAR_ZBUFFER)
  109. //D3DTS
  110. _CONSTANT(D3DTS_WORLD,OT_INTEGER,D3DTS_WORLD)
  111. _CONSTANT(D3DTS_VIEW,OT_INTEGER,D3DTS_VIEW)
  112. _CONSTANT(D3DTS_PROJECTION,OT_INTEGER,D3DTS_PROJECTION)
  113. _CONSTANT(D3DTS_TEXTURE0,OT_INTEGER,D3DTS_TEXTURE0)
  114. _CONSTANT(D3DTS_TEXTURE1,OT_INTEGER,D3DTS_TEXTURE1)
  115. _CONSTANT(D3DTS_TEXTURE2,OT_INTEGER,D3DTS_TEXTURE2)
  116. _CONSTANT(D3DTS_TEXTURE3,OT_INTEGER,D3DTS_TEXTURE3)
  117. _CONSTANT(D3DTS_TEXTURE4,OT_INTEGER,D3DTS_TEXTURE4)
  118. _CONSTANT(D3DTS_TEXTURE5,OT_INTEGER,D3DTS_TEXTURE5)
  119. _CONSTANT(D3DTS_TEXTURE6,OT_INTEGER,D3DTS_TEXTURE6)
  120. _CONSTANT(D3DTS_TEXTURE7,OT_INTEGER,D3DTS_TEXTURE7)
  121. //
  122. _CONSTANT(D3DX_PI,OT_INTEGER,D3DX_PI)
  123. //RS
  124. _CONSTANT(D3DRS_ZENABLE,OT_INTEGER,D3DRS_ZENABLE)
  125. _CONSTANT(D3DRS_FILLMODE,OT_INTEGER,D3DRS_FILLMODE)
  126. _CONSTANT(D3DRS_SHADEMODE,OT_INTEGER,D3DRS_SHADEMODE)
  127. _CONSTANT(D3DRS_ZWRITEENABLE,OT_INTEGER,D3DRS_ZWRITEENABLE)
  128. _CONSTANT(D3DRS_ALPHATESTENABLE,OT_INTEGER,D3DRS_ALPHATESTENABLE)
  129. _CONSTANT(D3DRS_LASTPIXEL,OT_INTEGER,D3DRS_LASTPIXEL)
  130. _CONSTANT(D3DRS_SRCBLEND,OT_INTEGER,D3DRS_SRCBLEND)
  131. _CONSTANT(D3DRS_DESTBLEND,OT_INTEGER,D3DRS_DESTBLEND)
  132. _CONSTANT(D3DRS_CULLMODE,OT_INTEGER,D3DRS_CULLMODE)
  133. _CONSTANT(D3DRS_ZFUNC,OT_INTEGER,D3DRS_ZFUNC)
  134. _CONSTANT(D3DRS_ALPHAREF,OT_INTEGER,D3DRS_ALPHAREF)
  135. _CONSTANT(D3DRS_ALPHAFUNC,OT_INTEGER,D3DRS_ALPHAFUNC)
  136. _CONSTANT(D3DRS_DITHERENABLE,OT_INTEGER,D3DRS_DITHERENABLE)
  137. _CONSTANT(D3DRS_ALPHABLENDENABLE,OT_INTEGER,D3DRS_ALPHABLENDENABLE)
  138. _CONSTANT(D3DRS_FOGENABLE,OT_INTEGER,D3DRS_FOGENABLE)
  139. _CONSTANT(D3DRS_SPECULARENABLE,OT_INTEGER,D3DRS_SPECULARENABLE)
  140. _CONSTANT(D3DRS_FOGCOLOR,OT_INTEGER,D3DRS_FOGCOLOR)
  141. _CONSTANT(D3DRS_FOGTABLEMODE,OT_INTEGER,D3DRS_FOGTABLEMODE)
  142. _CONSTANT(D3DRS_FOGSTART,OT_INTEGER,D3DRS_FOGSTART)
  143. _CONSTANT(D3DRS_FOGEND,OT_INTEGER,D3DRS_FOGEND)
  144. _CONSTANT(D3DRS_FOGDENSITY,OT_INTEGER,D3DRS_FOGDENSITY)
  145. _CONSTANT(D3DRS_RANGEFOGENABLE,OT_INTEGER,D3DRS_RANGEFOGENABLE)
  146. _CONSTANT(D3DRS_STENCILENABLE,OT_INTEGER,D3DRS_STENCILENABLE)
  147. _CONSTANT(D3DRS_STENCILFAIL,OT_INTEGER,D3DRS_STENCILFAIL)
  148. _CONSTANT(D3DRS_STENCILZFAIL,OT_INTEGER,D3DRS_STENCILZFAIL)
  149. _CONSTANT(D3DRS_STENCILPASS,OT_INTEGER,D3DRS_STENCILPASS)
  150. _CONSTANT(D3DRS_STENCILFUNC,OT_INTEGER,D3DRS_STENCILFUNC)
  151. _CONSTANT(D3DRS_STENCILREF,OT_INTEGER,D3DRS_STENCILREF)
  152. _CONSTANT(D3DRS_STENCILMASK,OT_INTEGER,D3DRS_STENCILMASK)
  153. _CONSTANT(D3DRS_STENCILWRITEMASK,OT_INTEGER,D3DRS_STENCILWRITEMASK)
  154. _CONSTANT(D3DRS_TEXTUREFACTOR,OT_INTEGER,D3DRS_TEXTUREFACTOR)
  155. _CONSTANT(D3DRS_WRAP0,OT_INTEGER,D3DRS_WRAP0)
  156. _CONSTANT(D3DRS_WRAP1,OT_INTEGER,D3DRS_WRAP1)
  157. _CONSTANT(D3DRS_WRAP2,OT_INTEGER,D3DRS_WRAP2)
  158. _CONSTANT(D3DRS_WRAP3,OT_INTEGER,D3DRS_WRAP3)
  159. _CONSTANT(D3DRS_WRAP4,OT_INTEGER,D3DRS_WRAP4)
  160. _CONSTANT(D3DRS_WRAP5,OT_INTEGER,D3DRS_WRAP5)
  161. _CONSTANT(D3DRS_WRAP6,OT_INTEGER,D3DRS_WRAP6)
  162. _CONSTANT(D3DRS_WRAP7,OT_INTEGER,D3DRS_WRAP7)
  163. _CONSTANT(D3DRS_CLIPPING,OT_INTEGER,D3DRS_CLIPPING)
  164. _CONSTANT(D3DRS_LIGHTING,OT_INTEGER,D3DRS_LIGHTING)
  165. _CONSTANT(D3DRS_AMBIENT,OT_INTEGER,D3DRS_AMBIENT)
  166. _CONSTANT(D3DRS_FOGVERTEXMODE,OT_INTEGER,D3DRS_FOGVERTEXMODE)
  167. _CONSTANT(D3DRS_COLORVERTEX,OT_INTEGER,D3DRS_COLORVERTEX)
  168. _CONSTANT(D3DRS_LOCALVIEWER,OT_INTEGER,D3DRS_LOCALVIEWER)
  169. _CONSTANT(D3DRS_NORMALIZENORMALS,OT_INTEGER,D3DRS_NORMALIZENORMALS)
  170. _CONSTANT(D3DRS_DIFFUSEMATERIALSOURCE,OT_INTEGER,D3DRS_DIFFUSEMATERIALSOURCE)
  171. _CONSTANT(D3DRS_SPECULARMATERIALSOURCE,OT_INTEGER,D3DRS_SPECULARMATERIALSOURCE)
  172. _CONSTANT(D3DRS_AMBIENTMATERIALSOURCE,OT_INTEGER,D3DRS_AMBIENTMATERIALSOURCE)
  173. _CONSTANT(D3DRS_EMISSIVEMATERIALSOURCE,OT_INTEGER,D3DRS_EMISSIVEMATERIALSOURCE)
  174. _CONSTANT(D3DRS_VERTEXBLEND,OT_INTEGER,D3DRS_VERTEXBLEND)
  175. _CONSTANT(D3DRS_CLIPPLANEENABLE,OT_INTEGER,D3DRS_CLIPPLANEENABLE)
  176. _CONSTANT(D3DRS_POINTSIZE,OT_INTEGER,D3DRS_POINTSIZE)
  177. _CONSTANT(D3DRS_POINTSIZE_MIN,OT_INTEGER,D3DRS_POINTSIZE_MIN)
  178. _CONSTANT(D3DRS_POINTSPRITEENABLE,OT_INTEGER,D3DRS_POINTSPRITEENABLE)
  179. _CONSTANT(D3DRS_POINTSCALEENABLE,OT_INTEGER,D3DRS_POINTSCALEENABLE)
  180. _CONSTANT(D3DRS_POINTSCALE_A,OT_INTEGER,D3DRS_POINTSCALE_A)
  181. _CONSTANT(D3DRS_POINTSCALE_B,OT_INTEGER,D3DRS_POINTSCALE_B)
  182. _CONSTANT(D3DRS_POINTSCALE_C,OT_INTEGER,D3DRS_POINTSCALE_C)
  183. _CONSTANT(D3DRS_MULTISAMPLEANTIALIAS,OT_INTEGER,D3DRS_MULTISAMPLEANTIALIAS)
  184. _CONSTANT(D3DRS_MULTISAMPLEMASK,OT_INTEGER,D3DRS_MULTISAMPLEMASK)
  185. _CONSTANT(D3DRS_PATCHEDGESTYLE,OT_INTEGER,D3DRS_PATCHEDGESTYLE)
  186. _CONSTANT(D3DRS_DEBUGMONITORTOKEN,OT_INTEGER,D3DRS_DEBUGMONITORTOKEN)
  187. _CONSTANT(D3DRS_POINTSIZE_MAX,OT_INTEGER,D3DRS_POINTSIZE_MAX)
  188. _CONSTANT(D3DRS_INDEXEDVERTEXBLENDENABLE,OT_INTEGER,D3DRS_INDEXEDVERTEXBLENDENABLE)
  189. _CONSTANT(D3DRS_COLORWRITEENABLE,OT_INTEGER,D3DRS_COLORWRITEENABLE)
  190. _CONSTANT(D3DRS_TWEENFACTOR,OT_INTEGER,D3DRS_TWEENFACTOR)
  191. _CONSTANT(D3DRS_BLENDOP,OT_INTEGER,D3DRS_BLENDOP)
  192. _CONSTANT(D3DRS_POSITIONDEGREE,OT_INTEGER,D3DRS_POSITIONDEGREE)
  193. _CONSTANT(D3DRS_NORMALDEGREE,OT_INTEGER,D3DRS_NORMALDEGREE)
  194. _CONSTANT(D3DRS_SCISSORTESTENABLE,OT_INTEGER,D3DRS_SCISSORTESTENABLE)
  195. _CONSTANT(D3DRS_SLOPESCALEDEPTHBIAS,OT_INTEGER,D3DRS_SLOPESCALEDEPTHBIAS)
  196. _CONSTANT(D3DRS_ANTIALIASEDLINEENABLE,OT_INTEGER,D3DRS_ANTIALIASEDLINEENABLE)
  197. _CONSTANT(D3DRS_MINTESSELLATIONLEVEL,OT_INTEGER,D3DRS_MINTESSELLATIONLEVEL)
  198. _CONSTANT(D3DRS_MAXTESSELLATIONLEVEL,OT_INTEGER,D3DRS_MAXTESSELLATIONLEVEL)
  199. _CONSTANT(D3DRS_ADAPTIVETESS_X,OT_INTEGER,D3DRS_ADAPTIVETESS_X)
  200. _CONSTANT(D3DRS_ADAPTIVETESS_Y,OT_INTEGER,D3DRS_ADAPTIVETESS_Y)
  201. _CONSTANT(D3DRS_ADAPTIVETESS_Z,OT_INTEGER,D3DRS_ADAPTIVETESS_Z)
  202. _CONSTANT(D3DRS_ADAPTIVETESS_W,OT_INTEGER,D3DRS_ADAPTIVETESS_W)
  203. _CONSTANT(D3DRS_ENABLEADAPTIVETESSELLATION,OT_INTEGER,D3DRS_ENABLEADAPTIVETESSELLATION)
  204. _CONSTANT(D3DRS_TWOSIDEDSTENCILMODE,OT_INTEGER,D3DRS_TWOSIDEDSTENCILMODE)
  205. _CONSTANT(D3DRS_CCW_STENCILFAIL,OT_INTEGER,D3DRS_CCW_STENCILFAIL)
  206. _CONSTANT(D3DRS_CCW_STENCILZFAIL,OT_INTEGER,D3DRS_CCW_STENCILZFAIL)
  207. _CONSTANT(D3DRS_CCW_STENCILPASS,OT_INTEGER,D3DRS_CCW_STENCILPASS)
  208. _CONSTANT(D3DRS_CCW_STENCILFUNC,OT_INTEGER,D3DRS_CCW_STENCILFUNC)
  209. _CONSTANT(D3DRS_COLORWRITEENABLE1,OT_INTEGER,D3DRS_COLORWRITEENABLE1)
  210. _CONSTANT(D3DRS_COLORWRITEENABLE2,OT_INTEGER,D3DRS_COLORWRITEENABLE2)
  211. _CONSTANT(D3DRS_COLORWRITEENABLE3,OT_INTEGER,D3DRS_COLORWRITEENABLE3)
  212. _CONSTANT(D3DRS_BLENDFACTOR,OT_INTEGER,D3DRS_BLENDFACTOR)
  213. _CONSTANT(D3DRS_SRGBWRITEENABLE,OT_INTEGER,D3DRS_SRGBWRITEENABLE)
  214. _CONSTANT(D3DRS_DEPTHBIAS,OT_INTEGER,D3DRS_DEPTHBIAS)
  215. _CONSTANT(D3DRS_WRAP8,OT_INTEGER,D3DRS_WRAP8)
  216. _CONSTANT(D3DRS_WRAP9,OT_INTEGER,D3DRS_WRAP9)
  217. _CONSTANT(D3DRS_WRAP10,OT_INTEGER,D3DRS_WRAP10)
  218. _CONSTANT(D3DRS_WRAP11,OT_INTEGER,D3DRS_WRAP11)
  219. _CONSTANT(D3DRS_WRAP12,OT_INTEGER,D3DRS_WRAP12)
  220. _CONSTANT(D3DRS_WRAP13,OT_INTEGER,D3DRS_WRAP13)
  221. _CONSTANT(D3DRS_WRAP14,OT_INTEGER,D3DRS_WRAP14)
  222. _CONSTANT(D3DRS_WRAP15,OT_INTEGER,D3DRS_WRAP15)
  223. _CONSTANT(D3DRS_SEPARATEALPHABLENDENABLE,OT_INTEGER,D3DRS_SEPARATEALPHABLENDENABLE)
  224. _CONSTANT(D3DRS_SRCBLENDALPHA,OT_INTEGER,D3DRS_SRCBLENDALPHA)
  225. _CONSTANT(D3DRS_DESTBLENDALPHA,OT_INTEGER,D3DRS_DESTBLENDALPHA)
  226. _CONSTANT(D3DRS_BLENDOPALPHA,OT_INTEGER,D3DRS_BLENDOPALPHA)
  227. _CONSTANT(D3DRS_FORCE_DWORD,OT_INTEGER,D3DRS_FORCE_DWORD)
  228. _END_NAMESPACE(DX,NULL)