找回密码
 立即注册→加入我们

QQ登录

只需一步,快速开始

搜索
热搜: 下载 VB C 实现 编写
查看: 15556|回复: 21

【VB】VB6不用vbogl.tlb玩OpenGL

[复制链接]
发表于 2014-8-29 02:35:05 | 显示全部楼层 |阅读模式

欢迎访问技术宅的结界,请注册或者登录吧。

您需要 登录 才可以下载或查看,没有账号?立即注册→加入我们

×
常数部分
  1. Option Explicit

  2. Global Const GL_VERSION_1_1 = 1&

  3. Global Const GL_ZERO = 0&
  4. Global Const GL_FALSE = 0&
  5. Global Const GL_LOGIC_OP = &HBF1&
  6. Global Const GL_NONE = 0&
  7. Global Const GL_TEXTURE_COMPONENTS = &H1003&
  8. Global Const GL_NO_ERROR = 0&
  9. Global Const GL_POINTS = &H0&
  10. Global Const GL_CURRENT_BIT = &H1&
  11. Global Const GL_TRUE = 1&
  12. Global Const GL_ONE = 1&
  13. Global Const GL_CLIENT_PIXEL_STORE_BIT = &H1&
  14. Global Const GL_LINES = &H1&
  15. Global Const GL_LINE_LOOP = &H2&
  16. Global Const GL_POINT_BIT = &H2&
  17. Global Const GL_CLIENT_VERTEX_ARRAY_BIT = &H2&
  18. Global Const GL_LINE_STRIP = &H3&
  19. Global Const GL_LINE_BIT = &H4&
  20. Global Const GL_TRIANGLES = &H4&
  21. Global Const GL_TRIANGLE_STRIP = &H5&
  22. Global Const GL_TRIANGLE_FAN = &H6&
  23. Global Const GL_QUADS = &H7&
  24. Global Const GL_QUAD_STRIP = &H8&
  25. Global Const GL_POLYGON_BIT = &H8&
  26. Global Const GL_POLYGON = &H9&
  27. Global Const GL_POLYGON_STIPPLE_BIT = &H10&
  28. Global Const GL_PIXEL_MODE_BIT = &H20&
  29. Global Const GL_LIGHTING_BIT = &H40&
  30. Global Const GL_FOG_BIT = &H80&
  31. Global Const GL_DEPTH_BUFFER_BIT = &H100&
  32. Global Const GL_ACCUM = &H100&
  33. Global Const GL_LOAD = &H101&
  34. Global Const GL_RETURN = &H102&
  35. Global Const GL_MULT = &H103&
  36. Global Const GL_ADD = &H104&
  37. Global Const GL_NEVER = &H200&
  38. Global Const GL_ACCUM_BUFFER_BIT = &H200&
  39. Global Const GL_LESS = &H201&
  40. Global Const GL_EQUAL = &H202&
  41. Global Const GL_LEQUAL = &H203&
  42. Global Const GL_GREATER = &H204&
  43. Global Const GL_NOTEQUAL = &H205&
  44. Global Const GL_GEQUAL = &H206&
  45. Global Const GL_ALWAYS = &H207&
  46. Global Const GL_SRC_COLOR = &H300&
  47. Global Const GL_ONE_MINUS_SRC_COLOR = &H301&
  48. Global Const GL_SRC_ALPHA = &H302&
  49. Global Const GL_ONE_MINUS_SRC_ALPHA = &H303&
  50. Global Const GL_DST_ALPHA = &H304&
  51. Global Const GL_ONE_MINUS_DST_ALPHA = &H305&
  52. Global Const GL_DST_COLOR = &H306&
  53. Global Const GL_ONE_MINUS_DST_COLOR = &H307&
  54. Global Const GL_SRC_ALPHA_SATURATE = &H308&
  55. Global Const GL_STENCIL_BUFFER_BIT = &H400&
  56. Global Const GL_FRONT_LEFT = &H400&
  57. Global Const GL_FRONT_RIGHT = &H401&
  58. Global Const GL_BACK_LEFT = &H402&
  59. Global Const GL_BACK_RIGHT = &H403&
  60. Global Const GL_FRONT = &H404&
  61. Global Const GL_BACK = &H405&
  62. Global Const GL_LEFT = &H406&
  63. Global Const GL_RIGHT = &H407&
  64. Global Const GL_FRONT_AND_BACK = &H408&
  65. Global Const GL_AUX0 = &H409&
  66. Global Const GL_AUX1 = &H40A&
  67. Global Const GL_AUX2 = &H40B&
  68. Global Const GL_AUX3 = &H40C&
  69. Global Const GL_INVALID_ENUM = &H500&
  70. Global Const GL_INVALID_VALUE = &H501&
  71. Global Const GL_INVALID_OPERATION = &H502&
  72. Global Const GL_STACK_OVERFLOW = &H503&
  73. Global Const GL_STACK_UNDERFLOW = &H504&
  74. Global Const GL_OUT_OF_MEMORY = &H505&
  75. Global Const GL_2D = &H600&
  76. Global Const GL_3D = &H601&
  77. Global Const GL_3D_COLOR = &H602&
  78. Global Const GL_3D_COLOR_TEXTURE = &H603&
  79. Global Const GL_4D_COLOR_TEXTURE = &H604&
  80. Global Const GL_PASS_THROUGH_TOKEN = &H700&
  81. Global Const GL_POINT_TOKEN = &H701&
  82. Global Const GL_LINE_TOKEN = &H702&
  83. Global Const GL_POLYGON_TOKEN = &H703&
  84. Global Const GL_BITMAP_TOKEN = &H704&
  85. Global Const GL_DRAW_PIXEL_TOKEN = &H705&
  86. Global Const GL_COPY_PIXEL_TOKEN = &H706&
  87. Global Const GL_LINE_RESET_TOKEN = &H707&
  88. Global Const GL_EXP = &H800&
  89. Global Const GL_VIEWPORT_BIT = &H800&
  90. Global Const GL_EXP2 = &H801&
  91. Global Const GL_CW = &H900&
  92. Global Const GL_CCW = &H901&
  93. Global Const GL_COEFF = &HA00&
  94. Global Const GL_ORDER = &HA01&
  95. Global Const GL_DOMAIN = &HA02&
  96. Global Const GL_CURRENT_COLOR = &HB00&
  97. Global Const GL_CURRENT_INDEX = &HB01&
  98. Global Const GL_CURRENT_NORMAL = &HB02&
  99. Global Const GL_CURRENT_TEXTURE_COORDS = &HB03&
  100. Global Const GL_CURRENT_RASTER_COLOR = &HB04&
  101. Global Const GL_CURRENT_RASTER_INDEX = &HB05&
  102. Global Const GL_CURRENT_RASTER_TEXTURE_COORDS = &HB06&
  103. Global Const GL_CURRENT_RASTER_POSITION = &HB07&
  104. Global Const GL_CURRENT_RASTER_POSITION_VALID = &HB08&
  105. Global Const GL_CURRENT_RASTER_DISTANCE = &HB09&
  106. Global Const GL_POINT_SMOOTH = &HB10&
  107. Global Const GL_POINT_SIZE = &HB11&
  108. Global Const GL_POINT_SIZE_RANGE = &HB12&
  109. Global Const GL_POINT_SIZE_GRANULARITY = &HB13&
  110. Global Const GL_LINE_SMOOTH = &HB20&
  111. Global Const GL_LINE_WIDTH = &HB21&
  112. Global Const GL_LINE_WIDTH_RANGE = &HB22&
  113. Global Const GL_LINE_WIDTH_GRANULARITY = &HB23&
  114. Global Const GL_LINE_STIPPLE = &HB24&
  115. Global Const GL_LINE_STIPPLE_PATTERN = &HB25&
  116. Global Const GL_LINE_STIPPLE_REPEAT = &HB26&
  117. Global Const GL_LIST_MODE = &HB30&
  118. Global Const GL_MAX_LIST_NESTING = &HB31&
  119. Global Const GL_LIST_BASE = &HB32&
  120. Global Const GL_LIST_INDEX = &HB33&
  121. Global Const GL_POLYGON_MODE = &HB40&
  122. Global Const GL_POLYGON_SMOOTH = &HB41&
  123. Global Const GL_POLYGON_STIPPLE = &HB42&
  124. Global Const GL_EDGE_FLAG = &HB43&
  125. Global Const GL_CULL_FACE = &HB44&
  126. Global Const GL_CULL_FACE_MODE = &HB45&
  127. Global Const GL_FRONT_FACE = &HB46&
  128. Global Const GL_LIGHTING = &HB50&
  129. Global Const GL_LIGHT_MODEL_LOCAL_VIEWER = &HB51&
  130. Global Const GL_LIGHT_MODEL_TWO_SIDE = &HB52&
  131. Global Const GL_LIGHT_MODEL_AMBIENT = &HB53&
  132. Global Const GL_SHADE_MODEL = &HB54&
  133. Global Const GL_COLOR_MATERIAL_FACE = &HB55&
  134. Global Const GL_COLOR_MATERIAL_PARAMETER = &HB56&
  135. Global Const GL_COLOR_MATERIAL = &HB57&
  136. Global Const GL_FOG = &HB60&
  137. Global Const GL_FOG_INDEX = &HB61&
  138. Global Const GL_FOG_DENSITY = &HB62&
  139. Global Const GL_FOG_START = &HB63&
  140. Global Const GL_FOG_END = &HB64&
  141. Global Const GL_FOG_MODE = &HB65&
  142. Global Const GL_FOG_COLOR = &HB66&
  143. Global Const GL_DEPTH_RANGE = &HB70&
  144. Global Const GL_DEPTH_TEST = &HB71&
  145. Global Const GL_DEPTH_WRITEMASK = &HB72&
  146. Global Const GL_DEPTH_CLEAR_VALUE = &HB73&
  147. Global Const GL_DEPTH_FUNC = &HB74&
  148. Global Const GL_ACCUM_CLEAR_VALUE = &HB80&
  149. Global Const GL_STENCIL_TEST = &HB90&
  150. Global Const GL_STENCIL_CLEAR_VALUE = &HB91&
  151. Global Const GL_STENCIL_FUNC = &HB92&
  152. Global Const GL_STENCIL_VALUE_MASK = &HB93&
  153. Global Const GL_STENCIL_FAIL = &HB94&
  154. Global Const GL_STENCIL_PASS_DEPTH_FAIL = &HB95&
  155. Global Const GL_STENCIL_PASS_DEPTH_PASS = &HB96&
  156. Global Const GL_STENCIL_REF = &HB97&
  157. Global Const GL_STENCIL_WRITEMASK = &HB98&
  158. Global Const GL_MATRIX_MODE = &HBA0&
  159. Global Const GL_NORMALIZE = &HBA1&
  160. Global Const GL_VIEWPORT = &HBA2&
  161. Global Const GL_MODELVIEW_STACK_DEPTH = &HBA3&
  162. Global Const GL_PROJECTION_STACK_DEPTH = &HBA4&
  163. Global Const GL_TEXTURE_STACK_DEPTH = &HBA5&
  164. Global Const GL_MODELVIEW_MATRIX = &HBA6&
  165. Global Const GL_PROJECTION_MATRIX = &HBA7&
  166. Global Const GL_TEXTURE_MATRIX = &HBA8&
  167. Global Const GL_ATTRIB_STACK_DEPTH = &HBB0&
  168. Global Const GL_CLIENT_ATTRIB_STACK_DEPTH = &HBB1&
  169. Global Const GL_ALPHA_TEST = &HBC0&
  170. Global Const GL_ALPHA_TEST_FUNC = &HBC1&
  171. Global Const GL_ALPHA_TEST_REF = &HBC2&
  172. Global Const GL_DITHER = &HBD0&
  173. Global Const GL_BLEND_DST = &HBE0&
  174. Global Const GL_BLEND_SRC = &HBE1&
  175. Global Const GL_BLEND = &HBE2&
  176. Global Const GL_LOGIC_OP_MODE = &HBF0&
  177. Global Const GL_INDEX_LOGIC_OP = &HBF1&
  178. Global Const GL_COLOR_LOGIC_OP = &HBF2&
  179. Global Const GL_AUX_BUFFERS = &HC00&
  180. Global Const GL_DRAW_BUFFER = &HC01&
  181. Global Const GL_READ_BUFFER = &HC02&
  182. Global Const GL_SCISSOR_BOX = &HC10&
  183. Global Const GL_SCISSOR_TEST = &HC11&
  184. Global Const GL_INDEX_CLEAR_VALUE = &HC20&
  185. Global Const GL_INDEX_WRITEMASK = &HC21&
  186. Global Const GL_COLOR_CLEAR_VALUE = &HC22&
  187. Global Const GL_COLOR_WRITEMASK = &HC23&
  188. Global Const GL_INDEX_MODE = &HC30&
  189. Global Const GL_RGBA_MODE = &HC31&
  190. Global Const GL_DOUBLEBUFFER = &HC32&
  191. Global Const GL_STEREO = &HC33&
  192. Global Const GL_RENDER_MODE = &HC40&
  193. Global Const GL_PERSPECTIVE_CORRECTION_HINT = &HC50&
  194. Global Const GL_POINT_SMOOTH_HINT = &HC51&
  195. Global Const GL_LINE_SMOOTH_HINT = &HC52&
  196. Global Const GL_POLYGON_SMOOTH_HINT = &HC53&
  197. Global Const GL_FOG_HINT = &HC54&
  198. Global Const GL_TEXTURE_GEN_S = &HC60&
  199. Global Const GL_TEXTURE_GEN_T = &HC61&
  200. Global Const GL_TEXTURE_GEN_R = &HC62&
  201. Global Const GL_TEXTURE_GEN_Q = &HC63&
  202. Global Const GL_PIXEL_MAP_I_TO_I = &HC70&
  203. Global Const GL_PIXEL_MAP_S_TO_S = &HC71&
  204. Global Const GL_PIXEL_MAP_I_TO_R = &HC72&
  205. Global Const GL_PIXEL_MAP_I_TO_G = &HC73&
  206. Global Const GL_PIXEL_MAP_I_TO_B = &HC74&
  207. Global Const GL_PIXEL_MAP_I_TO_A = &HC75&
  208. Global Const GL_PIXEL_MAP_R_TO_R = &HC76&
  209. Global Const GL_PIXEL_MAP_G_TO_G = &HC77&
  210. Global Const GL_PIXEL_MAP_B_TO_B = &HC78&
  211. Global Const GL_PIXEL_MAP_A_TO_A = &HC79&
  212. Global Const GL_PIXEL_MAP_I_TO_I_SIZE = &HCB0&
  213. Global Const GL_PIXEL_MAP_S_TO_S_SIZE = &HCB1&
  214. Global Const GL_PIXEL_MAP_I_TO_R_SIZE = &HCB2&
  215. Global Const GL_PIXEL_MAP_I_TO_G_SIZE = &HCB3&
  216. Global Const GL_PIXEL_MAP_I_TO_B_SIZE = &HCB4&
  217. Global Const GL_PIXEL_MAP_I_TO_A_SIZE = &HCB5&
  218. Global Const GL_PIXEL_MAP_R_TO_R_SIZE = &HCB6&
  219. Global Const GL_PIXEL_MAP_G_TO_G_SIZE = &HCB7&
  220. Global Const GL_PIXEL_MAP_B_TO_B_SIZE = &HCB8&
  221. Global Const GL_PIXEL_MAP_A_TO_A_SIZE = &HCB9&
  222. Global Const GL_UNPACK_SWAP_BYTES = &HCF0&
  223. Global Const GL_UNPACK_LSB_FIRST = &HCF1&
  224. Global Const GL_UNPACK_ROW_LENGTH = &HCF2&
  225. Global Const GL_UNPACK_SKIP_ROWS = &HCF3&
  226. Global Const GL_UNPACK_SKIP_PIXELS = &HCF4&
  227. Global Const GL_UNPACK_ALIGNMENT = &HCF5&
  228. Global Const GL_PACK_SWAP_BYTES = &HD00&
  229. Global Const GL_PACK_LSB_FIRST = &HD01&
  230. Global Const GL_PACK_ROW_LENGTH = &HD02&
  231. Global Const GL_PACK_SKIP_ROWS = &HD03&
  232. Global Const GL_PACK_SKIP_PIXELS = &HD04&
  233. Global Const GL_PACK_ALIGNMENT = &HD05&
  234. Global Const GL_MAP_COLOR = &HD10&
  235. Global Const GL_MAP_STENCIL = &HD11&
  236. Global Const GL_INDEX_SHIFT = &HD12&
  237. Global Const GL_INDEX_OFFSET = &HD13&
  238. Global Const GL_RED_SCALE = &HD14&
  239. Global Const GL_RED_BIAS = &HD15&
  240. Global Const GL_ZOOM_X = &HD16&
  241. Global Const GL_ZOOM_Y = &HD17&
  242. Global Const GL_GREEN_SCALE = &HD18&
  243. Global Const GL_GREEN_BIAS = &HD19&
  244. Global Const GL_BLUE_SCALE = &HD1A&
  245. Global Const GL_BLUE_BIAS = &HD1B&
  246. Global Const GL_ALPHA_SCALE = &HD1C&
  247. Global Const GL_ALPHA_BIAS = &HD1D&
  248. Global Const GL_DEPTH_SCALE = &HD1E&
  249. Global Const GL_DEPTH_BIAS = &HD1F&
  250. Global Const GL_MAX_EVAL_ORDER = &HD30&
  251. Global Const GL_MAX_LIGHTS = &HD31&
  252. Global Const GL_MAX_CLIP_PLANES = &HD32&
  253. Global Const GL_MAX_TEXTURE_SIZE = &HD33&
  254. Global Const GL_MAX_PIXEL_MAP_TABLE = &HD34&
  255. Global Const GL_MAX_ATTRIB_STACK_DEPTH = &HD35&
  256. Global Const GL_MAX_MODELVIEW_STACK_DEPTH = &HD36&
  257. Global Const GL_MAX_NAME_STACK_DEPTH = &HD37&
  258. Global Const GL_MAX_PROJECTION_STACK_DEPTH = &HD38&
  259. Global Const GL_MAX_TEXTURE_STACK_DEPTH = &HD39&
  260. Global Const GL_MAX_VIEWPORT_DIMS = &HD3A&
  261. Global Const GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = &HD3B&
  262. Global Const GL_SUBPIXEL_BITS = &HD50&
  263. Global Const GL_INDEX_BITS = &HD51&
  264. Global Const GL_RED_BITS = &HD52&
  265. Global Const GL_GREEN_BITS = &HD53&
  266. Global Const GL_BLUE_BITS = &HD54&
  267. Global Const GL_ALPHA_BITS = &HD55&
  268. Global Const GL_DEPTH_BITS = &HD56&
  269. Global Const GL_STENCIL_BITS = &HD57&
  270. Global Const GL_ACCUM_RED_BITS = &HD58&
  271. Global Const GL_ACCUM_GREEN_BITS = &HD59&
  272. Global Const GL_ACCUM_BLUE_BITS = &HD5A&
  273. Global Const GL_ACCUM_ALPHA_BITS = &HD5B&
  274. Global Const GL_NAME_STACK_DEPTH = &HD70&
  275. Global Const GL_AUTO_NORMAL = &HD80&
  276. Global Const GL_MAP1_COLOR_4 = &HD90&
  277. Global Const GL_MAP1_INDEX = &HD91&
  278. Global Const GL_MAP1_NORMAL = &HD92&
  279. Global Const GL_MAP1_TEXTURE_COORD_1 = &HD93&
  280. Global Const GL_MAP1_TEXTURE_COORD_2 = &HD94&
  281. Global Const GL_MAP1_TEXTURE_COORD_3 = &HD95&
  282. Global Const GL_MAP1_TEXTURE_COORD_4 = &HD96&
  283. Global Const GL_MAP1_VERTEX_3 = &HD97&
  284. Global Const GL_MAP1_VERTEX_4 = &HD98&
  285. Global Const GL_MAP2_COLOR_4 = &HDB0&
  286. Global Const GL_MAP2_INDEX = &HDB1&
  287. Global Const GL_MAP2_NORMAL = &HDB2&
  288. Global Const GL_MAP2_TEXTURE_COORD_1 = &HDB3&
  289. Global Const GL_MAP2_TEXTURE_COORD_2 = &HDB4&
  290. Global Const GL_MAP2_TEXTURE_COORD_3 = &HDB5&
  291. Global Const GL_MAP2_TEXTURE_COORD_4 = &HDB6&
  292. Global Const GL_MAP2_VERTEX_3 = &HDB7&
  293. Global Const GL_MAP2_VERTEX_4 = &HDB8&
  294. Global Const GL_MAP1_GRID_DOMAIN = &HDD0&
  295. Global Const GL_MAP1_GRID_SEGMENTS = &HDD1&
  296. Global Const GL_MAP2_GRID_DOMAIN = &HDD2&
  297. Global Const GL_MAP2_GRID_SEGMENTS = &HDD3&
  298. Global Const GL_TEXTURE_1D = &HDE0&
  299. Global Const GL_TEXTURE_2D = &HDE1&
  300. Global Const GL_FEEDBACK_BUFFER_POINTER = &HDF0&
  301. Global Const GL_FEEDBACK_BUFFER_SIZE = &HDF1&
  302. Global Const GL_FEEDBACK_BUFFER_TYPE = &HDF2&
  303. Global Const GL_SELECTION_BUFFER_POINTER = &HDF3&
  304. Global Const GL_SELECTION_BUFFER_SIZE = &HDF4&
  305. Global Const GL_TEXTURE_WIDTH = &H1000&
  306. Global Const GL_TRANSFORM_BIT = &H1000&
  307. Global Const GL_TEXTURE_HEIGHT = &H1001&
  308. Global Const GL_TEXTURE_INTERNAL_FORMAT = &H1003&
  309. Global Const GL_TEXTURE_BORDER_COLOR = &H1004&
  310. Global Const GL_TEXTURE_BORDER = &H1005&
  311. Global Const GL_DONT_CARE = &H1100&
  312. Global Const GL_FASTEST = &H1101&
  313. Global Const GL_NICEST = &H1102&
  314. Global Const GL_AMBIENT = &H1200&
  315. Global Const GL_DIFFUSE = &H1201&
  316. Global Const GL_SPECULAR = &H1202&
  317. Global Const GL_POSITION = &H1203&
  318. Global Const GL_SPOT_DIRECTION = &H1204&
  319. Global Const GL_SPOT_EXPONENT = &H1205&
  320. Global Const GL_SPOT_CUTOFF = &H1206&
  321. Global Const GL_CONSTANT_ATTENUATION = &H1207&
  322. Global Const GL_LINEAR_ATTENUATION = &H1208&
  323. Global Const GL_QUADRATIC_ATTENUATION = &H1209&
  324. Global Const GL_COMPILE = &H1300&
  325. Global Const GL_COMPILE_AND_EXECUTE = &H1301&
  326. Global Const GL_BYTE = &H1400&
  327. Global Const GL_UNSIGNED_BYTE = &H1401&
  328. Global Const GL_SHORT = &H1402&
  329. Global Const GL_UNSIGNED_SHORT = &H1403&
  330. Global Const GL_INT = &H1404&
  331. Global Const GL_UNSIGNED_INT = &H1405&
  332. Global Const GL_FLOAT = &H1406&
  333. Global Const GL_2_BYTES = &H1407&
  334. Global Const GL_3_BYTES = &H1408&
  335. Global Const GL_4_BYTES = &H1409&
  336. Global Const GL_DOUBLE = &H140A&
  337. Global Const GL_CLEAR = &H1500&
  338. Global Const GL_AND = &H1501&
  339. Global Const GL_AND_REVERSE = &H1502&
  340. Global Const GL_COPY = &H1503&
  341. Global Const GL_AND_INVERTED = &H1504&
  342. Global Const GL_NOOP = &H1505&
  343. Global Const GL_XOR = &H1506&
  344. Global Const GL_OR = &H1507&
  345. Global Const GL_NOR = &H1508&
  346. Global Const GL_EQUIV = &H1509&
  347. Global Const GL_INVERT = &H150A&
  348. Global Const GL_OR_REVERSE = &H150B&
  349. Global Const GL_COPY_INVERTED = &H150C&
  350. Global Const GL_OR_INVERTED = &H150D&
  351. Global Const GL_NAND = &H150E&
  352. Global Const GL_SET = &H150F&
  353. Global Const GL_EMISSION = &H1600&
  354. Global Const GL_SHININESS = &H1601&
  355. Global Const GL_AMBIENT_AND_DIFFUSE = &H1602&
  356. Global Const GL_COLOR_INDEXES = &H1603&
  357. Global Const GL_MODELVIEW = &H1700&
  358. Global Const GL_PROJECTION = &H1701&
  359. Global Const GL_TEXTURE = &H1702&
  360. Global Const GL_COLOR = &H1800&
  361. Global Const GL_DEPTH = &H1801&
  362. Global Const GL_STENCIL = &H1802&
  363. Global Const GL_COLOR_INDEX = &H1900&
  364. Global Const GL_STENCIL_INDEX = &H1901&
  365. Global Const GL_DEPTH_COMPONENT = &H1902&
  366. Global Const GL_RED = &H1903&
  367. Global Const GL_GREEN = &H1904&
  368. Global Const GL_BLUE = &H1905&
  369. Global Const GL_ALPHA = &H1906&
  370. Global Const GL_RGB = &H1907&
  371. Global Const GL_RGBA = &H1908&
  372. Global Const GL_LUMINANCE = &H1909&
  373. Global Const GL_LUMINANCE_ALPHA = &H190A&
  374. Global Const GL_BITMAP = &H1A00&
  375. Global Const GL_POINT = &H1B00&
  376. Global Const GL_LINE = &H1B01&
  377. Global Const GL_FILL = &H1B02&
  378. Global Const GL_RENDER = &H1C00&
  379. Global Const GL_FEEDBACK = &H1C01&
  380. Global Const GL_SELECT = &H1C02&
  381. Global Const GL_FLAT = &H1D00&
  382. Global Const GL_SMOOTH = &H1D01&
  383. Global Const GL_KEEP = &H1E00&
  384. Global Const GL_REPLACE = &H1E01&
  385. Global Const GL_INCR = &H1E02&
  386. Global Const GL_DECR = &H1E03&
  387. Global Const GL_VENDOR = &H1F00&
  388. Global Const GL_RENDERER = &H1F01&
  389. Global Const GL_VERSION = &H1F02&
  390. Global Const GL_EXTENSIONS = &H1F03&
  391. Global Const GL_S = &H2000&
  392. Global Const GL_ENABLE_BIT = &H2000&
  393. Global Const GL_T = &H2001&
  394. Global Const GL_R = &H2002&
  395. Global Const GL_Q = &H2003&
  396. Global Const GL_MODULATE = &H2100&
  397. Global Const GL_DECAL = &H2101&
  398. Global Const GL_TEXTURE_ENV_MODE = &H2200&
  399. Global Const GL_TEXTURE_ENV_COLOR = &H2201&
  400. Global Const GL_TEXTURE_ENV = &H2300&
  401. Global Const GL_EYE_LINEAR = &H2400&
  402. Global Const GL_OBJECT_LINEAR = &H2401&
  403. Global Const GL_SPHERE_MAP = &H2402&
  404. Global Const GL_TEXTURE_GEN_MODE = &H2500&
  405. Global Const GL_OBJECT_PLANE = &H2501&
  406. Global Const GL_EYE_PLANE = &H2502&
  407. Global Const GL_NEAREST = &H2600&
  408. Global Const GL_LINEAR = &H2601&
  409. Global Const GL_NEAREST_MIPMAP_NEAREST = &H2700&
  410. Global Const GL_LINEAR_MIPMAP_NEAREST = &H2701&
  411. Global Const GL_NEAREST_MIPMAP_LINEAR = &H2702&
  412. Global Const GL_LINEAR_MIPMAP_LINEAR = &H2703&
  413. Global Const GL_TEXTURE_MAG_FILTER = &H2800&
  414. Global Const GL_TEXTURE_MIN_FILTER = &H2801&
  415. Global Const GL_TEXTURE_WRAP_S = &H2802&
  416. Global Const GL_TEXTURE_WRAP_T = &H2803&
  417. Global Const GL_CLAMP = &H2900&
  418. Global Const GL_REPEAT = &H2901&
  419. Global Const GL_POLYGON_OFFSET_UNITS = &H2A00&
  420. Global Const GL_POLYGON_OFFSET_POINT = &H2A01&
  421. Global Const GL_POLYGON_OFFSET_LINE = &H2A02&
  422. Global Const GL_R3_G3_B2 = &H2A10&
  423. Global Const GL_V2F = &H2A20&
  424. Global Const GL_V3F = &H2A21&
  425. Global Const GL_C4UB_V2F = &H2A22&
  426. Global Const GL_C4UB_V3F = &H2A23&
  427. Global Const GL_C3F_V3F = &H2A24&
  428. Global Const GL_N3F_V3F = &H2A25&
  429. Global Const GL_C4F_N3F_V3F = &H2A26&
  430. Global Const GL_T2F_V3F = &H2A27&
  431. Global Const GL_T4F_V4F = &H2A28&
  432. Global Const GL_T2F_C4UB_V3F = &H2A29&
  433. Global Const GL_T2F_C3F_V3F = &H2A2A&
  434. Global Const GL_T2F_N3F_V3F = &H2A2B&
  435. Global Const GL_T2F_C4F_N3F_V3F = &H2A2C&
  436. Global Const GL_T4F_C4F_N3F_V4F = &H2A2D&
  437. Global Const GL_CLIP_PLANE0 = &H3000&
  438. Global Const GL_CLIP_PLANE1 = &H3001&
  439. Global Const GL_CLIP_PLANE2 = &H3002&
  440. Global Const GL_CLIP_PLANE3 = &H3003&
  441. Global Const GL_CLIP_PLANE4 = &H3004&
  442. Global Const GL_CLIP_PLANE5 = &H3005&
  443. Global Const GL_LIGHT0 = &H4000&
  444. Global Const GL_COLOR_BUFFER_BIT = &H4000&
  445. Global Const GL_LIGHT1 = &H4001&
  446. Global Const GL_LIGHT2 = &H4002&
  447. Global Const GL_LIGHT3 = &H4003&
  448. Global Const GL_LIGHT4 = &H4004&
  449. Global Const GL_LIGHT5 = &H4005&
  450. Global Const GL_LIGHT6 = &H4006&
  451. Global Const GL_LIGHT7 = &H4007&
  452. Global Const GL_HINT_BIT = &H8000&
  453. Global Const GL_POLYGON_OFFSET_FILL = &H8037&
  454. Global Const GL_POLYGON_OFFSET_FACTOR = &H8038&
  455. Global Const GL_ALPHA4 = &H803B&
  456. Global Const GL_ALPHA8 = &H803C&
  457. Global Const GL_ALPHA12 = &H803D&
  458. Global Const GL_ALPHA16 = &H803E&
  459. Global Const GL_LUMINANCE4 = &H803F&
  460. Global Const GL_LUMINANCE8 = &H8040&
  461. Global Const GL_LUMINANCE12 = &H8041&
  462. Global Const GL_LUMINANCE16 = &H8042&
  463. Global Const GL_LUMINANCE4_ALPHA4 = &H8043&
  464. Global Const GL_LUMINANCE6_ALPHA2 = &H8044&
  465. Global Const GL_LUMINANCE8_ALPHA8 = &H8045&
  466. Global Const GL_LUMINANCE12_ALPHA4 = &H8046&
  467. Global Const GL_LUMINANCE12_ALPHA12 = &H8047&
  468. Global Const GL_LUMINANCE16_ALPHA16 = &H8048&
  469. Global Const GL_INTENSITY = &H8049&
  470. Global Const GL_INTENSITY4 = &H804A&
  471. Global Const GL_INTENSITY8 = &H804B&
  472. Global Const GL_INTENSITY12 = &H804C&
  473. Global Const GL_INTENSITY16 = &H804D&
  474. Global Const GL_RGB4 = &H804F&
  475. Global Const GL_RGB5 = &H8050&
  476. Global Const GL_RGB8 = &H8051&
  477. Global Const GL_RGB10 = &H8052&
  478. Global Const GL_RGB12 = &H8053&
  479. Global Const GL_RGB16 = &H8054&
  480. Global Const GL_RGBA2 = &H8055&
  481. Global Const GL_RGBA4 = &H8056&
  482. Global Const GL_RGB5_A1 = &H8057&
  483. Global Const GL_RGBA8 = &H8058&
  484. Global Const GL_RGB10_A2 = &H8059&
  485. Global Const GL_RGBA12 = &H805A&
  486. Global Const GL_RGBA16 = &H805B&
  487. Global Const GL_TEXTURE_RED_SIZE = &H805C&
  488. Global Const GL_TEXTURE_GREEN_SIZE = &H805D&
  489. Global Const GL_TEXTURE_BLUE_SIZE = &H805E&
  490. Global Const GL_TEXTURE_ALPHA_SIZE = &H805F&
  491. Global Const GL_TEXTURE_LUMINANCE_SIZE = &H8060&
  492. Global Const GL_TEXTURE_INTENSITY_SIZE = &H8061&
  493. Global Const GL_PROXY_TEXTURE_1D = &H8063&
  494. Global Const GL_PROXY_TEXTURE_2D = &H8064&
  495. Global Const GL_TEXTURE_PRIORITY = &H8066&
  496. Global Const GL_TEXTURE_RESIDENT = &H8067&
  497. Global Const GL_TEXTURE_BINDING_1D = &H8068&
  498. Global Const GL_TEXTURE_BINDING_2D = &H8069&
  499. Global Const GL_VERTEX_ARRAY = &H8074&
  500. Global Const GL_NORMAL_ARRAY = &H8075&
  501. Global Const GL_COLOR_ARRAY = &H8076&
  502. Global Const GL_INDEX_ARRAY = &H8077&
  503. Global Const GL_TEXTURE_COORD_ARRAY = &H8078&
  504. Global Const GL_EDGE_FLAG_ARRAY = &H8079&
  505. Global Const GL_VERTEX_ARRAY_SIZE = &H807A&
  506. Global Const GL_VERTEX_ARRAY_TYPE = &H807B&
  507. Global Const GL_VERTEX_ARRAY_STRIDE = &H807C&
  508. Global Const GL_NORMAL_ARRAY_TYPE = &H807E&
  509. Global Const GL_NORMAL_ARRAY_STRIDE = &H807F&
  510. Global Const GL_COLOR_ARRAY_SIZE = &H8081&
  511. Global Const GL_COLOR_ARRAY_TYPE = &H8082&
  512. Global Const GL_COLOR_ARRAY_STRIDE = &H8083&
  513. Global Const GL_INDEX_ARRAY_TYPE = &H8085&
  514. Global Const GL_INDEX_ARRAY_STRIDE = &H8086&
  515. Global Const GL_TEXTURE_COORD_ARRAY_SIZE = &H8088&
  516. Global Const GL_TEXTURE_COORD_ARRAY_TYPE = &H8089&
  517. Global Const GL_TEXTURE_COORD_ARRAY_STRIDE = &H808A&
  518. Global Const GL_EDGE_FLAG_ARRAY_STRIDE = &H808C&
  519. Global Const GL_VERTEX_ARRAY_POINTER = &H808E&
  520. Global Const GL_NORMAL_ARRAY_POINTER = &H808F&
  521. Global Const GL_COLOR_ARRAY_POINTER = &H8090&
  522. Global Const GL_INDEX_ARRAY_POINTER = &H8091&
  523. Global Const GL_TEXTURE_COORD_ARRAY_POINTER = &H8092&
  524. Global Const GL_EDGE_FLAG_ARRAY_POINTER = &H8093&
  525. Global Const GL_COLOR_INDEX1_EXT = &H80E2&
  526. Global Const GL_COLOR_INDEX2_EXT = &H80E3&
  527. Global Const GL_COLOR_INDEX4_EXT = &H80E4&
  528. Global Const GL_COLOR_INDEX8_EXT = &H80E5&
  529. Global Const GL_COLOR_INDEX12_EXT = &H80E6&
  530. Global Const GL_COLOR_INDEX16_EXT = &H80E7&
  531. Global Const GL_EVAL_BIT = &H10000
  532. Global Const GL_LIST_BIT = &H20000
  533. Global Const GL_TEXTURE_BIT = &H40000
  534. Global Const GL_SCISSOR_BIT = &H80000
  535. Global Const GL_ALL_ATTRIB_BITS = &HFFFFF
  536. Global Const GL_CLIENT_ALL_ATTRIB_BITS = &HFFFFFFFF

  537. Global Const GL_VERSION_1_2 = 1&

  538. Global Const GL_SMOOTH_POINT_SIZE_RANGE = &HB12&
  539. Global Const GL_SMOOTH_POINT_SIZE_GRANULARITY = &HB13&
  540. Global Const GL_SMOOTH_LINE_WIDTH_RANGE = &HB22&
  541. Global Const GL_SMOOTH_LINE_WIDTH_GRANULARITY = &HB23&
  542. Global Const GL_UNSIGNED_BYTE_3_3_2 = &H8032&
  543. Global Const GL_UNSIGNED_SHORT_4_4_4_4 = &H8033&
  544. Global Const GL_UNSIGNED_SHORT_5_5_5_1 = &H8034&
  545. Global Const GL_UNSIGNED_INT_8_8_8_8 = &H8035&
  546. Global Const GL_UNSIGNED_INT_10_10_10_2 = &H8036&
  547. Global Const GL_RESCALE_NORMAL = &H803A&
  548. Global Const GL_TEXTURE_BINDING_3D = &H806A&
  549. Global Const GL_PACK_SKIP_IMAGES = &H806B&
  550. Global Const GL_PACK_IMAGE_HEIGHT = &H806C&
  551. Global Const GL_UNPACK_SKIP_IMAGES = &H806D&
  552. Global Const GL_UNPACK_IMAGE_HEIGHT = &H806E&
  553. Global Const GL_TEXTURE_3D = &H806F&
  554. Global Const GL_PROXY_TEXTURE_3D = &H8070&
  555. Global Const GL_TEXTURE_DEPTH = &H8071&
  556. Global Const GL_TEXTURE_WRAP_R = &H8072&
  557. Global Const GL_MAX_3D_TEXTURE_SIZE = &H8073&
  558. Global Const GL_BGR = &H80E0&
  559. Global Const GL_BGRA = &H80E1&
  560. Global Const GL_MAX_ELEMENTS_VERTICES = &H80E8&
  561. Global Const GL_MAX_ELEMENTS_INDICES = &H80E9&
  562. Global Const GL_CLAMP_TO_EDGE = &H812F&
  563. Global Const GL_TEXTURE_MIN_LOD = &H813A&
  564. Global Const GL_TEXTURE_MAX_LOD = &H813B&
  565. Global Const GL_TEXTURE_BASE_LEVEL = &H813C&
  566. Global Const GL_TEXTURE_MAX_LEVEL = &H813D&
  567. Global Const GL_LIGHT_MODEL_COLOR_CONTROL = &H81F8&
  568. Global Const GL_SINGLE_COLOR = &H81F9&
  569. Global Const GL_SEPARATE_SPECULAR_COLOR = &H81FA&
  570. Global Const GL_UNSIGNED_BYTE_2_3_3_REV = &H8362&
  571. Global Const GL_UNSIGNED_SHORT_5_6_5 = &H8363&
  572. Global Const GL_UNSIGNED_SHORT_5_6_5_REV = &H8364&
  573. Global Const GL_UNSIGNED_SHORT_4_4_4_4_REV = &H8365&
  574. Global Const GL_UNSIGNED_SHORT_1_5_5_5_REV = &H8366&
  575. Global Const GL_UNSIGNED_INT_8_8_8_8_REV = &H8367&
  576. Global Const GL_ALIASED_POINT_SIZE_RANGE = &H846D&
  577. Global Const GL_ALIASED_LINE_WIDTH_RANGE = &H846E&

  578. Global Const GL_VERSION_1_3 = 1&

  579. Global Const GL_MULTISAMPLE = &H809D&
  580. Global Const GL_SAMPLE_ALPHA_TO_COVERAGE = &H809E&
  581. Global Const GL_SAMPLE_ALPHA_TO_ONE = &H809F&
  582. Global Const GL_SAMPLE_COVERAGE = &H80A0&
  583. Global Const GL_SAMPLE_BUFFERS = &H80A8&
  584. Global Const GL_SAMPLES = &H80A9&
  585. Global Const GL_SAMPLE_COVERAGE_VALUE = &H80AA&
  586. Global Const GL_SAMPLE_COVERAGE_INVERT = &H80AB&
  587. Global Const GL_CLAMP_TO_BORDER = &H812D&
  588. Global Const GL_TEXTURE0 = &H84C0&
  589. Global Const GL_TEXTURE1 = &H84C1&
  590. Global Const GL_TEXTURE2 = &H84C2&
  591. Global Const GL_TEXTURE3 = &H84C3&
  592. Global Const GL_TEXTURE4 = &H84C4&
  593. Global Const GL_TEXTURE5 = &H84C5&
  594. Global Const GL_TEXTURE6 = &H84C6&
  595. Global Const GL_TEXTURE7 = &H84C7&
  596. Global Const GL_TEXTURE8 = &H84C8&
  597. Global Const GL_TEXTURE9 = &H84C9&
  598. Global Const GL_TEXTURE10 = &H84CA&
  599. Global Const GL_TEXTURE11 = &H84CB&
  600. Global Const GL_TEXTURE12 = &H84CC&
  601. Global Const GL_TEXTURE13 = &H84CD&
  602. Global Const GL_TEXTURE14 = &H84CE&
  603. Global Const GL_TEXTURE15 = &H84CF&
  604. Global Const GL_TEXTURE16 = &H84D0&
  605. Global Const GL_TEXTURE17 = &H84D1&
  606. Global Const GL_TEXTURE18 = &H84D2&
  607. Global Const GL_TEXTURE19 = &H84D3&
  608. Global Const GL_TEXTURE20 = &H84D4&
  609. Global Const GL_TEXTURE21 = &H84D5&
  610. Global Const GL_TEXTURE22 = &H84D6&
  611. Global Const GL_TEXTURE23 = &H84D7&
  612. Global Const GL_TEXTURE24 = &H84D8&
  613. Global Const GL_TEXTURE25 = &H84D9&
  614. Global Const GL_TEXTURE26 = &H84DA&
  615. Global Const GL_TEXTURE27 = &H84DB&
  616. Global Const GL_TEXTURE28 = &H84DC&
  617. Global Const GL_TEXTURE29 = &H84DD&
  618. Global Const GL_TEXTURE30 = &H84DE&
  619. Global Const GL_TEXTURE31 = &H84DF&
  620. Global Const GL_ACTIVE_TEXTURE = &H84E0&
  621. Global Const GL_CLIENT_ACTIVE_TEXTURE = &H84E1&
  622. Global Const GL_MAX_TEXTURE_UNITS = &H84E2&
  623. Global Const GL_TRANSPOSE_MODELVIEW_MATRIX = &H84E3&
  624. Global Const GL_TRANSPOSE_PROJECTION_MATRIX = &H84E4&
  625. Global Const GL_TRANSPOSE_TEXTURE_MATRIX = &H84E5&
  626. Global Const GL_TRANSPOSE_COLOR_MATRIX = &H84E6&
  627. Global Const GL_SUBTRACT = &H84E7&
  628. Global Const GL_COMPRESSED_ALPHA = &H84E9&
  629. Global Const GL_COMPRESSED_LUMINANCE = &H84EA&
  630. Global Const GL_COMPRESSED_LUMINANCE_ALPHA = &H84EB&
  631. Global Const GL_COMPRESSED_INTENSITY = &H84EC&
  632. Global Const GL_COMPRESSED_RGB = &H84ED&
  633. Global Const GL_COMPRESSED_RGBA = &H84EE&
  634. Global Const GL_TEXTURE_COMPRESSION_HINT = &H84EF&
  635. Global Const GL_NORMAL_MAP = &H8511&
  636. Global Const GL_REFLECTION_MAP = &H8512&
  637. Global Const GL_TEXTURE_CUBE_MAP = &H8513&
  638. Global Const GL_TEXTURE_BINDING_CUBE_MAP = &H8514&
  639. Global Const GL_TEXTURE_CUBE_MAP_POSITIVE_X = &H8515&
  640. Global Const GL_TEXTURE_CUBE_MAP_NEGATIVE_X = &H8516&
  641. Global Const GL_TEXTURE_CUBE_MAP_POSITIVE_Y = &H8517&
  642. Global Const GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = &H8518&
  643. Global Const GL_TEXTURE_CUBE_MAP_POSITIVE_Z = &H8519&
  644. Global Const GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = &H851A&
  645. Global Const GL_PROXY_TEXTURE_CUBE_MAP = &H851B&
  646. Global Const GL_MAX_CUBE_MAP_TEXTURE_SIZE = &H851C&
  647. Global Const GL_COMBINE = &H8570&
  648. Global Const GL_COMBINE_RGB = &H8571&
  649. Global Const GL_COMBINE_ALPHA = &H8572&
  650. Global Const GL_RGB_SCALE = &H8573&
  651. Global Const GL_ADD_SIGNED = &H8574&
  652. Global Const GL_INTERPOLATE = &H8575&
  653. Global Const GL_CONSTANT = &H8576&
  654. Global Const GL_PRIMARY_COLOR = &H8577&
  655. Global Const GL_PREVIOUS = &H8578&
  656. Global Const GL_SOURCE0_RGB = &H8580&
  657. Global Const GL_SOURCE1_RGB = &H8581&
  658. Global Const GL_SOURCE2_RGB = &H8582&
  659. Global Const GL_SOURCE0_ALPHA = &H8588&
  660. Global Const GL_SOURCE1_ALPHA = &H8589&
  661. Global Const GL_SOURCE2_ALPHA = &H858A&
  662. Global Const GL_OPERAND0_RGB = &H8590&
  663. Global Const GL_OPERAND1_RGB = &H8591&
  664. Global Const GL_OPERAND2_RGB = &H8592&
  665. Global Const GL_OPERAND0_ALPHA = &H8598&
  666. Global Const GL_OPERAND1_ALPHA = &H8599&
  667. Global Const GL_OPERAND2_ALPHA = &H859A&
  668. Global Const GL_TEXTURE_COMPRESSED_IMAGE_SIZE = &H86A0&
  669. Global Const GL_TEXTURE_COMPRESSED = &H86A1&
  670. Global Const GL_NUM_COMPRESSED_TEXTURE_FORMATS = &H86A2&
  671. Global Const GL_COMPRESSED_TEXTURE_FORMATS = &H86A3&
  672. Global Const GL_DOT3_RGB = &H86AE&
  673. Global Const GL_DOT3_RGBA = &H86AF&
  674. Global Const GL_MULTISAMPLE_BIT = &H20000000

  675. Global Const GL_VERSION_1_4 = 1&

  676. Global Const GL_BLEND_DST_RGB = &H80C8&
  677. Global Const GL_BLEND_SRC_RGB = &H80C9&
  678. Global Const GL_BLEND_DST_ALPHA = &H80CA&
  679. Global Const GL_BLEND_SRC_ALPHA = &H80CB&
  680. Global Const GL_POINT_SIZE_MIN = &H8126&
  681. Global Const GL_POINT_SIZE_MAX = &H8127&
  682. Global Const GL_POINT_FADE_THRESHOLD_SIZE = &H8128&
  683. Global Const GL_POINT_DISTANCE_ATTENUATION = &H8129&
  684. Global Const GL_GENERATE_MIPMAP = &H8191&
  685. Global Const GL_GENERATE_MIPMAP_HINT = &H8192&
  686. Global Const GL_DEPTH_COMPONENT16 = &H81A5&
  687. Global Const GL_DEPTH_COMPONENT24 = &H81A6&
  688. Global Const GL_DEPTH_COMPONENT32 = &H81A7&
  689. Global Const GL_MIRRORED_REPEAT = &H8370&
  690. Global Const GL_FOG_COORDINATE_SOURCE = &H8450&
  691. Global Const GL_FOG_COORDINATE = &H8451&
  692. Global Const GL_FRAGMENT_DEPTH = &H8452&
  693. Global Const GL_CURRENT_FOG_COORDINATE = &H8453&
  694. Global Const GL_FOG_COORDINATE_ARRAY_TYPE = &H8454&
  695. Global Const GL_FOG_COORDINATE_ARRAY_STRIDE = &H8455&
  696. Global Const GL_FOG_COORDINATE_ARRAY_POINTER = &H8456&
  697. Global Const GL_FOG_COORDINATE_ARRAY = &H8457&
  698. Global Const GL_COLOR_SUM = &H8458&
  699. Global Const GL_CURRENT_SECONDARY_COLOR = &H8459&
  700. Global Const GL_SECONDARY_COLOR_ARRAY_SIZE = &H845A&
  701. Global Const GL_SECONDARY_COLOR_ARRAY_TYPE = &H845B&
  702. Global Const GL_SECONDARY_COLOR_ARRAY_STRIDE = &H845C&
  703. Global Const GL_SECONDARY_COLOR_ARRAY_POINTER = &H845D&
  704. Global Const GL_SECONDARY_COLOR_ARRAY = &H845E&
  705. Global Const GL_MAX_TEXTURE_LOD_BIAS = &H84FD&
  706. Global Const GL_TEXTURE_FILTER_CONTROL = &H8500&
  707. Global Const GL_TEXTURE_LOD_BIAS = &H8501&
  708. Global Const GL_INCR_WRAP = &H8507&
  709. Global Const GL_DECR_WRAP = &H8508&
  710. Global Const GL_TEXTURE_DEPTH_SIZE = &H884A&
  711. Global Const GL_DEPTH_TEXTURE_MODE = &H884B&
  712. Global Const GL_TEXTURE_COMPARE_MODE = &H884C&
  713. Global Const GL_TEXTURE_COMPARE_FUNC = &H884D&
  714. Global Const GL_COMPARE_R_TO_TEXTURE = &H884E&

  715. Global Const GL_VERSION_1_5 = 1&

  716. Global Const GL_CURRENT_FOG_COORD = GL_CURRENT_FOG_COORDINATE&
  717. Global Const GL_FOG_COORD = GL_FOG_COORDINATE&
  718. Global Const GL_FOG_COORD_ARRAY = GL_FOG_COORDINATE_ARRAY&
  719. Global Const GL_FOG_COORD_ARRAY_POINTER = GL_FOG_COORDINATE_ARRAY_POINTER&
  720. Global Const GL_FOG_COORD_ARRAY_STRIDE = GL_FOG_COORDINATE_ARRAY_STRIDE&
  721. Global Const GL_FOG_COORD_ARRAY_TYPE = GL_FOG_COORDINATE_ARRAY_TYPE&
  722. Global Const GL_FOG_COORD_SRC = GL_FOG_COORDINATE_SOURCE&
  723. Global Const GL_SRC0_ALPHA = GL_SOURCE0_ALPHA&
  724. Global Const GL_SRC0_RGB = GL_SOURCE0_RGB&
  725. Global Const GL_SRC1_ALPHA = GL_SOURCE1_ALPHA&
  726. Global Const GL_SRC1_RGB = GL_SOURCE1_RGB&
  727. Global Const GL_SRC2_ALPHA = GL_SOURCE2_ALPHA&
  728. Global Const GL_SRC2_RGB = GL_SOURCE2_RGB&
  729. Global Const GL_BUFFER_SIZE = &H8764&
  730. Global Const GL_BUFFER_USAGE = &H8765&
  731. Global Const GL_QUERY_COUNTER_BITS = &H8864&
  732. Global Const GL_CURRENT_QUERY = &H8865&
  733. Global Const GL_QUERY_RESULT = &H8866&
  734. Global Const GL_QUERY_RESULT_AVAILABLE = &H8867&
  735. Global Const GL_ARRAY_BUFFER = &H8892&
  736. Global Const GL_ELEMENT_ARRAY_BUFFER = &H8893&
  737. Global Const GL_ARRAY_BUFFER_BINDING = &H8894&
  738. Global Const GL_ELEMENT_ARRAY_BUFFER_BINDING = &H8895&
  739. Global Const GL_VERTEX_ARRAY_BUFFER_BINDING = &H8896&
  740. Global Const GL_NORMAL_ARRAY_BUFFER_BINDING = &H8897&
  741. Global Const GL_COLOR_ARRAY_BUFFER_BINDING = &H8898&
  742. Global Const GL_INDEX_ARRAY_BUFFER_BINDING = &H8899&
  743. Global Const GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = &H889A&
  744. Global Const GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = &H889B&
  745. Global Const GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = &H889C&
  746. Global Const GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = &H889D&
  747. Global Const GL_FOG_COORD_ARRAY_BUFFER_BINDING = GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING&
  748. Global Const GL_WEIGHT_ARRAY_BUFFER_BINDING = &H889E&
  749. Global Const GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = &H889F&
  750. Global Const GL_READ_ONLY = &H88B8&
  751. Global Const GL_WRITE_ONLY = &H88B9&
  752. Global Const GL_READ_WRITE = &H88BA&
  753. Global Const GL_BUFFER_ACCESS = &H88BB&
  754. Global Const GL_BUFFER_MAPPED = &H88BC&
  755. Global Const GL_BUFFER_MAP_POINTER = &H88BD&
  756. Global Const GL_STREAM_DRAW = &H88E0&
  757. Global Const GL_STREAM_READ = &H88E1&
  758. Global Const GL_STREAM_COPY = &H88E2&
  759. Global Const GL_STATIC_DRAW = &H88E4&
  760. Global Const GL_STATIC_READ = &H88E5&
  761. Global Const GL_STATIC_COPY = &H88E6&
  762. Global Const GL_DYNAMIC_DRAW = &H88E8&
  763. Global Const GL_DYNAMIC_READ = &H88E9&
  764. Global Const GL_DYNAMIC_COPY = &H88EA&
  765. Global Const GL_SAMPLES_PASSED = &H8914&

  766. Global Const GL_VERSION_2_0 = 1&

  767. Global Const GL_BLEND_EQUATION_RGB = GL_BLEND_EQUATION
  768. Global Const GL_VERTEX_ATTRIB_ARRAY_ENABLED = &H8622&
  769. Global Const GL_VERTEX_ATTRIB_ARRAY_SIZE = &H8623&
  770. Global Const GL_VERTEX_ATTRIB_ARRAY_STRIDE = &H8624&
  771. Global Const GL_VERTEX_ATTRIB_ARRAY_TYPE = &H8625&
  772. Global Const GL_CURRENT_VERTEX_ATTRIB = &H8626&
  773. Global Const GL_VERTEX_PROGRAM_POINT_SIZE = &H8642&
  774. Global Const GL_VERTEX_PROGRAM_TWO_SIDE = &H8643&
  775. Global Const GL_VERTEX_ATTRIB_ARRAY_POINTER = &H8645&
  776. Global Const GL_STENCIL_BACK_FUNC = &H8800&
  777. Global Const GL_STENCIL_BACK_FAIL = &H8801&
  778. Global Const GL_STENCIL_BACK_PASS_DEPTH_FAIL = &H8802&
  779. Global Const GL_STENCIL_BACK_PASS_DEPTH_PASS = &H8803&
  780. Global Const GL_MAX_DRAW_BUFFERS = &H8824&
  781. Global Const GL_DRAW_BUFFER0 = &H8825&
  782. Global Const GL_DRAW_BUFFER1 = &H8826&
  783. Global Const GL_DRAW_BUFFER2 = &H8827&
  784. Global Const GL_DRAW_BUFFER3 = &H8828&
  785. Global Const GL_DRAW_BUFFER4 = &H8829&
  786. Global Const GL_DRAW_BUFFER5 = &H882A&
  787. Global Const GL_DRAW_BUFFER6 = &H882B&
  788. Global Const GL_DRAW_BUFFER7 = &H882C&
  789. Global Const GL_DRAW_BUFFER8 = &H882D&
  790. Global Const GL_DRAW_BUFFER9 = &H882E&
  791. Global Const GL_DRAW_BUFFER10 = &H882F&
  792. Global Const GL_DRAW_BUFFER11 = &H8830&
  793. Global Const GL_DRAW_BUFFER12 = &H8831&
  794. Global Const GL_DRAW_BUFFER13 = &H8832&
  795. Global Const GL_DRAW_BUFFER14 = &H8833&
  796. Global Const GL_DRAW_BUFFER15 = &H8834&
  797. Global Const GL_BLEND_EQUATION_ALPHA = &H883D&
  798. Global Const GL_POINT_SPRITE = &H8861&
  799. Global Const GL_COORD_REPLACE = &H8862&
  800. Global Const GL_MAX_VERTEX_ATTRIBS = &H8869&
  801. Global Const GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = &H886A&
  802. Global Const GL_MAX_TEXTURE_COORDS = &H8871&
  803. Global Const GL_MAX_TEXTURE_IMAGE_UNITS = &H8872&
  804. Global Const GL_FRAGMENT_SHADER = &H8B30&
  805. Global Const GL_VERTEX_SHADER = &H8B31&
  806. Global Const GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = &H8B49&
  807. Global Const GL_MAX_VERTEX_UNIFORM_COMPONENTS = &H8B4A&
  808. Global Const GL_MAX_VARYING_FLOATS = &H8B4B&
  809. Global Const GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = &H8B4C&
  810. Global Const GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = &H8B4D&
  811. Global Const GL_SHADER_TYPE = &H8B4F&
  812. Global Const GL_FLOAT_VEC2 = &H8B50&
  813. Global Const GL_FLOAT_VEC3 = &H8B51&
  814. Global Const GL_FLOAT_VEC4 = &H8B52&
  815. Global Const GL_INT_VEC2 = &H8B53&
  816. Global Const GL_INT_VEC3 = &H8B54&
  817. Global Const GL_INT_VEC4 = &H8B55&
  818. Global Const GL_BOOL = &H8B56&
  819. Global Const GL_BOOL_VEC2 = &H8B57&
  820. Global Const GL_BOOL_VEC3 = &H8B58&
  821. Global Const GL_BOOL_VEC4 = &H8B59&
  822. Global Const GL_FLOAT_MAT2 = &H8B5A&
  823. Global Const GL_FLOAT_MAT3 = &H8B5B&
  824. Global Const GL_FLOAT_MAT4 = &H8B5C&
  825. Global Const GL_SAMPLER_1D = &H8B5D&
  826. Global Const GL_SAMPLER_2D = &H8B5E&
  827. Global Const GL_SAMPLER_3D = &H8B5F&
  828. Global Const GL_SAMPLER_CUBE = &H8B60&
  829. Global Const GL_SAMPLER_1D_SHADOW = &H8B61&
  830. Global Const GL_SAMPLER_2D_SHADOW = &H8B62&
  831. Global Const GL_DELETE_STATUS = &H8B80&
  832. Global Const GL_COMPILE_STATUS = &H8B81&
  833. Global Const GL_LINK_STATUS = &H8B82&
  834. Global Const GL_VALIDATE_STATUS = &H8B83&
  835. Global Const GL_INFO_LOG_LENGTH = &H8B84&
  836. Global Const GL_ATTACHED_SHADERS = &H8B85&
  837. Global Const GL_ACTIVE_UNIFORMS = &H8B86&
  838. Global Const GL_ACTIVE_UNIFORM_MAX_LENGTH = &H8B87&
  839. Global Const GL_SHADER_SOURCE_LENGTH = &H8B88&
  840. Global Const GL_ACTIVE_ATTRIBUTES = &H8B89&
  841. Global Const GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = &H8B8A&
  842. Global Const GL_FRAGMENT_SHADER_DERIVATIVE_HINT = &H8B8B&
  843. Global Const GL_SHADING_LANGUAGE_VERSION = &H8B8C&
  844. Global Const GL_CURRENT_PROGRAM = &H8B8D&
  845. Global Const GL_POINT_SPRITE_COORD_ORIGIN = &H8CA0&
  846. Global Const GL_LOWER_LEFT = &H8CA1&
  847. Global Const GL_UPPER_LEFT = &H8CA2&
  848. Global Const GL_STENCIL_BACK_REF = &H8CA3&
  849. Global Const GL_STENCIL_BACK_VALUE_MASK = &H8CA4&
  850. Global Const GL_STENCIL_BACK_WRITEMASK = &H8CA5&

  851. Global Const GL_VERSION_2_1 = 1&

  852. Global Const GL_CURRENT_RASTER_SECONDARY_COLOR = &H845F&
  853. Global Const GL_PIXEL_PACK_BUFFER = &H88EB&
  854. Global Const GL_PIXEL_UNPACK_BUFFER = &H88EC&
  855. Global Const GL_PIXEL_PACK_BUFFER_BINDING = &H88ED&
  856. Global Const GL_PIXEL_UNPACK_BUFFER_BINDING = &H88EF&
  857. Global Const GL_FLOAT_MAT2x3 = &H8B65&
  858. Global Const GL_FLOAT_MAT2x4 = &H8B66&
  859. Global Const GL_FLOAT_MAT3x2 = &H8B67&
  860. Global Const GL_FLOAT_MAT3x4 = &H8B68&
  861. Global Const GL_FLOAT_MAT4x2 = &H8B69&
  862. Global Const GL_FLOAT_MAT4x3 = &H8B6A&
  863. Global Const GL_SRGB = &H8C40&
  864. Global Const GL_SRGB8 = &H8C41&
  865. Global Const GL_SRGB_ALPHA = &H8C42&
  866. Global Const GL_SRGB8_ALPHA8 = &H8C43&
  867. Global Const GL_SLUMINANCE_ALPHA = &H8C44&
  868. Global Const GL_SLUMINANCE8_ALPHA8 = &H8C45&
  869. Global Const GL_SLUMINANCE = &H8C46&
  870. Global Const GL_SLUMINANCE8 = &H8C47&
  871. Global Const GL_COMPRESSED_SRGB = &H8C48&
  872. Global Const GL_COMPRESSED_SRGB_ALPHA = &H8C49&
  873. Global Const GL_COMPRESSED_SLUMINANCE = &H8C4A&
  874. Global Const GL_COMPRESSED_SLUMINANCE_ALPHA = &H8C4B&

  875. Global Const GL_VERSION_3_0 = 1&

  876. Global Const GL_CLIP_DISTANCE0 = GL_CLIP_PLANE0&
  877. Global Const GL_CLIP_DISTANCE1 = GL_CLIP_PLANE1&
  878. Global Const GL_CLIP_DISTANCE2 = GL_CLIP_PLANE2&
  879. Global Const GL_CLIP_DISTANCE3 = GL_CLIP_PLANE3&
  880. Global Const GL_CLIP_DISTANCE4 = GL_CLIP_PLANE4&
  881. Global Const GL_CLIP_DISTANCE5 = GL_CLIP_PLANE5&
  882. Global Const GL_COMPARE_REF_TO_TEXTURE = &H884E&
  883. Global Const GL_MAX_CLIP_DISTANCES = GL_MAX_CLIP_PLANES&
  884. Global Const GL_MAX_VARYING_COMPONENTS = GL_MAX_VARYING_FLOATS&
  885. Global Const GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = &H1&
  886. Global Const GL_MAJOR_VERSION = &H821B&
  887. Global Const GL_MINOR_VERSION = &H821C&
  888. Global Const GL_NUM_EXTENSIONS = &H821D&
  889. Global Const GL_CONTEXT_FLAGS = &H821E&
  890. Global Const GL_DEPTH_BUFFER = &H8223&
  891. Global Const GL_STENCIL_BUFFER = &H8224&
  892. Global Const GL_RGBA32F = &H8814&
  893. Global Const GL_RGB32F = &H8815&
  894. Global Const GL_RGBA16F = &H881A&
  895. Global Const GL_RGB16F = &H881B&
  896. Global Const GL_VERTEX_ATTRIB_ARRAY_INTEGER = &H88FD&
  897. Global Const GL_MAX_ARRAY_TEXTURE_LAYERS = &H88FF&
  898. Global Const GL_MIN_PROGRAM_TEXEL_OFFSET = &H8904&
  899. Global Const GL_MAX_PROGRAM_TEXEL_OFFSET = &H8905&
  900. Global Const GL_CLAMP_VERTEX_COLOR = &H891A&
  901. Global Const GL_CLAMP_FRAGMENT_COLOR = &H891B&
  902. Global Const GL_CLAMP_READ_COLOR = &H891C&
  903. Global Const GL_FIXED_ONLY = &H891D&
  904. Global Const GL_TEXTURE_RED_TYPE = &H8C10&
  905. Global Const GL_TEXTURE_GREEN_TYPE = &H8C11&
  906. Global Const GL_TEXTURE_BLUE_TYPE = &H8C12&
  907. Global Const GL_TEXTURE_ALPHA_TYPE = &H8C13&
  908. Global Const GL_TEXTURE_LUMINANCE_TYPE = &H8C14&
  909. Global Const GL_TEXTURE_INTENSITY_TYPE = &H8C15&
  910. Global Const GL_TEXTURE_DEPTH_TYPE = &H8C16&
  911. Global Const GL_TEXTURE_1D_ARRAY = &H8C18&
  912. Global Const GL_PROXY_TEXTURE_1D_ARRAY = &H8C19&
  913. Global Const GL_TEXTURE_2D_ARRAY = &H8C1A&
  914. Global Const GL_PROXY_TEXTURE_2D_ARRAY = &H8C1B&
  915. Global Const GL_TEXTURE_BINDING_1D_ARRAY = &H8C1C&
  916. Global Const GL_TEXTURE_BINDING_2D_ARRAY = &H8C1D&
  917. Global Const GL_R11F_G11F_B10F = &H8C3A&
  918. Global Const GL_UNSIGNED_INT_10F_11F_11F_REV = &H8C3B&
  919. Global Const GL_RGB9_E5 = &H8C3D&
  920. Global Const GL_UNSIGNED_INT_5_9_9_9_REV = &H8C3E&
  921. Global Const GL_TEXTURE_SHARED_SIZE = &H8C3F&
  922. Global Const GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = &H8C76&
  923. Global Const GL_TRANSFORM_FEEDBACK_BUFFER_MODE = &H8C7F&
  924. Global Const GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = &H8C80&
  925. Global Const GL_TRANSFORM_FEEDBACK_VARYINGS = &H8C83&
  926. Global Const GL_TRANSFORM_FEEDBACK_BUFFER_START = &H8C84&
  927. Global Const GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = &H8C85&
  928. Global Const GL_PRIMITIVES_GENERATED = &H8C87&
  929. Global Const GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = &H8C88&
  930. Global Const GL_RASTERIZER_DISCARD = &H8C89&
  931. Global Const GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = &H8C8A&
  932. Global Const GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = &H8C8B&
  933. Global Const GL_INTERLEAVED_ATTRIBS = &H8C8C&
  934. Global Const GL_SEPARATE_ATTRIBS = &H8C8D&
  935. Global Const GL_TRANSFORM_FEEDBACK_BUFFER = &H8C8E&
  936. Global Const GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = &H8C8F&
  937. Global Const GL_RGBA32UI = &H8D70&
  938. Global Const GL_RGB32UI = &H8D71&
  939. Global Const GL_RGBA16UI = &H8D76&
  940. Global Const GL_RGB16UI = &H8D77&
  941. Global Const GL_RGBA8UI = &H8D7C&
  942. Global Const GL_RGB8UI = &H8D7D&
  943. Global Const GL_RGBA32I = &H8D82&
  944. Global Const GL_RGB32I = &H8D83&
  945. Global Const GL_RGBA16I = &H8D88&
  946. Global Const GL_RGB16I = &H8D89&
  947. Global Const GL_RGBA8I = &H8D8E&
  948. Global Const GL_RGB8I = &H8D8F&
  949. Global Const GL_RED_INTEGER = &H8D94&
  950. Global Const GL_GREEN_INTEGER = &H8D95&
  951. Global Const GL_BLUE_INTEGER = &H8D96&
  952. Global Const GL_ALPHA_INTEGER = &H8D97&
  953. Global Const GL_RGB_INTEGER = &H8D98&
  954. Global Const GL_RGBA_INTEGER = &H8D99&
  955. Global Const GL_BGR_INTEGER = &H8D9A&
  956. Global Const GL_BGRA_INTEGER = &H8D9B&
  957. Global Const GL_SAMPLER_1D_ARRAY = &H8DC0&
  958. Global Const GL_SAMPLER_2D_ARRAY = &H8DC1&
  959. Global Const GL_SAMPLER_1D_ARRAY_SHADOW = &H8DC3&
  960. Global Const GL_SAMPLER_2D_ARRAY_SHADOW = &H8DC4&
  961. Global Const GL_SAMPLER_CUBE_SHADOW = &H8DC5&
  962. Global Const GL_UNSIGNED_INT_VEC2 = &H8DC6&
  963. Global Const GL_UNSIGNED_INT_VEC3 = &H8DC7&
  964. Global Const GL_UNSIGNED_INT_VEC4 = &H8DC8&
  965. Global Const GL_INT_SAMPLER_1D = &H8DC9&
  966. Global Const GL_INT_SAMPLER_2D = &H8DCA&
  967. Global Const GL_INT_SAMPLER_3D = &H8DCB&
  968. Global Const GL_INT_SAMPLER_CUBE = &H8DCC&
  969. Global Const GL_INT_SAMPLER_1D_ARRAY = &H8DCE&
  970. Global Const GL_INT_SAMPLER_2D_ARRAY = &H8DCF&
  971. Global Const GL_UNSIGNED_INT_SAMPLER_1D = &H8DD1&
  972. Global Const GL_UNSIGNED_INT_SAMPLER_2D = &H8DD2&
  973. Global Const GL_UNSIGNED_INT_SAMPLER_3D = &H8DD3&
  974. Global Const GL_UNSIGNED_INT_SAMPLER_CUBE = &H8DD4&
  975. Global Const GL_UNSIGNED_INT_SAMPLER_1D_ARRAY = &H8DD6&
  976. Global Const GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = &H8DD7&
  977. Global Const GL_QUERY_WAIT = &H8E13&
  978. Global Const GL_QUERY_NO_WAIT = &H8E14&
  979. Global Const GL_QUERY_BY_REGION_WAIT = &H8E15&
  980. Global Const GL_QUERY_BY_REGION_NO_WAIT = &H8E16&

  981. Global Const GL_VERSION_3_1 = 1&

  982. Global Const GL_TEXTURE_RECTANGLE = &H84F5&
  983. Global Const GL_TEXTURE_BINDING_RECTANGLE = &H84F6&
  984. Global Const GL_PROXY_TEXTURE_RECTANGLE = &H84F7&
  985. Global Const GL_MAX_RECTANGLE_TEXTURE_SIZE = &H84F8&
  986. Global Const GL_SAMPLER_2D_RECT = &H8B63&
  987. Global Const GL_SAMPLER_2D_RECT_SHADOW = &H8B64&
  988. Global Const GL_TEXTURE_BUFFER = &H8C2A&
  989. Global Const GL_MAX_TEXTURE_BUFFER_SIZE = &H8C2B&
  990. Global Const GL_TEXTURE_BINDING_BUFFER = &H8C2C&
  991. Global Const GL_TEXTURE_BUFFER_DATA_STORE_BINDING = &H8C2D&
  992. Global Const GL_TEXTURE_BUFFER_FORMAT = &H8C2E&
  993. Global Const GL_SAMPLER_BUFFER = &H8DC2&
  994. Global Const GL_INT_SAMPLER_2D_RECT = &H8DCD&
  995. Global Const GL_INT_SAMPLER_BUFFER = &H8DD0&
  996. Global Const GL_UNSIGNED_INT_SAMPLER_2D_RECT = &H8DD5&
  997. Global Const GL_UNSIGNED_INT_SAMPLER_BUFFER = &H8DD8&
  998. Global Const GL_RED_SNORM = &H8F90&
  999. Global Const GL_RG_SNORM = &H8F91&
  1000. Global Const GL_RGB_SNORM = &H8F92&
  1001. Global Const GL_RGBA_SNORM = &H8F93&
  1002. Global Const GL_R8_SNORM = &H8F94&
  1003. Global Const GL_RG8_SNORM = &H8F95&
  1004. Global Const GL_RGB8_SNORM = &H8F96&
  1005. Global Const GL_RGBA8_SNORM = &H8F97&
  1006. Global Const GL_R16_SNORM = &H8F98&
  1007. Global Const GL_RG16_SNORM = &H8F99&
  1008. Global Const GL_RGB16_SNORM = &H8F9A&
  1009. Global Const GL_RGBA16_SNORM = &H8F9B&
  1010. Global Const GL_SIGNED_NORMALIZED = &H8F9C&
  1011. Global Const GL_PRIMITIVE_RESTART = &H8F9D&
  1012. Global Const GL_PRIMITIVE_RESTART_INDEX = &H8F9E&
  1013. Global Const GL_BUFFER_ACCESS_FLAGS = &H911F&
  1014. Global Const GL_BUFFER_MAP_LENGTH = &H9120&
  1015. Global Const GL_BUFFER_MAP_OFFSET = &H9121&

  1016. Global Const GL_VERSION_3_2 = 1&

  1017. Global Const GL_CONTEXT_CORE_PROFILE_BIT = &H1&
  1018. Global Const GL_CONTEXT_COMPATIBILITY_PROFILE_BIT = &H2&
  1019. Global Const GL_LINES_ADJACENCY = &HA&
  1020. Global Const GL_LINE_STRIP_ADJACENCY = &HB&
  1021. Global Const GL_TRIANGLES_ADJACENCY = &HC&
  1022. Global Const GL_TRIANGLE_STRIP_ADJACENCY = &HD&
  1023. Global Const GL_PROGRAM_POINT_SIZE = &H8642&
  1024. Global Const GL_GEOMETRY_VERTICES_OUT = &H8916&
  1025. Global Const GL_GEOMETRY_INPUT_TYPE = &H8917&
  1026. Global Const GL_GEOMETRY_OUTPUT_TYPE = &H8918&
  1027. Global Const GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = &H8C29&
  1028. Global Const GL_FRAMEBUFFER_ATTACHMENT_LAYERED = &H8DA7&
  1029. Global Const GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = &H8DA8&
  1030. Global Const GL_GEOMETRY_SHADER = &H8DD9&
  1031. Global Const GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = &H8DDF&
  1032. Global Const GL_MAX_GEOMETRY_OUTPUT_VERTICES = &H8DE0&
  1033. Global Const GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = &H8DE1&
  1034. Global Const GL_MAX_VERTEX_OUTPUT_COMPONENTS = &H9122&
  1035. Global Const GL_MAX_GEOMETRY_INPUT_COMPONENTS = &H9123&
  1036. Global Const GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = &H9124&
  1037. Global Const GL_MAX_FRAGMENT_INPUT_COMPONENTS = &H9125&
  1038. Global Const GL_CONTEXT_PROFILE_MASK = &H9126&

  1039. Global Const GL_VERSION_3_3 = 1&

  1040. Global Const GL_VERTEX_ATTRIB_ARRAY_DIVISOR = &H88FE&
  1041. Global Const GL_RGB10_A2UI = &H906F&

  1042. Global Const GL_VERSION_4_0 = 1&

  1043. Global Const GL_SAMPLE_SHADING = &H8C36&
  1044. Global Const GL_MIN_SAMPLE_SHADING_VALUE = &H8C37&
  1045. Global Const GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET = &H8E5E&
  1046. Global Const GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET = &H8E5F&
  1047. Global Const GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS = &H8F9F&
  1048. Global Const GL_TEXTURE_CUBE_MAP_ARRAY = &H9009&
  1049. Global Const GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = &H900A&
  1050. Global Const GL_PROXY_TEXTURE_CUBE_MAP_ARRAY = &H900B&
  1051. Global Const GL_SAMPLER_CUBE_MAP_ARRAY = &H900C&
  1052. Global Const GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = &H900D&
  1053. Global Const GL_INT_SAMPLER_CUBE_MAP_ARRAY = &H900E&
  1054. Global Const GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = &H900F&

  1055. Global Const GL_VERSION_4_1 = 1&

  1056. Global Const GL_VERSION_4_2 = 1&

  1057. Global Const GL_COMPRESSED_RGBA_BPTC_UNORM = &H8E8C&
  1058. Global Const GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = &H8E8D&
  1059. Global Const GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = &H8E8E&
  1060. Global Const GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = &H8E8F&

  1061. Global Const GL_VERSION_4_3 = 1&

  1062. Global Const GL_NUM_SHADING_LANGUAGE_VERSIONS = &H82E9&
  1063. Global Const GL_VERTEX_ATTRIB_ARRAY_LONG = &H874E&

  1064. Global Const GL_VERSION_4_4 = 1&

  1065. Global Const GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = &H8221&
  1066. Global Const GL_MAX_VERTEX_ATTRIB_STRIDE = &H82E5&
  1067. Global Const GL_TEXTURE_BUFFER_BINDING = &H8C2A&

  1068. Global Const GL_VERSION_4_5 = 1&

  1069. Global Const GL_3DFX_multisample = 1&

  1070. Global Const GL_MULTISAMPLE_3DFX = &H86B2&
  1071. Global Const GL_SAMPLE_BUFFERS_3DFX = &H86B3&
  1072. Global Const GL_SAMPLES_3DFX = &H86B4&
  1073. Global Const GL_MULTISAMPLE_BIT_3DFX = &H20000000

  1074. Global Const GL_3DFX_tbuffer = 1&

  1075. Global Const GL_3DFX_texture_compression_FXT1 = 1&

  1076. Global Const GL_COMPRESSED_RGB_FXT1_3DFX = &H86B0&
  1077. Global Const GL_COMPRESSED_RGBA_FXT1_3DFX = &H86B1&

  1078. Global Const GL_EXT_texture_cube_map = 1&

  1079. Global Const GL_NORMAL_MAP_EXT = &H8511&
  1080. Global Const GL_REFLECTION_MAP_EXT = &H8512&
  1081. Global Const GL_TEXTURE_CUBE_MAP_EXT = &H8513&
  1082. Global Const GL_TEXTURE_BINDING_CUBE_MAP_EXT = &H8514&
  1083. Global Const GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT = &H8515&
  1084. Global Const GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = &H8516&
  1085. Global Const GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = &H8517&
  1086. Global Const GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = &H8518&
  1087. Global Const GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = &H8519&
  1088. Global Const GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = &H851A&
  1089. Global Const GL_PROXY_TEXTURE_CUBE_MAP_EXT = &H851B&
  1090. Global Const GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT = &H851C&
复制代码
API部分
  1. Option Explicit

  2. Declare Sub glAccum Lib "opengl32.dll" (ByVal op As Long, ByVal value As Single)
  3. Declare Sub glAlphaFunc Lib "opengl32.dll" (ByVal func As Long, ByVal ref As Single)
  4. Declare Function glAreTexturesResident Lib "opengl32.dll" (ByVal n As Long, textures As Long, residences As Boolean) As Boolean
  5. Declare Sub glArrayElement Lib "opengl32.dll" (ByVal i As Long)
  6. Declare Sub glBegin Lib "opengl32.dll" (ByVal mode As Long)
  7. Declare Sub glBindTexture Lib "opengl32.dll" (ByVal target As Long, ByVal texture As Long)
  8. Declare Sub glBitmap Lib "opengl32.dll" (ByVal width As Long, ByVal height As Long, ByVal xorig As Single, ByVal yorig As Single, ByVal xmove As Single, ByVal ymove As Single, bitmap As Byte)
  9. Declare Sub glBlendFunc Lib "opengl32.dll" (ByVal sfactor As Long, ByVal dfactor As Long)
  10. Declare Sub glCallList Lib "opengl32.dll" (ByVal list As Long)
  11. Declare Sub glCallLists Lib "opengl32.dll" (ByVal n As Long, ByVal type_ As Long, lists As Any)
  12. Declare Sub glClear Lib "opengl32.dll" (ByVal mask As Long)
  13. Declare Sub glClearAccum Lib "opengl32.dll" (ByVal red As Single, ByVal green As Single, ByVal blue As Single, ByVal alpha As Single)
  14. Declare Sub glClearColor Lib "opengl32.dll" (ByVal red As Single, ByVal green As Single, ByVal blue As Single, ByVal alpha As Single)
  15. Declare Sub glClearDepth Lib "opengl32.dll" (ByVal depth As Double)
  16. Declare Sub glClearIndex Lib "opengl32.dll" (ByVal c As Single)
  17. Declare Sub glClearStencil Lib "opengl32.dll" (ByVal s As Long)
  18. Declare Sub glClipPlane Lib "opengl32.dll" (ByVal plane As Long, equation As Double)
  19. Declare Sub glColor3b Lib "opengl32.dll" (ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte)
  20. Declare Sub glColor3bv Lib "opengl32.dll" (v As Byte)
  21. Declare Sub glColor3d Lib "opengl32.dll" (ByVal red As Double, ByVal green As Double, ByVal blue As Double)
  22. Declare Sub glColor3dv Lib "opengl32.dll" (v As Double)
  23. Declare Sub glColor3f Lib "opengl32.dll" (ByVal red As Single, ByVal green As Single, ByVal blue As Single)
  24. Declare Sub glColor3fv Lib "opengl32.dll" (v As Single)
  25. Declare Sub glColor3i Lib "opengl32.dll" (ByVal red As Long, ByVal green As Long, ByVal blue As Long)
  26. Declare Sub glColor3iv Lib "opengl32.dll" (v As Long)
  27. Declare Sub glColor3s Lib "opengl32.dll" (ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer)
  28. Declare Sub glColor3sv Lib "opengl32.dll" (v As Integer)
  29. Declare Sub glColor3ub Lib "opengl32.dll" (ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte)
  30. Declare Sub glColor3ubv Lib "opengl32.dll" (v As Byte)
  31. Declare Sub glColor3ui Lib "opengl32.dll" (ByVal red As Long, ByVal green As Long, ByVal blue As Long)
  32. Declare Sub glColor3uiv Lib "opengl32.dll" (v As Long)
  33. Declare Sub glColor3us Lib "opengl32.dll" (ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer)
  34. Declare Sub glColor3usv Lib "opengl32.dll" (v As Integer)
  35. Declare Sub glColor4b Lib "opengl32.dll" (ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte, ByVal alpha As Byte)
  36. Declare Sub glColor4bv Lib "opengl32.dll" (v As Byte)
  37. Declare Sub glColor4d Lib "opengl32.dll" (ByVal red As Double, ByVal green As Double, ByVal blue As Double, ByVal alpha As Double)
  38. Declare Sub glColor4dv Lib "opengl32.dll" (v As Double)
  39. Declare Sub glColor4f Lib "opengl32.dll" (ByVal red As Single, ByVal green As Single, ByVal blue As Single, ByVal alpha As Single)
  40. Declare Sub glColor4fv Lib "opengl32.dll" (v As Single)
  41. Declare Sub glColor4i Lib "opengl32.dll" (ByVal red As Long, ByVal green As Long, ByVal blue As Long, ByVal alpha As Long)
  42. Declare Sub glColor4iv Lib "opengl32.dll" (v As Long)
  43. Declare Sub glColor4s Lib "opengl32.dll" (ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer, ByVal alpha As Integer)
  44. Declare Sub glColor4sv Lib "opengl32.dll" (v As Integer)
  45. Declare Sub glColor4ub Lib "opengl32.dll" (ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte, ByVal alpha As Byte)
  46. Declare Sub glColor4ubv Lib "opengl32.dll" (v As Byte)
  47. Declare Sub glColor4ui Lib "opengl32.dll" (ByVal red As Long, ByVal green As Long, ByVal blue As Long, ByVal alpha As Long)
  48. Declare Sub glColor4uiv Lib "opengl32.dll" (v As Long)
  49. Declare Sub glColor4us Lib "opengl32.dll" (ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer, ByVal alpha As Integer)
  50. Declare Sub glColor4usv Lib "opengl32.dll" (v As Integer)
  51. Declare Sub glColorMask Lib "opengl32.dll" (ByVal red As Boolean, ByVal green As Boolean, ByVal blue As Boolean, ByVal alpha As Boolean)
  52. Declare Sub glColorMaterial Lib "opengl32.dll" (ByVal face As Long, ByVal mode As Long)
  53. Declare Sub glColorPointer Lib "opengl32.dll" (ByVal size As Long, ByVal type_ As Long, ByVal stride As Long, pointer As Any)
  54. Declare Sub glCopyPixels Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long, ByVal type_ As Long)
  55. Declare Sub glCopyTexImage1D Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal internalFormat As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal border As Long)
  56. Declare Sub glCopyTexImage2D Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal internalFormat As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long, ByVal border As Long)
  57. Declare Sub glCopyTexSubImage1D Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long)
  58. Declare Sub glCopyTexSubImage2D Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal yoffset As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long)
  59. Declare Sub glCullFace Lib "opengl32.dll" (ByVal mode As Long)
  60. Declare Sub glDeleteLists Lib "opengl32.dll" (ByVal list As Long, ByVal range As Long)
  61. Declare Sub glDeleteTextures Lib "opengl32.dll" (ByVal n As Long, textures As Long)
  62. Declare Sub glDepthFunc Lib "opengl32.dll" (ByVal func As Long)
  63. Declare Sub glDepthMask Lib "opengl32.dll" (ByVal flag As Boolean)
  64. Declare Sub glDepthRange Lib "opengl32.dll" (ByVal zNear As Double, ByVal zFar As Double)
  65. Declare Sub glDisable Lib "opengl32.dll" (ByVal cap As Long)
  66. Declare Sub glDisableClientState Lib "opengl32.dll" (ByVal array_ As Long)
  67. Declare Sub glDrawArrays Lib "opengl32.dll" (ByVal mode As Long, ByVal first As Long, ByVal count As Long)
  68. Declare Sub glDrawBuffer Lib "opengl32.dll" (ByVal mode As Long)
  69. Declare Sub glDrawElements Lib "opengl32.dll" (ByVal mode As Long, ByVal count As Long, ByVal type_ As Long, indices As Any)
  70. Declare Sub glDrawPixels Lib "opengl32.dll" (ByVal width As Long, ByVal height As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)
  71. Declare Sub glEdgeFlag Lib "opengl32.dll" (ByVal flag As Boolean)
  72. Declare Sub glEdgeFlagPointer Lib "opengl32.dll" (ByVal stride As Long, pointer As Any)
  73. Declare Sub glEdgeFlagv Lib "opengl32.dll" (flag As Boolean)
  74. Declare Sub glEnable Lib "opengl32.dll" (ByVal cap As Long)
  75. Declare Sub glEnableClientState Lib "opengl32.dll" (ByVal array_ As Long)
  76. Declare Sub glEnd Lib "opengl32.dll" ()
  77. Declare Sub glEndList Lib "opengl32.dll" ()
  78. Declare Sub glEvalCoord1d Lib "opengl32.dll" (ByVal u As Double)
  79. Declare Sub glEvalCoord1dv Lib "opengl32.dll" (u As Double)
  80. Declare Sub glEvalCoord1f Lib "opengl32.dll" (ByVal u As Single)
  81. Declare Sub glEvalCoord1fv Lib "opengl32.dll" (u As Single)
  82. Declare Sub glEvalCoord2d Lib "opengl32.dll" (ByVal u As Double, ByVal v As Double)
  83. Declare Sub glEvalCoord2dv Lib "opengl32.dll" (u As Double)
  84. Declare Sub glEvalCoord2f Lib "opengl32.dll" (ByVal u As Single, ByVal v As Single)
  85. Declare Sub glEvalCoord2fv Lib "opengl32.dll" (u As Single)
  86. Declare Sub glEvalMesh1 Lib "opengl32.dll" (ByVal mode As Long, ByVal i1 As Long, ByVal i2 As Long)
  87. Declare Sub glEvalMesh2 Lib "opengl32.dll" (ByVal mode As Long, ByVal i1 As Long, ByVal i2 As Long, ByVal j1 As Long, ByVal j2 As Long)
  88. Declare Sub glEvalPoint1 Lib "opengl32.dll" (ByVal i As Long)
  89. Declare Sub glEvalPoint2 Lib "opengl32.dll" (ByVal i As Long, ByVal j As Long)
  90. Declare Sub glFeedbackBuffer Lib "opengl32.dll" (ByVal size As Long, ByVal type_ As Long, buffer As Single)
  91. Declare Sub glFinish Lib "opengl32.dll" ()
  92. Declare Sub glFlush Lib "opengl32.dll" ()
  93. Declare Sub glFogf Lib "opengl32.dll" (ByVal pname As Long, ByVal param As Single)
  94. Declare Sub glFogfv Lib "opengl32.dll" (ByVal pname As Long, params As Single)
  95. Declare Sub glFogi Lib "opengl32.dll" (ByVal pname As Long, ByVal param As Long)
  96. Declare Sub glFogiv Lib "opengl32.dll" (ByVal pname As Long, params As Long)
  97. Declare Sub glFrontFace Lib "opengl32.dll" (ByVal mode As Long)
  98. Declare Sub glFrustum Lib "opengl32.dll" (ByVal left As Double, ByVal right As Double, ByVal bottom As Double, ByVal top As Double, ByVal zNear As Double, ByVal zFar As Double)
  99. Declare Function glGenLists Lib "opengl32.dll" (ByVal range As Long) As Long
  100. Declare Sub glGenTextures Lib "opengl32.dll" (ByVal n As Long, textures As Long)
  101. Declare Sub glGetBooleanv Lib "opengl32.dll" (ByVal pname As Long, params As Boolean)
  102. Declare Sub glGetClipPlane Lib "opengl32.dll" (ByVal plane As Long, equation As Double)
  103. Declare Sub glGetDoublev Lib "opengl32.dll" (ByVal pname As Long, params As Double)
  104. Declare Function glGetError Lib "opengl32.dll" () As Long
  105. Declare Sub glGetFloatv Lib "opengl32.dll" (ByVal pname As Long, params As Single)
  106. Declare Sub glGetIntegerv Lib "opengl32.dll" (ByVal pname As Long, params As Long)
  107. Declare Sub glGetLightfv Lib "opengl32.dll" (ByVal light As Long, ByVal pname As Long, params As Single)
  108. Declare Sub glGetLightiv Lib "opengl32.dll" (ByVal light As Long, ByVal pname As Long, params As Long)
  109. Declare Sub glGetMapdv Lib "opengl32.dll" (ByVal target As Long, ByVal query As Long, v As Double)
  110. Declare Sub glGetMapfv Lib "opengl32.dll" (ByVal target As Long, ByVal query As Long, v As Single)
  111. Declare Sub glGetMapiv Lib "opengl32.dll" (ByVal target As Long, ByVal query As Long, v As Long)
  112. Declare Sub glGetMaterialfv Lib "opengl32.dll" (ByVal face As Long, ByVal pname As Long, params As Single)
  113. Declare Sub glGetMaterialiv Lib "opengl32.dll" (ByVal face As Long, ByVal pname As Long, params As Long)
  114. Declare Sub glGetPixelMapfv Lib "opengl32.dll" (ByVal map As Long, values As Single)
  115. Declare Sub glGetPixelMapuiv Lib "opengl32.dll" (ByVal map As Long, values As Long)
  116. Declare Sub glGetPixelMapusv Lib "opengl32.dll" (ByVal map As Long, values As Integer)
  117. Declare Sub glGetPointerv Lib "opengl32.dll" (ByVal pname As Long, params As Any)
  118. Declare Sub glGetPolygonStipple Lib "opengl32.dll" (mask As Byte)
  119. Declare Function glGetString Lib "opengl32.dll" (ByVal name As Long) As Long
  120. Declare Sub glGetTexEnvfv Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, params As Single)
  121. Declare Sub glGetTexEnviv Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, params As Long)
  122. Declare Sub glGetTexGendv Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, params As Double)
  123. Declare Sub glGetTexGenfv Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, params As Single)
  124. Declare Sub glGetTexGeniv Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, params As Long)
  125. Declare Sub glGetTexImage Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)
  126. Declare Sub glGetTexLevelParameterfv Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal pname As Long, params As Single)
  127. Declare Sub glGetTexLevelParameteriv Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal pname As Long, params As Long)
  128. Declare Sub glGetTexParameterfv Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, params As Single)
  129. Declare Sub glGetTexParameteriv Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, params As Long)
  130. Declare Sub glHint Lib "opengl32.dll" (ByVal target As Long, ByVal mode As Long)
  131. Declare Sub glIndexMask Lib "opengl32.dll" (ByVal mask As Long)
  132. Declare Sub glIndexPointer Lib "opengl32.dll" (ByVal type_ As Long, ByVal stride As Long, pointer As Any)
  133. Declare Sub glIndexd Lib "opengl32.dll" (ByVal c As Double)
  134. Declare Sub glIndexdv Lib "opengl32.dll" (c As Double)
  135. Declare Sub glIndexf Lib "opengl32.dll" (ByVal c As Single)
  136. Declare Sub glIndexfv Lib "opengl32.dll" (c As Single)
  137. Declare Sub glIndexi Lib "opengl32.dll" (ByVal c As Long)
  138. Declare Sub glIndexiv Lib "opengl32.dll" (c As Long)
  139. Declare Sub glIndexs Lib "opengl32.dll" (ByVal c As Integer)
  140. Declare Sub glIndexsv Lib "opengl32.dll" (c As Integer)
  141. Declare Sub glIndexub Lib "opengl32.dll" (ByVal c As Byte)
  142. Declare Sub glIndexubv Lib "opengl32.dll" (c As Byte)
  143. Declare Sub glInitNames Lib "opengl32.dll" ()
  144. Declare Sub glInterleavedArrays Lib "opengl32.dll" (ByVal format As Long, ByVal stride As Long, pointer As Any)
  145. Declare Function glIsEnabled Lib "opengl32.dll" (ByVal cap As Long) As Boolean
  146. Declare Function glIsList Lib "opengl32.dll" (ByVal list As Long) As Boolean
  147. Declare Function glIsTexture Lib "opengl32.dll" (ByVal texture As Long) As Boolean
  148. Declare Sub glLightModelf Lib "opengl32.dll" (ByVal pname As Long, ByVal param As Single)
  149. Declare Sub glLightModelfv Lib "opengl32.dll" (ByVal pname As Long, params As Single)
  150. Declare Sub glLightModeli Lib "opengl32.dll" (ByVal pname As Long, ByVal param As Long)
  151. Declare Sub glLightModeliv Lib "opengl32.dll" (ByVal pname As Long, params As Long)
  152. Declare Sub glLightf Lib "opengl32.dll" (ByVal light As Long, ByVal pname As Long, ByVal param As Single)
  153. Declare Sub glLightfv Lib "opengl32.dll" (ByVal light As Long, ByVal pname As Long, params As Single)
  154. Declare Sub glLighti Lib "opengl32.dll" (ByVal light As Long, ByVal pname As Long, ByVal param As Long)
  155. Declare Sub glLightiv Lib "opengl32.dll" (ByVal light As Long, ByVal pname As Long, params As Long)
  156. Declare Sub glLineStipple Lib "opengl32.dll" (ByVal factor As Long, ByVal pattern As Integer)
  157. Declare Sub glLineWidth Lib "opengl32.dll" (ByVal width As Single)
  158. Declare Sub glListBase Lib "opengl32.dll" (ByVal base As Long)
  159. Declare Sub glLoadIdentity Lib "opengl32.dll" ()
  160. Declare Sub glLoadMatrixd Lib "opengl32.dll" (m As Double)
  161. Declare Sub glLoadMatrixf Lib "opengl32.dll" (m As Single)
  162. Declare Sub glLoadName Lib "opengl32.dll" (ByVal name As Long)
  163. Declare Sub glLogicOp Lib "opengl32.dll" (ByVal opcode As Long)
  164. Declare Sub glMap1d Lib "opengl32.dll" (ByVal target As Long, ByVal u1 As Double, ByVal u2 As Double, ByVal stride As Long, ByVal order As Long, points As Double)
  165. Declare Sub glMap1f Lib "opengl32.dll" (ByVal target As Long, ByVal u1 As Single, ByVal u2 As Single, ByVal stride As Long, ByVal order As Long, points As Single)
  166. Declare Sub glMap2d Lib "opengl32.dll" (ByVal target As Long, ByVal u1 As Double, ByVal u2 As Double, ByVal ustride As Long, ByVal uorder As Long, ByVal v1 As Double, ByVal v2 As Double, ByVal vstride As Long, ByVal vorder As Long, points As Double)
  167. Declare Sub glMap2f Lib "opengl32.dll" (ByVal target As Long, ByVal u1 As Single, ByVal u2 As Single, ByVal ustride As Long, ByVal uorder As Long, ByVal v1 As Single, ByVal v2 As Single, ByVal vstride As Long, ByVal vorder As Long, points As Single)
  168. Declare Sub glMapGrid1d Lib "opengl32.dll" (ByVal un As Long, ByVal u1 As Double, ByVal u2 As Double)
  169. Declare Sub glMapGrid1f Lib "opengl32.dll" (ByVal un As Long, ByVal u1 As Single, ByVal u2 As Single)
  170. Declare Sub glMapGrid2d Lib "opengl32.dll" (ByVal un As Long, ByVal u1 As Double, ByVal u2 As Double, ByVal vn As Long, ByVal v1 As Double, ByVal v2 As Double)
  171. Declare Sub glMapGrid2f Lib "opengl32.dll" (ByVal un As Long, ByVal u1 As Single, ByVal u2 As Single, ByVal vn As Long, ByVal v1 As Single, ByVal v2 As Single)
  172. Declare Sub glMaterialf Lib "opengl32.dll" (ByVal face As Long, ByVal pname As Long, ByVal param As Single)
  173. Declare Sub glMaterialfv Lib "opengl32.dll" (ByVal face As Long, ByVal pname As Long, params As Single)
  174. Declare Sub glMateriali Lib "opengl32.dll" (ByVal face As Long, ByVal pname As Long, ByVal param As Long)
  175. Declare Sub glMaterialiv Lib "opengl32.dll" (ByVal face As Long, ByVal pname As Long, params As Long)
  176. Declare Sub glMatrixMode Lib "opengl32.dll" (ByVal mode As Long)
  177. Declare Sub glMultMatrixd Lib "opengl32.dll" (m As Double)
  178. Declare Sub glMultMatrixf Lib "opengl32.dll" (m As Single)
  179. Declare Sub glNewList Lib "opengl32.dll" (ByVal list As Long, ByVal mode As Long)
  180. Declare Sub glNormal3b Lib "opengl32.dll" (ByVal nx As Byte, ByVal ny As Byte, ByVal nz As Byte)
  181. Declare Sub glNormal3bv Lib "opengl32.dll" (v As Byte)
  182. Declare Sub glNormal3d Lib "opengl32.dll" (ByVal nx As Double, ByVal ny As Double, ByVal nz As Double)
  183. Declare Sub glNormal3dv Lib "opengl32.dll" (v As Double)
  184. Declare Sub glNormal3f Lib "opengl32.dll" (ByVal nx As Single, ByVal ny As Single, ByVal nz As Single)
  185. Declare Sub glNormal3fv Lib "opengl32.dll" (v As Single)
  186. Declare Sub glNormal3i Lib "opengl32.dll" (ByVal nx As Long, ByVal ny As Long, ByVal nz As Long)
  187. Declare Sub glNormal3iv Lib "opengl32.dll" (v As Long)
  188. Declare Sub glNormal3s Lib "opengl32.dll" (ByVal nx As Integer, ByVal ny As Integer, ByVal nz As Integer)
  189. Declare Sub glNormal3sv Lib "opengl32.dll" (v As Integer)
  190. Declare Sub glNormalPointer Lib "opengl32.dll" (ByVal type_ As Long, ByVal stride As Long, pointer As Any)
  191. Declare Sub glOrtho Lib "opengl32.dll" (ByVal left As Double, ByVal right As Double, ByVal bottom As Double, ByVal top As Double, ByVal zNear As Double, ByVal zFar As Double)
  192. Declare Sub glPassThrough Lib "opengl32.dll" (ByVal token As Single)
  193. Declare Sub glPixelMapfv Lib "opengl32.dll" (ByVal map As Long, ByVal mapsize As Long, values As Single)
  194. Declare Sub glPixelMapuiv Lib "opengl32.dll" (ByVal map As Long, ByVal mapsize As Long, values As Long)
  195. Declare Sub glPixelMapusv Lib "opengl32.dll" (ByVal map As Long, ByVal mapsize As Long, values As Integer)
  196. Declare Sub glPixelStoref Lib "opengl32.dll" (ByVal pname As Long, ByVal param As Single)
  197. Declare Sub glPixelStorei Lib "opengl32.dll" (ByVal pname As Long, ByVal param As Long)
  198. Declare Sub glPixelTransferf Lib "opengl32.dll" (ByVal pname As Long, ByVal param As Single)
  199. Declare Sub glPixelTransferi Lib "opengl32.dll" (ByVal pname As Long, ByVal param As Long)
  200. Declare Sub glPixelZoom Lib "opengl32.dll" (ByVal xfactor As Single, ByVal yfactor As Single)
  201. Declare Sub glPointSize Lib "opengl32.dll" (ByVal size As Single)
  202. Declare Sub glPolygonMode Lib "opengl32.dll" (ByVal face As Long, ByVal mode As Long)
  203. Declare Sub glPolygonOffset Lib "opengl32.dll" (ByVal factor As Single, ByVal units As Single)
  204. Declare Sub glPolygonStipple Lib "opengl32.dll" (mask As Byte)
  205. Declare Sub glPopAttrib Lib "opengl32.dll" ()
  206. Declare Sub glPopClientAttrib Lib "opengl32.dll" ()
  207. Declare Sub glPopMatrix Lib "opengl32.dll" ()
  208. Declare Sub glPopName Lib "opengl32.dll" ()
  209. Declare Sub glPrioritizeTextures Lib "opengl32.dll" (ByVal n As Long, textures As Long, priorities As Single)
  210. Declare Sub glPushAttrib Lib "opengl32.dll" (ByVal mask As Long)
  211. Declare Sub glPushClientAttrib Lib "opengl32.dll" (ByVal mask As Long)
  212. Declare Sub glPushMatrix Lib "opengl32.dll" ()
  213. Declare Sub glPushName Lib "opengl32.dll" (ByVal name As Long)
  214. Declare Sub glRasterPos2d Lib "opengl32.dll" (ByVal x As Double, ByVal y As Double)
  215. Declare Sub glRasterPos2dv Lib "opengl32.dll" (v As Double)
  216. Declare Sub glRasterPos2f Lib "opengl32.dll" (ByVal x As Single, ByVal y As Single)
  217. Declare Sub glRasterPos2fv Lib "opengl32.dll" (v As Single)
  218. Declare Sub glRasterPos2i Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long)
  219. Declare Sub glRasterPos2iv Lib "opengl32.dll" (v As Long)
  220. Declare Sub glRasterPos2s Lib "opengl32.dll" (ByVal x As Integer, ByVal y As Integer)
  221. Declare Sub glRasterPos2sv Lib "opengl32.dll" (v As Integer)
  222. Declare Sub glRasterPos3d Lib "opengl32.dll" (ByVal x As Double, ByVal y As Double, ByVal z As Double)
  223. Declare Sub glRasterPos3dv Lib "opengl32.dll" (v As Double)
  224. Declare Sub glRasterPos3f Lib "opengl32.dll" (ByVal x As Single, ByVal y As Single, ByVal z As Single)
  225. Declare Sub glRasterPos3fv Lib "opengl32.dll" (v As Single)
  226. Declare Sub glRasterPos3i Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long, ByVal z As Long)
  227. Declare Sub glRasterPos3iv Lib "opengl32.dll" (v As Long)
  228. Declare Sub glRasterPos3s Lib "opengl32.dll" (ByVal x As Integer, ByVal y As Integer, ByVal z As Integer)
  229. Declare Sub glRasterPos3sv Lib "opengl32.dll" (v As Integer)
  230. Declare Sub glRasterPos4d Lib "opengl32.dll" (ByVal x As Double, ByVal y As Double, ByVal z As Double, ByVal w As Double)
  231. Declare Sub glRasterPos4dv Lib "opengl32.dll" (v As Double)
  232. Declare Sub glRasterPos4f Lib "opengl32.dll" (ByVal x As Single, ByVal y As Single, ByVal z As Single, ByVal w As Single)
  233. Declare Sub glRasterPos4fv Lib "opengl32.dll" (v As Single)
  234. Declare Sub glRasterPos4i Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long, ByVal z As Long, ByVal w As Long)
  235. Declare Sub glRasterPos4iv Lib "opengl32.dll" (v As Long)
  236. Declare Sub glRasterPos4s Lib "opengl32.dll" (ByVal x As Integer, ByVal y As Integer, ByVal z As Integer, ByVal w As Integer)
  237. Declare Sub glRasterPos4sv Lib "opengl32.dll" (v As Integer)
  238. Declare Sub glReadBuffer Lib "opengl32.dll" (ByVal mode As Long)
  239. Declare Sub glReadPixels Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)
  240. Declare Sub glRectd Lib "opengl32.dll" (ByVal x1 As Double, ByVal y1 As Double, ByVal x2 As Double, ByVal y2 As Double)
  241. Declare Sub glRectdv Lib "opengl32.dll" (v1 As Double, v2 As Double)
  242. Declare Sub glRectf Lib "opengl32.dll" (ByVal x1 As Single, ByVal y1 As Single, ByVal x2 As Single, ByVal y2 As Single)
  243. Declare Sub glRectfv Lib "opengl32.dll" (v1 As Single, v2 As Single)
  244. Declare Sub glRecti Lib "opengl32.dll" (ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long)
  245. Declare Sub glRectiv Lib "opengl32.dll" (v1 As Long, v2 As Long)
  246. Declare Sub glRects Lib "opengl32.dll" (ByVal x1 As Integer, ByVal y1 As Integer, ByVal x2 As Integer, ByVal y2 As Integer)
  247. Declare Sub glRectsv Lib "opengl32.dll" (v1 As Integer, v2 As Integer)
  248. Declare Function glRenderMode Lib "opengl32.dll" (ByVal mode As Long) As Long
  249. Declare Sub glRotated Lib "opengl32.dll" (ByVal angle As Double, ByVal x As Double, ByVal y As Double, ByVal z As Double)
  250. Declare Sub glRotatef Lib "opengl32.dll" (ByVal angle As Single, ByVal x As Single, ByVal y As Single, ByVal z As Single)
  251. Declare Sub glScaled Lib "opengl32.dll" (ByVal x As Double, ByVal y As Double, ByVal z As Double)
  252. Declare Sub glScalef Lib "opengl32.dll" (ByVal x As Single, ByVal y As Single, ByVal z As Single)
  253. Declare Sub glScissor Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long)
  254. Declare Sub glSelectBuffer Lib "opengl32.dll" (ByVal size As Long, buffer As Long)
  255. Declare Sub glShadeModel Lib "opengl32.dll" (ByVal mode As Long)
  256. Declare Sub glStencilFunc Lib "opengl32.dll" (ByVal func As Long, ByVal ref As Long, ByVal mask As Long)
  257. Declare Sub glStencilMask Lib "opengl32.dll" (ByVal mask As Long)
  258. Declare Sub glStencilOp Lib "opengl32.dll" (ByVal fail As Long, ByVal zfail As Long, ByVal zpass As Long)
  259. Declare Sub glTexCoord1d Lib "opengl32.dll" (ByVal s As Double)
  260. Declare Sub glTexCoord1dv Lib "opengl32.dll" (v As Double)
  261. Declare Sub glTexCoord1f Lib "opengl32.dll" (ByVal s As Single)
  262. Declare Sub glTexCoord1fv Lib "opengl32.dll" (v As Single)
  263. Declare Sub glTexCoord1i Lib "opengl32.dll" (ByVal s As Long)
  264. Declare Sub glTexCoord1iv Lib "opengl32.dll" (v As Long)
  265. Declare Sub glTexCoord1s Lib "opengl32.dll" (ByVal s As Integer)
  266. Declare Sub glTexCoord1sv Lib "opengl32.dll" (v As Integer)
  267. Declare Sub glTexCoord2d Lib "opengl32.dll" (ByVal s As Double, ByVal t As Double)
  268. Declare Sub glTexCoord2dv Lib "opengl32.dll" (v As Double)
  269. Declare Sub glTexCoord2f Lib "opengl32.dll" (ByVal s As Single, ByVal t As Single)
  270. Declare Sub glTexCoord2fv Lib "opengl32.dll" (v As Single)
  271. Declare Sub glTexCoord2i Lib "opengl32.dll" (ByVal s As Long, ByVal t As Long)
  272. Declare Sub glTexCoord2iv Lib "opengl32.dll" (v As Long)
  273. Declare Sub glTexCoord2s Lib "opengl32.dll" (ByVal s As Integer, ByVal t As Integer)
  274. Declare Sub glTexCoord2sv Lib "opengl32.dll" (v As Integer)
  275. Declare Sub glTexCoord3d Lib "opengl32.dll" (ByVal s As Double, ByVal t As Double, ByVal r As Double)
  276. Declare Sub glTexCoord3dv Lib "opengl32.dll" (v As Double)
  277. Declare Sub glTexCoord3f Lib "opengl32.dll" (ByVal s As Single, ByVal t As Single, ByVal r As Single)
  278. Declare Sub glTexCoord3fv Lib "opengl32.dll" (v As Single)
  279. Declare Sub glTexCoord3i Lib "opengl32.dll" (ByVal s As Long, ByVal t As Long, ByVal r As Long)
  280. Declare Sub glTexCoord3iv Lib "opengl32.dll" (v As Long)
  281. Declare Sub glTexCoord3s Lib "opengl32.dll" (ByVal s As Integer, ByVal t As Integer, ByVal r As Integer)
  282. Declare Sub glTexCoord3sv Lib "opengl32.dll" (v As Integer)
  283. Declare Sub glTexCoord4d Lib "opengl32.dll" (ByVal s As Double, ByVal t As Double, ByVal r As Double, ByVal q As Double)
  284. Declare Sub glTexCoord4dv Lib "opengl32.dll" (v As Double)
  285. Declare Sub glTexCoord4f Lib "opengl32.dll" (ByVal s As Single, ByVal t As Single, ByVal r As Single, ByVal q As Single)
  286. Declare Sub glTexCoord4fv Lib "opengl32.dll" (v As Single)
  287. Declare Sub glTexCoord4i Lib "opengl32.dll" (ByVal s As Long, ByVal t As Long, ByVal r As Long, ByVal q As Long)
  288. Declare Sub glTexCoord4iv Lib "opengl32.dll" (v As Long)
  289. Declare Sub glTexCoord4s Lib "opengl32.dll" (ByVal s As Integer, ByVal t As Integer, ByVal r As Integer, ByVal q As Integer)
  290. Declare Sub glTexCoord4sv Lib "opengl32.dll" (v As Integer)
  291. Declare Sub glTexCoordPointer Lib "opengl32.dll" (ByVal size As Long, ByVal type_ As Long, ByVal stride As Long, pointer As Any)
  292. Declare Sub glTexEnvf Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, ByVal param As Single)
  293. Declare Sub glTexEnvfv Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, params As Single)
  294. Declare Sub glTexEnvi Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, ByVal param As Long)
  295. Declare Sub glTexEnviv Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, params As Long)
  296. Declare Sub glTexGend Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, ByVal param As Double)
  297. Declare Sub glTexGendv Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, params As Double)
  298. Declare Sub glTexGenf Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, ByVal param As Single)
  299. Declare Sub glTexGenfv Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, params As Single)
  300. Declare Sub glTexGeni Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, ByVal param As Long)
  301. Declare Sub glTexGeniv Lib "opengl32.dll" (ByVal coord As Long, ByVal pname As Long, params As Long)
  302. Declare Sub glTexImage1D Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal border As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)
  303. Declare Sub glTexImage2D Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal height As Long, ByVal border As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)
  304. Declare Sub glTexParameterf Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, ByVal param As Single)
  305. Declare Sub glTexParameterfv Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, params As Single)
  306. Declare Sub glTexParameteri Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, ByVal param As Long)
  307. Declare Sub glTexParameteriv Lib "opengl32.dll" (ByVal target As Long, ByVal pname As Long, params As Long)
  308. Declare Sub glTexSubImage1D Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal width As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)
  309. Declare Sub glTexSubImage2D Lib "opengl32.dll" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal yoffset As Long, ByVal width As Long, ByVal height As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)
  310. Declare Sub glTranslated Lib "opengl32.dll" (ByVal x As Double, ByVal y As Double, ByVal z As Double)
  311. Declare Sub glTranslatef Lib "opengl32.dll" (ByVal x As Single, ByVal y As Single, ByVal z As Single)
  312. Declare Sub glVertex2d Lib "opengl32.dll" (ByVal x As Double, ByVal y As Double)
  313. Declare Sub glVertex2dv Lib "opengl32.dll" (v As Double)
  314. Declare Sub glVertex2f Lib "opengl32.dll" (ByVal x As Single, ByVal y As Single)
  315. Declare Sub glVertex2fv Lib "opengl32.dll" (v As Single)
  316. Declare Sub glVertex2i Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long)
  317. Declare Sub glVertex2iv Lib "opengl32.dll" (v As Long)
  318. Declare Sub glVertex2s Lib "opengl32.dll" (ByVal x As Integer, ByVal y As Integer)
  319. Declare Sub glVertex2sv Lib "opengl32.dll" (v As Integer)
  320. Declare Sub glVertex3d Lib "opengl32.dll" (ByVal x As Double, ByVal y As Double, ByVal z As Double)
  321. Declare Sub glVertex3dv Lib "opengl32.dll" (v As Double)
  322. Declare Sub glVertex3f Lib "opengl32.dll" (ByVal x As Single, ByVal y As Single, ByVal z As Single)
  323. Declare Sub glVertex3fv Lib "opengl32.dll" (v As Single)
  324. Declare Sub glVertex3i Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long, ByVal z As Long)
  325. Declare Sub glVertex3iv Lib "opengl32.dll" (v As Long)
  326. Declare Sub glVertex3s Lib "opengl32.dll" (ByVal x As Integer, ByVal y As Integer, ByVal z As Integer)
  327. Declare Sub glVertex3sv Lib "opengl32.dll" (v As Integer)
  328. Declare Sub glVertex4d Lib "opengl32.dll" (ByVal x As Double, ByVal y As Double, ByVal z As Double, ByVal w As Double)
  329. Declare Sub glVertex4dv Lib "opengl32.dll" (v As Double)
  330. Declare Sub glVertex4f Lib "opengl32.dll" (ByVal x As Single, ByVal y As Single, ByVal z As Single, ByVal w As Single)
  331. Declare Sub glVertex4fv Lib "opengl32.dll" (v As Single)
  332. Declare Sub glVertex4i Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long, ByVal z As Long, ByVal w As Long)
  333. Declare Sub glVertex4iv Lib "opengl32.dll" (v As Long)
  334. Declare Sub glVertex4s Lib "opengl32.dll" (ByVal x As Integer, ByVal y As Integer, ByVal z As Integer, ByVal w As Integer)
  335. Declare Sub glVertex4sv Lib "opengl32.dll" (v As Integer)
  336. Declare Sub glVertexPointer Lib "opengl32.dll" (ByVal size As Long, ByVal type_ As Long, ByVal stride As Long, pointer As Any)
  337. Declare Sub glViewport Lib "opengl32.dll" (ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long)

  338. Declare Sub glCopyTexSubImage3D Lib "glew32.dll" Alias "__glewCopyTexSubImage3D" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal yoffset As Long, ByVal zoffset As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long)
  339. Declare Sub glDrawRangeElements Lib "glew32.dll" Alias "__glewDrawRangeElements" (ByVal mode As Long, ByVal start As Long, ByVal end_ As Long, ByVal count As Long, ByVal type_ As Long, indices As Any)
  340. Declare Sub glTexImage3D Lib "glew32.dll" Alias "__glewTexImage3D" (ByVal target As Long, ByVal level As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal height As Long, ByVal depth As Long, ByVal border As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)
  341. Declare Sub glTexSubImage3D Lib "glew32.dll" Alias "__glewTexSubImage3D" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal yoffset As Long, ByVal zoffset As Long, ByVal width As Long, ByVal height As Long, ByVal depth As Long, ByVal format As Long, ByVal type_ As Long, pixels As Any)

  342. Declare Sub glActiveTexture Lib "glew32.dll" Alias "__glewActiveTexture" (ByVal texture As Long)
  343. Declare Sub glClientActiveTexture Lib "glew32.dll" Alias "__glewClientActiveTexture" (ByVal texture As Long)
  344. Declare Sub glCompressedTexImage1D Lib "glew32.dll" Alias "__glewCompressedTexImage1D" (ByVal target As Long, ByVal level As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal border As Long, ByVal imageSize As Long, data As Any)
  345. Declare Sub glCompressedTexImage2D Lib "glew32.dll" Alias "__glewCompressedTexImage2D" (ByVal target As Long, ByVal level As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal height As Long, ByVal border As Long, ByVal imageSize As Long, data As Any)
  346. Declare Sub glCompressedTexImage3D Lib "glew32.dll" Alias "__glewCompressedTexImage3D" (ByVal target As Long, ByVal level As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal height As Long, ByVal depth As Long, ByVal border As Long, ByVal imageSize As Long, data As Any)
  347. Declare Sub glCompressedTexSubImage1D Lib "glew32.dll" Alias "__glewCompressedTexSubImage1D" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal width As Long, ByVal format As Long, ByVal imageSize As Long, data As Any)
  348. Declare Sub glCompressedTexSubImage2D Lib "glew32.dll" Alias "__glewCompressedTexSubImage2D" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal yoffset As Long, ByVal width As Long, ByVal height As Long, ByVal format As Long, ByVal imageSize As Long, data As Any)
  349. Declare Sub glCompressedTexSubImage3D Lib "glew32.dll" Alias "__glewCompressedTexSubImage3D" (ByVal target As Long, ByVal level As Long, ByVal xoffset As Long, ByVal yoffset As Long, ByVal zoffset As Long, ByVal width As Long, ByVal height As Long, ByVal depth As Long, ByVal format As Long, ByVal imageSize As Long, data As Any)
  350. Declare Sub glGetCompressedTexImage Lib "glew32.dll" Alias "__glewGetCompressedTexImage" (ByVal target As Long, ByVal lod As Long, img As Any)
  351. Declare Sub glLoadTransposeMatrixd Lib "glew32.dll" Alias "__glewLoadTransposeMatrixd" (m As Double)
  352. Declare Sub glLoadTransposeMatrixf Lib "glew32.dll" Alias "__glewLoadTransposeMatrixf" (m As Single)
  353. Declare Sub glMultTransposeMatrixd Lib "glew32.dll" Alias "__glewMultTransposeMatrixd" (m As Double)
  354. Declare Sub glMultTransposeMatrixf Lib "glew32.dll" Alias "__glewMultTransposeMatrixf" (m As Single)
  355. Declare Sub glMultiTexCoord1d Lib "glew32.dll" Alias "__glewMultiTexCoord1d" (ByVal target As Long, ByVal s As Double)
  356. Declare Sub glMultiTexCoord1dv Lib "glew32.dll" Alias "__glewMultiTexCoord1dv" (ByVal target As Long, v As Double)
  357. Declare Sub glMultiTexCoord1f Lib "glew32.dll" Alias "__glewMultiTexCoord1f" (ByVal target As Long, ByVal s As Single)
  358. Declare Sub glMultiTexCoord1fv Lib "glew32.dll" Alias "__glewMultiTexCoord1fv" (ByVal target As Long, v As Single)
  359. Declare Sub glMultiTexCoord1i Lib "glew32.dll" Alias "__glewMultiTexCoord1i" (ByVal target As Long, ByVal s As Long)
  360. Declare Sub glMultiTexCoord1iv Lib "glew32.dll" Alias "__glewMultiTexCoord1iv" (ByVal target As Long, v As Long)
  361. Declare Sub glMultiTexCoord1s Lib "glew32.dll" Alias "__glewMultiTexCoord1s" (ByVal target As Long, ByVal s As Integer)
  362. Declare Sub glMultiTexCoord1sv Lib "glew32.dll" Alias "__glewMultiTexCoord1sv" (ByVal target As Long, v As Integer)
  363. Declare Sub glMultiTexCoord2d Lib "glew32.dll" Alias "__glewMultiTexCoord2d" (ByVal target As Long, ByVal s As Double, ByVal t As Double)
  364. Declare Sub glMultiTexCoord2dv Lib "glew32.dll" Alias "__glewMultiTexCoord2dv" (ByVal target As Long, v As Double)
  365. Declare Sub glMultiTexCoord2f Lib "glew32.dll" Alias "__glewMultiTexCoord2f" (ByVal target As Long, ByVal s As Single, ByVal t As Single)
  366. Declare Sub glMultiTexCoord2fv Lib "glew32.dll" Alias "__glewMultiTexCoord2fv" (ByVal target As Long, v As Single)
  367. Declare Sub glMultiTexCoord2i Lib "glew32.dll" Alias "__glewMultiTexCoord2i" (ByVal target As Long, ByVal s As Long, ByVal t As Long)
  368. Declare Sub glMultiTexCoord2iv Lib "glew32.dll" Alias "__glewMultiTexCoord2iv" (ByVal target As Long, v As Long)
  369. Declare Sub glMultiTexCoord2s Lib "glew32.dll" Alias "__glewMultiTexCoord2s" (ByVal target As Long, ByVal s As Integer, ByVal t As Integer)
  370. Declare Sub glMultiTexCoord2sv Lib "glew32.dll" Alias "__glewMultiTexCoord2sv" (ByVal target As Long, v As Integer)
  371. Declare Sub glMultiTexCoord3d Lib "glew32.dll" Alias "__glewMultiTexCoord3d" (ByVal target As Long, ByVal s As Double, ByVal t As Double, ByVal r As Double)
  372. Declare Sub glMultiTexCoord3dv Lib "glew32.dll" Alias "__glewMultiTexCoord3dv" (ByVal target As Long, v As Double)
  373. Declare Sub glMultiTexCoord3f Lib "glew32.dll" Alias "__glewMultiTexCoord3f" (ByVal target As Long, ByVal s As Single, ByVal t As Single, ByVal r As Single)
  374. Declare Sub glMultiTexCoord3fv Lib "glew32.dll" Alias "__glewMultiTexCoord3fv" (ByVal target As Long, v As Single)
  375. Declare Sub glMultiTexCoord3i Lib "glew32.dll" Alias "__glewMultiTexCoord3i" (ByVal target As Long, ByVal s As Long, ByVal t As Long, ByVal r As Long)
  376. Declare Sub glMultiTexCoord3iv Lib "glew32.dll" Alias "__glewMultiTexCoord3iv" (ByVal target As Long, v As Long)
  377. Declare Sub glMultiTexCoord3s Lib "glew32.dll" Alias "__glewMultiTexCoord3s" (ByVal target As Long, ByVal s As Integer, ByVal t As Integer, ByVal r As Integer)
  378. Declare Sub glMultiTexCoord3sv Lib "glew32.dll" Alias "__glewMultiTexCoord3sv" (ByVal target As Long, v As Integer)
  379. Declare Sub glMultiTexCoord4d Lib "glew32.dll" Alias "__glewMultiTexCoord4d" (ByVal target As Long, ByVal s As Double, ByVal t As Double, ByVal r As Double, ByVal q As Double)
  380. Declare Sub glMultiTexCoord4dv Lib "glew32.dll" Alias "__glewMultiTexCoord4dv" (ByVal target As Long, v As Double)
  381. Declare Sub glMultiTexCoord4f Lib "glew32.dll" Alias "__glewMultiTexCoord4f" (ByVal target As Long, ByVal s As Single, ByVal t As Single, ByVal r As Single, ByVal q As Single)
  382. Declare Sub glMultiTexCoord4fv Lib "glew32.dll" Alias "__glewMultiTexCoord4fv" (ByVal target As Long, v As Single)
  383. Declare Sub glMultiTexCoord4i Lib "glew32.dll" Alias "__glewMultiTexCoord4i" (ByVal target As Long, ByVal s As Long, ByVal t As Long, ByVal r As Long, ByVal q As Long)
  384. Declare Sub glMultiTexCoord4iv Lib "glew32.dll" Alias "__glewMultiTexCoord4iv" (ByVal target As Long, v As Long)
  385. Declare Sub glMultiTexCoord4s Lib "glew32.dll" Alias "__glewMultiTexCoord4s" (ByVal target As Long, ByVal s As Integer, ByVal t As Integer, ByVal r As Integer, ByVal q As Integer)
  386. Declare Sub glMultiTexCoord4sv Lib "glew32.dll" Alias "__glewMultiTexCoord4sv" (ByVal target As Long, v As Integer)
  387. Declare Sub glSampleCoverage Lib "glew32.dll" Alias "__glewSampleCoverage" (ByVal value As Single, ByVal invert As Boolean)

  388. Declare Sub glBlendColor Lib "glew32.dll" Alias "__glewBlendColor" (ByVal red As Single, ByVal green As Single, ByVal blue As Single, ByVal alpha As Single)
  389. Declare Sub glBlendEquation Lib "glew32.dll" Alias "__glewBlendEquation" (ByVal mode As Long)
  390. Declare Sub glBlendFuncSeparate Lib "glew32.dll" Alias "__glewBlendFuncSeparate" (ByVal sfactorRGB As Long, ByVal dfactorRGB As Long, ByVal sfactorAlpha As Long, ByVal dfactorAlpha As Long)
  391. Declare Sub glFogCoordPointer Lib "glew32.dll" Alias "__glewFogCoordPointer" (ByVal type_ As Long, ByVal stride As Long, pointer As Any)
  392. Declare Sub glFogCoordd Lib "glew32.dll" Alias "__glewFogCoordd" (ByVal coord As Double)
  393. Declare Sub glFogCoorddv Lib "glew32.dll" Alias "__glewFogCoorddv" (coord As Double)
  394. Declare Sub glFogCoordf Lib "glew32.dll" Alias "__glewFogCoordf" (ByVal coord As Single)
  395. Declare Sub glFogCoordfv Lib "glew32.dll" Alias "__glewFogCoordfv" (coord As Single)
  396. Declare Sub glMultiDrawArrays Lib "glew32.dll" Alias "__glewMultiDrawArrays" (ByVal mode As Long, first As Long, count As Long, ByVal drawcount As Long)
  397. Declare Sub glMultiDrawElements Lib "glew32.dll" Alias "__glewMultiDrawElements" (ByVal mode As Long, count As Long, ByVal type_ As Long, indices As Any, ByVal drawcount As Long)
  398. Declare Sub glPointParameterf Lib "glew32.dll" Alias "__glewPointParameterf" (ByVal pname As Long, ByVal param As Single)
  399. Declare Sub glPointParameterfv Lib "glew32.dll" Alias "__glewPointParameterfv" (ByVal pname As Long, params As Single)
  400. Declare Sub glPointParameteri Lib "glew32.dll" Alias "__glewPointParameteri" (ByVal pname As Long, ByVal param As Long)
  401. Declare Sub glPointParameteriv Lib "glew32.dll" Alias "__glewPointParameteriv" (ByVal pname As Long, params As Long)
  402. Declare Sub glSecondaryColor3b Lib "glew32.dll" Alias "__glewSecondaryColor3b" (ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte)
  403. Declare Sub glSecondaryColor3bv Lib "glew32.dll" Alias "__glewSecondaryColor3bv" (v As Byte)
  404. Declare Sub glSecondaryColor3d Lib "glew32.dll" Alias "__glewSecondaryColor3d" (ByVal red As Double, ByVal green As Double, ByVal blue As Double)
  405. Declare Sub glSecondaryColor3dv Lib "glew32.dll" Alias "__glewSecondaryColor3dv" (v As Double)
  406. Declare Sub glSecondaryColor3f Lib "glew32.dll" Alias "__glewSecondaryColor3f" (ByVal red As Single, ByVal green As Single, ByVal blue As Single)
  407. Declare Sub glSecondaryColor3fv Lib "glew32.dll" Alias "__glewSecondaryColor3fv" (v As Single)
  408. Declare Sub glSecondaryColor3i Lib "glew32.dll" Alias "__glewSecondaryColor3i" (ByVal red As Long, ByVal green As Long, ByVal blue As Long)
  409. Declare Sub glSecondaryColor3iv Lib "glew32.dll" Alias "__glewSecondaryColor3iv" (v As Long)
  410. Declare Sub glSecondaryColor3s Lib "glew32.dll" Alias "__glewSecondaryColor3s" (ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer)
  411. Declare Sub glSecondaryColor3sv Lib "glew32.dll" Alias "__glewSecondaryColor3sv" (v As Integer)
  412. Declare Sub glSecondaryColor3ub Lib "glew32.dll" Alias "__glewSecondaryColor3ub" (ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte)
  413. Declare Sub glSecondaryColor3ubv Lib "glew32.dll" Alias "__glewSecondaryColor3ubv" (v As Byte)
  414. Declare Sub glSecondaryColor3ui Lib "glew32.dll" Alias "__glewSecondaryColor3ui" (ByVal red As Long, ByVal green As Long, ByVal blue As Long)
  415. Declare Sub glSecondaryColor3uiv Lib "glew32.dll" Alias "__glewSecondaryColor3uiv" (v As Long)
  416. Declare Sub glSecondaryColor3us Lib "glew32.dll" Alias "__glewSecondaryColor3us" (ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer)
  417. Declare Sub glSecondaryColor3usv Lib "glew32.dll" Alias "__glewSecondaryColor3usv" (v As Integer)
  418. Declare Sub glSecondaryColorPointer Lib "glew32.dll" Alias "__glewSecondaryColorPointer" (ByVal size As Long, ByVal type_ As Long, ByVal stride As Long, pointer As Any)
  419. Declare Sub glWindowPos2d Lib "glew32.dll" Alias "__glewWindowPos2d" (ByVal x As Double, ByVal y As Double)
  420. Declare Sub glWindowPos2dv Lib "glew32.dll" Alias "__glewWindowPos2dv" (p As Double)
  421. Declare Sub glWindowPos2f Lib "glew32.dll" Alias "__glewWindowPos2f" (ByVal x As Single, ByVal y As Single)
  422. Declare Sub glWindowPos2fv Lib "glew32.dll" Alias "__glewWindowPos2fv" (p As Single)
  423. Declare Sub glWindowPos2i Lib "glew32.dll" Alias "__glewWindowPos2i" (ByVal x As Long, ByVal y As Long)
  424. Declare Sub glWindowPos2iv Lib "glew32.dll" Alias "__glewWindowPos2iv" (p As Long)
  425. Declare Sub glWindowPos2s Lib "glew32.dll" Alias "__glewWindowPos2s" (ByVal x As Integer, ByVal y As Integer)
  426. Declare Sub glWindowPos2sv Lib "glew32.dll" Alias "__glewWindowPos2sv" (p As Integer)
  427. Declare Sub glWindowPos3d Lib "glew32.dll" Alias "__glewWindowPos3d" (ByVal x As Double, ByVal y As Double, ByVal z As Double)
  428. Declare Sub glWindowPos3dv Lib "glew32.dll" Alias "__glewWindowPos3dv" (p As Double)
  429. Declare Sub glWindowPos3f Lib "glew32.dll" Alias "__glewWindowPos3f" (ByVal x As Single, ByVal y As Single, ByVal z As Single)
  430. Declare Sub glWindowPos3fv Lib "glew32.dll" Alias "__glewWindowPos3fv" (p As Single)
  431. Declare Sub glWindowPos3i Lib "glew32.dll" Alias "__glewWindowPos3i" (ByVal x As Long, ByVal y As Long, ByVal z As Long)
  432. Declare Sub glWindowPos3iv Lib "glew32.dll" Alias "__glewWindowPos3iv" (p As Long)
  433. Declare Sub glWindowPos3s Lib "glew32.dll" Alias "__glewWindowPos3s" (ByVal x As Integer, ByVal y As Integer, ByVal z As Integer)
  434. Declare Sub glWindowPos3sv Lib "glew32.dll" Alias "__glewWindowPos3sv" (p As Integer)

  435. Declare Sub glBeginQuery Lib "glew32.dll" Alias "__glewBeginQuery" (ByVal target As Long, ByVal id As Long)
  436. Declare Sub glBindBuffer Lib "glew32.dll" Alias "__glewBindBuffer" (ByVal target As Long, ByVal buffer As Long)
  437. Declare Sub glBufferData Lib "glew32.dll" Alias "__glewBufferData" (ByVal target As Long, size As Long, data As Any, ByVal usage As Long)
  438. Declare Sub glBufferSubData Lib "glew32.dll" Alias "__glewBufferSubData" (ByVal target As Long, offset As Long, size As Long, data As Any)
  439. Declare Sub glDeleteBuffers Lib "glew32.dll" Alias "__glewDeleteBuffers" (ByVal n As Long, buffers As Long)
  440. Declare Sub glDeleteQueries Lib "glew32.dll" Alias "__glewDeleteQueries" (ByVal n As Long, ids As Long)
  441. Declare Sub glEndQuery Lib "glew32.dll" Alias "__glewEndQuery" (ByVal target As Long)
  442. Declare Sub glGenBuffers Lib "glew32.dll" Alias "__glewGenBuffers" (ByVal n As Long, buffers As Long)
  443. Declare Sub glGenQueries Lib "glew32.dll" Alias "__glewGenQueries" (ByVal n As Long, ids As Long)
  444. Declare Sub glGetBufferParameteriv Lib "glew32.dll" Alias "__glewGetBufferParameteriv" (ByVal target As Long, ByVal pname As Long, params As Long)
  445. Declare Sub glGetBufferPointerv Lib "glew32.dll" Alias "__glewGetBufferPointerv" (ByVal target As Long, ByVal pname As Long, params As Any)
  446. Declare Sub glGetBufferSubData Lib "glew32.dll" Alias "__glewGetBufferSubData" (ByVal target As Long, offset As Long, size As Long, data As Any)
  447. Declare Sub glGetQueryObjectiv Lib "glew32.dll" Alias "__glewGetQueryObjectiv" (ByVal id As Long, ByVal pname As Long, params As Long)
  448. Declare Sub glGetQueryObjectuiv Lib "glew32.dll" Alias "__glewGetQueryObjectuiv" (ByVal id As Long, ByVal pname As Long, params As Long)
  449. Declare Sub glGetQueryiv Lib "glew32.dll" Alias "__glewGetQueryiv" (ByVal target As Long, ByVal pname As Long, params As Long)
  450. Declare Sub glIsBuffer Lib "glew32.dll" Alias "__glewIsBuffer" (ByVal buffer As Long)
  451. Declare Sub glIsQuery Lib "glew32.dll" Alias "__glewIsQuery" (ByVal id As Long)
  452. Declare Sub glMapBuffer Lib "glew32.dll" Alias "__glewMapBuffer" (ByVal target As Long, ByVal access As Long)
  453. Declare Sub glUnmapBuffer Lib "glew32.dll" Alias "__glewUnmapBuffer" (ByVal target As Long)

  454. Declare Sub glAttachShader Lib "glew32.dll" Alias "__glewAttachShader" (ByVal program As Long, ByVal shader As Long)
  455. Declare Sub glBindAttribLocation Lib "glew32.dll" Alias "__glewBindAttribLocation" (ByVal program As Long, ByVal index As Long, name As Byte)
  456. Declare Sub glBlendEquationSeparate Lib "glew32.dll" Alias "__glewBlendEquationSeparate" (ByVal modeRGB As Long, ByVal modeAlpha As Long)
  457. Declare Sub glCompileShader Lib "glew32.dll" Alias "__glewCompileShader" (ByVal shader As Long)
  458. Declare Function glCreateProgram Lib "glew32.dll" Alias "__glewCreateProgram" (ByVal any_ As Any) As Long
  459. Declare Function glCreateShader Lib "glew32.dll" Alias "__glewCreateShader" (ByVal type_ As Long) As Long
  460. Declare Sub glDeleteProgram Lib "glew32.dll" Alias "__glewDeleteProgram" (ByVal program As Long)
  461. Declare Sub glDeleteShader Lib "glew32.dll" Alias "__glewDeleteShader" (ByVal shader As Long)
  462. Declare Sub glDetachShader Lib "glew32.dll" Alias "__glewDetachShader" (ByVal program As Long, ByVal shader As Long)
  463. Declare Sub glDisableVertexAttribArray Lib "glew32.dll" Alias "__glewDisableVertexAttribArray" (ByVal index As Long)
  464. Declare Sub glDrawBuffers Lib "glew32.dll" Alias "__glewDrawBuffers" (ByVal n As Long, bufs As Long)
  465. Declare Sub glEnableVertexAttribArray Lib "glew32.dll" Alias "__glewEnableVertexAttribArray" (ByVal index As Long)
  466. Declare Sub glGetActiveAttrib Lib "glew32.dll" Alias "__glewGetActiveAttrib" (ByVal program As Long, ByVal index As Long, ByVal maxLength As Long, length As Long, size As Long, type_ As Long, name As Byte)
  467. Declare Sub glGetActiveUniform Lib "glew32.dll" Alias "__glewGetActiveUniform" (ByVal program As Long, ByVal index As Long, ByVal maxLength As Long, length As Long, size As Long, type_ As Long, name As Byte)
  468. Declare Sub glGetAttachedShaders Lib "glew32.dll" Alias "__glewGetAttachedShaders" (ByVal program As Long, ByVal maxCount As Long, count As Long, shaders As Long)
  469. Declare Function glGetAttribLocation Lib "glew32.dll" Alias "__glewGetAttribLocation" (ByVal program As Long, name As Byte) As Long
  470. Declare Sub glGetProgramInfoLog Lib "glew32.dll" Alias "__glewGetProgramInfoLog" (ByVal program As Long, ByVal bufsize As Long, length As Long, infoLog As Byte)
  471. Declare Sub glGetProgramiv Lib "glew32.dll" Alias "__glewGetProgramiv" (ByVal program As Long, ByVal pname As Long, param As Long)
  472. Declare Sub glGetShaderInfoLog Lib "glew32.dll" Alias "__glewGetShaderInfoLog" (ByVal shader As Long, ByVal bufsize As Long, length As Long, infoLog As Byte)
  473. Declare Sub glGetShaderSource Lib "glew32.dll" Alias "__glewGetShaderSource" (ByVal obj As Long, ByVal maxLength As Long, length As Long, source As Byte)
  474. Declare Sub glGetShaderiv Lib "glew32.dll" Alias "__glewGetShaderiv" (ByVal shader As Long, ByVal pname As Long, param As Long)
  475. Declare Function glGetUniformLocation Lib "glew32.dll" Alias "__glewGetUniformLocation" (ByVal program As Long, name As Byte) As Long
  476. Declare Sub glGetUniformfv Lib "glew32.dll" Alias "__glewGetUniformfv" (ByVal program As Long, ByVal location As Long, params As Single)
  477. Declare Sub glGetUniformiv Lib "glew32.dll" Alias "__glewGetUniformiv" (ByVal program As Long, ByVal location As Long, params As Long)
  478. Declare Sub glGetVertexAttribPointerv Lib "glew32.dll" Alias "__glewGetVertexAttribPointerv" (ByVal index As Long, ByVal pname As Long, pointer As Any)
  479. Declare Sub glGetVertexAttribdv Lib "glew32.dll" Alias "__glewGetVertexAttribdv" (ByVal index As Long, ByVal pname As Long, params As Double)
  480. Declare Sub glGetVertexAttribfv Lib "glew32.dll" Alias "__glewGetVertexAttribfv" (ByVal index As Long, ByVal pname As Long, params As Single)
  481. Declare Sub glGetVertexAttribiv Lib "glew32.dll" Alias "__glewGetVertexAttribiv" (ByVal index As Long, ByVal pname As Long, params As Long)
  482. Declare Function glIsProgram Lib "glew32.dll" Alias "__glewIsProgram" (ByVal program As Long) As Boolean
  483. Declare Function glIsShader Lib "glew32.dll" Alias "__glewIsShader" (ByVal shader As Long) As Boolean
  484. Declare Sub glLinkProgram Lib "glew32.dll" Alias "__glewLinkProgram" (ByVal program As Long)
  485. Declare Sub glShaderSource Lib "glew32.dll" Alias "__glewShaderSource" (ByVal shader As Long, ByVal count As Long, str As Byte, length As Long)
  486. Declare Sub glStencilFuncSeparate Lib "glew32.dll" Alias "__glewStencilFuncSeparate" (ByVal frontfunc As Long, ByVal backfunc As Long, ByVal ref As Long, ByVal mask As Long)
  487. Declare Sub glStencilMaskSeparate Lib "glew32.dll" Alias "__glewStencilMaskSeparate" (ByVal face As Long, ByVal mask As Long)
  488. Declare Sub glStencilOpSeparate Lib "glew32.dll" Alias "__glewStencilOpSeparate" (ByVal face As Long, ByVal sfail As Long, ByVal dpfail As Long, ByVal dppass As Long)
  489. Declare Sub glUniform1f Lib "glew32.dll" Alias "__glewUniform1f" (ByVal location As Long, ByVal v0 As Single)
  490. Declare Sub glUniform1fv Lib "glew32.dll" Alias "__glewUniform1fv" (ByVal location As Long, ByVal count As Long, value As Single)
  491. Declare Sub glUniform1i Lib "glew32.dll" Alias "__glewUniform1i" (ByVal location As Long, ByVal v0 As Long)
  492. Declare Sub glUniform1iv Lib "glew32.dll" Alias "__glewUniform1iv" (ByVal location As Long, ByVal count As Long, value As Long)
  493. Declare Sub glUniform2f Lib "glew32.dll" Alias "__glewUniform2f" (ByVal location As Long, ByVal v0 As Single, ByVal v1 As Single)
  494. Declare Sub glUniform2fv Lib "glew32.dll" Alias "__glewUniform2fv" (ByVal location As Long, ByVal count As Long, value As Single)
  495. Declare Sub glUniform2i Lib "glew32.dll" Alias "__glewUniform2i" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long)
  496. Declare Sub glUniform2iv Lib "glew32.dll" Alias "__glewUniform2iv" (ByVal location As Long, ByVal count As Long, value As Long)
  497. Declare Sub glUniform3f Lib "glew32.dll" Alias "__glewUniform3f" (ByVal location As Long, ByVal v0 As Single, ByVal v1 As Single, ByVal v2 As Single)
  498. Declare Sub glUniform3fv Lib "glew32.dll" Alias "__glewUniform3fv" (ByVal location As Long, ByVal count As Long, value As Single)
  499. Declare Sub glUniform3i Lib "glew32.dll" Alias "__glewUniform3i" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long)
  500. Declare Sub glUniform3iv Lib "glew32.dll" Alias "__glewUniform3iv" (ByVal location As Long, ByVal count As Long, value As Long)
  501. Declare Sub glUniform4f Lib "glew32.dll" Alias "__glewUniform4f" (ByVal location As Long, ByVal v0 As Single, ByVal v1 As Single, ByVal v2 As Single, ByVal v3 As Single)
  502. Declare Sub glUniform4fv Lib "glew32.dll" Alias "__glewUniform4fv" (ByVal location As Long, ByVal count As Long, value As Single)
  503. Declare Sub glUniform4i Lib "glew32.dll" Alias "__glewUniform4i" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long, ByVal v3 As Long)
  504. Declare Sub glUniform4iv Lib "glew32.dll" Alias "__glewUniform4iv" (ByVal location As Long, ByVal count As Long, value As Long)
  505. Declare Sub glUniformMatrix2fv Lib "glew32.dll" Alias "__glewUniformMatrix2fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  506. Declare Sub glUniformMatrix3fv Lib "glew32.dll" Alias "__glewUniformMatrix3fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  507. Declare Sub glUniformMatrix4fv Lib "glew32.dll" Alias "__glewUniformMatrix4fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  508. Declare Sub glUseProgram Lib "glew32.dll" Alias "__glewUseProgram" (ByVal program As Long)
  509. Declare Sub glValidateProgram Lib "glew32.dll" Alias "__glewValidateProgram" (ByVal program As Long)
  510. Declare Sub glVertexAttrib1d Lib "glew32.dll" Alias "__glewVertexAttrib1d" (ByVal index As Long, ByVal x As Double)
  511. Declare Sub glVertexAttrib1dv Lib "glew32.dll" Alias "__glewVertexAttrib1dv" (ByVal index As Long, v As Double)
  512. Declare Sub glVertexAttrib1f Lib "glew32.dll" Alias "__glewVertexAttrib1f" (ByVal index As Long, ByVal x As Single)
  513. Declare Sub glVertexAttrib1fv Lib "glew32.dll" Alias "__glewVertexAttrib1fv" (ByVal index As Long, v As Single)
  514. Declare Sub glVertexAttrib1s Lib "glew32.dll" Alias "__glewVertexAttrib1s" (ByVal index As Long, ByVal x As Integer)
  515. Declare Sub glVertexAttrib1sv Lib "glew32.dll" Alias "__glewVertexAttrib1sv" (ByVal index As Long, v As Integer)
  516. Declare Sub glVertexAttrib2d Lib "glew32.dll" Alias "__glewVertexAttrib2d" (ByVal index As Long, ByVal x As Double, ByVal y As Double)
  517. Declare Sub glVertexAttrib2dv Lib "glew32.dll" Alias "__glewVertexAttrib2dv" (ByVal index As Long, v As Double)
  518. Declare Sub glVertexAttrib2f Lib "glew32.dll" Alias "__glewVertexAttrib2f" (ByVal index As Long, ByVal x As Single, ByVal y As Single)
  519. Declare Sub glVertexAttrib2fv Lib "glew32.dll" Alias "__glewVertexAttrib2fv" (ByVal index As Long, v As Single)
  520. Declare Sub glVertexAttrib2s Lib "glew32.dll" Alias "__glewVertexAttrib2s" (ByVal index As Long, ByVal x As Integer, ByVal y As Integer)
  521. Declare Sub glVertexAttrib2sv Lib "glew32.dll" Alias "__glewVertexAttrib2sv" (ByVal index As Long, v As Integer)
  522. Declare Sub glVertexAttrib3d Lib "glew32.dll" Alias "__glewVertexAttrib3d" (ByVal index As Long, ByVal x As Double, ByVal y As Double, ByVal z As Double)
  523. Declare Sub glVertexAttrib3dv Lib "glew32.dll" Alias "__glewVertexAttrib3dv" (ByVal index As Long, v As Double)
  524. Declare Sub glVertexAttrib3f Lib "glew32.dll" Alias "__glewVertexAttrib3f" (ByVal index As Long, ByVal x As Single, ByVal y As Single, ByVal z As Single)
  525. Declare Sub glVertexAttrib3fv Lib "glew32.dll" Alias "__glewVertexAttrib3fv" (ByVal index As Long, v As Single)
  526. Declare Sub glVertexAttrib3s Lib "glew32.dll" Alias "__glewVertexAttrib3s" (ByVal index As Long, ByVal x As Integer, ByVal y As Integer, ByVal z As Integer)
  527. Declare Sub glVertexAttrib3sv Lib "glew32.dll" Alias "__glewVertexAttrib3sv" (ByVal index As Long, v As Integer)
  528. Declare Sub glVertexAttrib4Nbv Lib "glew32.dll" Alias "__glewVertexAttrib4Nbv" (ByVal index As Long, v As Byte)
  529. Declare Sub glVertexAttrib4Niv Lib "glew32.dll" Alias "__glewVertexAttrib4Niv" (ByVal index As Long, v As Long)
  530. Declare Sub glVertexAttrib4Nsv Lib "glew32.dll" Alias "__glewVertexAttrib4Nsv" (ByVal index As Long, v As Integer)
  531. Declare Sub glVertexAttrib4Nub Lib "glew32.dll" Alias "__glewVertexAttrib4Nub" (ByVal index As Long, ByVal x As Byte, ByVal y As Byte, ByVal z As Byte, ByVal w As Byte)
  532. Declare Sub glVertexAttrib4Nubv Lib "glew32.dll" Alias "__glewVertexAttrib4Nubv" (ByVal index As Long, v As Byte)
  533. Declare Sub glVertexAttrib4Nuiv Lib "glew32.dll" Alias "__glewVertexAttrib4Nuiv" (ByVal index As Long, v As Long)
  534. Declare Sub glVertexAttrib4Nusv Lib "glew32.dll" Alias "__glewVertexAttrib4Nusv" (ByVal index As Long, v As Integer)
  535. Declare Sub glVertexAttrib4bv Lib "glew32.dll" Alias "__glewVertexAttrib4bv" (ByVal index As Long, v As Byte)
  536. Declare Sub glVertexAttrib4d Lib "glew32.dll" Alias "__glewVertexAttrib4d" (ByVal index As Long, ByVal x As Double, ByVal y As Double, ByVal z As Double, ByVal w As Double)
  537. Declare Sub glVertexAttrib4dv Lib "glew32.dll" Alias "__glewVertexAttrib4dv" (ByVal index As Long, v As Double)
  538. Declare Sub glVertexAttrib4f Lib "glew32.dll" Alias "__glewVertexAttrib4f" (ByVal index As Long, ByVal x As Single, ByVal y As Single, ByVal z As Single, ByVal w As Single)
  539. Declare Sub glVertexAttrib4fv Lib "glew32.dll" Alias "__glewVertexAttrib4fv" (ByVal index As Long, v As Single)
  540. Declare Sub glVertexAttrib4iv Lib "glew32.dll" Alias "__glewVertexAttrib4iv" (ByVal index As Long, v As Long)
  541. Declare Sub glVertexAttrib4s Lib "glew32.dll" Alias "__glewVertexAttrib4s" (ByVal index As Long, ByVal x As Integer, ByVal y As Integer, ByVal z As Integer, ByVal w As Integer)
  542. Declare Sub glVertexAttrib4sv Lib "glew32.dll" Alias "__glewVertexAttrib4sv" (ByVal index As Long, v As Integer)
  543. Declare Sub glVertexAttrib4ubv Lib "glew32.dll" Alias "__glewVertexAttrib4ubv" (ByVal index As Long, v As Byte)
  544. Declare Sub glVertexAttrib4uiv Lib "glew32.dll" Alias "__glewVertexAttrib4uiv" (ByVal index As Long, v As Long)
  545. Declare Sub glVertexAttrib4usv Lib "glew32.dll" Alias "__glewVertexAttrib4usv" (ByVal index As Long, v As Integer)
  546. Declare Sub glVertexAttribPointer Lib "glew32.dll" Alias "__glewVertexAttribPointer" (ByVal index As Long, ByVal size As Long, ByVal type_ As Long, ByVal normalized As Boolean, ByVal stride As Long, pointer As Any)

  547. Declare Sub glUniformMatrix2x3fv Lib "glew32.dll" Alias "__glewUniformMatrix2x3fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  548. Declare Sub glUniformMatrix2x4fv Lib "glew32.dll" Alias "__glewUniformMatrix2x4fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  549. Declare Sub glUniformMatrix3x2fv Lib "glew32.dll" Alias "__glewUniformMatrix3x2fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  550. Declare Sub glUniformMatrix3x4fv Lib "glew32.dll" Alias "__glewUniformMatrix3x4fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  551. Declare Sub glUniformMatrix4x2fv Lib "glew32.dll" Alias "__glewUniformMatrix4x2fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  552. Declare Sub glUniformMatrix4x3fv Lib "glew32.dll" Alias "__glewUniformMatrix4x3fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)

  553. Declare Sub glBeginConditionalRender Lib "glew32.dll" Alias "__glewBeginConditionalRender" (ByVal id As Long, ByVal mode As Long)
  554. Declare Sub glBeginTransformFeedback Lib "glew32.dll" Alias "__glewBeginTransformFeedback" (ByVal primitiveMode As Long)
  555. Declare Sub glBindFragDataLocation Lib "glew32.dll" Alias "__glewBindFragDataLocation" (ByVal program As Long, ByVal colorNumber As Long, name As Byte)
  556. Declare Sub glClampColor Lib "glew32.dll" Alias "__glewClampColor" (ByVal target As Long, ByVal clamp As Long)
  557. Declare Sub glClearBufferfi Lib "glew32.dll" Alias "__glewClearBufferfi" (ByVal buffer As Long, ByVal drawBuffer As Long, ByVal depth As Single, ByVal stencil As Long)
  558. Declare Sub glClearBufferfv Lib "glew32.dll" Alias "__glewClearBufferfv" (ByVal buffer As Long, ByVal drawBuffer As Long, value As Single)
  559. Declare Sub glClearBufferiv Lib "glew32.dll" Alias "__glewClearBufferiv" (ByVal buffer As Long, ByVal drawBuffer As Long, value As Long)
  560. Declare Sub glClearBufferuiv Lib "glew32.dll" Alias "__glewClearBufferuiv" (ByVal buffer As Long, ByVal drawBuffer As Long, value As Long)
  561. Declare Sub glColorMaski Lib "glew32.dll" Alias "__glewColorMaski" (ByVal buf As Long, ByVal red As Boolean, ByVal green As Boolean, ByVal blue As Boolean, ByVal alpha As Boolean)
  562. Declare Sub glDisablei Lib "glew32.dll" Alias "__glewDisablei" (ByVal cap As Long, ByVal index As Long)
  563. Declare Sub glEnablei Lib "glew32.dll" Alias "__glewEnablei" (ByVal cap As Long, ByVal index As Long)
  564. Declare Sub glEndConditionalRender Lib "glew32.dll" Alias "__glewEndConditionalRender" ()
  565. Declare Sub glEndTransformFeedback Lib "glew32.dll" Alias "__glewEndTransformFeedback" ()
  566. Declare Sub glGetBooleani_v Lib "glew32.dll" Alias "__glewGetBooleani_v" (ByVal pname As Long, ByVal index As Long, data As Boolean)
  567. Declare Function glGetFragDataLocation Lib "glew32.dll" Alias "__glewGetFragDataLocation" (ByVal program As Long, name As Byte) As Long
  568. Declare Function glGetStringi Lib "glew32.dll" Alias "__glewGetStringi" (ByVal name As Long, ByVal index As Long) As Long
  569. Declare Sub glGetTexParameterIiv Lib "glew32.dll" Alias "__glewGetTexParameterIiv" (ByVal target As Long, ByVal pname As Long, params As Long)
  570. Declare Sub glGetTexParameterIuiv Lib "glew32.dll" Alias "__glewGetTexParameterIuiv" (ByVal target As Long, ByVal pname As Long, params As Long)
  571. Declare Sub glGetTransformFeedbackVarying Lib "glew32.dll" Alias "__glewGetTransformFeedbackVarying" (ByVal program As Long, ByVal index As Long, ByVal bufsize As Long, length As Long, size As Long, type_ As Long, name As Byte)
  572. Declare Sub glGetUniformuiv Lib "glew32.dll" Alias "__glewGetUniformuiv" (ByVal program As Long, ByVal location As Long, params As Long)
  573. Declare Sub glGetVertexAttribIiv Lib "glew32.dll" Alias "__glewGetVertexAttribIiv" (ByVal index As Long, ByVal pname As Long, params As Long)
  574. Declare Sub glGetVertexAttribIuiv Lib "glew32.dll" Alias "__glewGetVertexAttribIuiv" (ByVal index As Long, ByVal pname As Long, params As Long)
  575. Declare Function glIsEnabledi Lib "glew32.dll" Alias "__glewIsEnabledi" (ByVal cap As Long, ByVal index As Long) As Boolean
  576. Declare Sub glTexParameterIiv Lib "glew32.dll" Alias "__glewTexParameterIiv" (ByVal target As Long, ByVal pname As Long, params As Long)
  577. Declare Sub glTexParameterIuiv Lib "glew32.dll" Alias "__glewTexParameterIuiv" (ByVal target As Long, ByVal pname As Long, params As Long)
  578. Declare Sub glTransformFeedbackVaryings Lib "glew32.dll" Alias "__glewTransformFeedbackVaryings" (ByVal program As Long, ByVal count As Long, varyings As Byte, ByVal bufferMode As Long)
  579. Declare Sub glUniform1ui Lib "glew32.dll" Alias "__glewUniform1ui" (ByVal location As Long, ByVal v0 As Long)
  580. Declare Sub glUniform1uiv Lib "glew32.dll" Alias "__glewUniform1uiv" (ByVal location As Long, ByVal count As Long, value As Long)
  581. Declare Sub glUniform2ui Lib "glew32.dll" Alias "__glewUniform2ui" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long)
  582. Declare Sub glUniform2uiv Lib "glew32.dll" Alias "__glewUniform2uiv" (ByVal location As Long, ByVal count As Long, value As Long)
  583. Declare Sub glUniform3ui Lib "glew32.dll" Alias "__glewUniform3ui" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long)
  584. Declare Sub glUniform3uiv Lib "glew32.dll" Alias "__glewUniform3uiv" (ByVal location As Long, ByVal count As Long, value As Long)
  585. Declare Sub glUniform4ui Lib "glew32.dll" Alias "__glewUniform4ui" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long, ByVal v3 As Long)
  586. Declare Sub glUniform4uiv Lib "glew32.dll" Alias "__glewUniform4uiv" (ByVal location As Long, ByVal count As Long, value As Long)
  587. Declare Sub glVertexAttribI1i Lib "glew32.dll" Alias "__glewVertexAttribI1i" (ByVal index As Long, ByVal v0 As Long)
  588. Declare Sub glVertexAttribI1iv Lib "glew32.dll" Alias "__glewVertexAttribI1iv" (ByVal index As Long, v0 As Long)
  589. Declare Sub glVertexAttribI1ui Lib "glew32.dll" Alias "__glewVertexAttribI1ui" (ByVal index As Long, ByVal v0 As Long)
  590. Declare Sub glVertexAttribI1uiv Lib "glew32.dll" Alias "__glewVertexAttribI1uiv" (ByVal index As Long, v0 As Long)
  591. Declare Sub glVertexAttribI2i Lib "glew32.dll" Alias "__glewVertexAttribI2i" (ByVal index As Long, ByVal v0 As Long, ByVal v1 As Long)
  592. Declare Sub glVertexAttribI2iv Lib "glew32.dll" Alias "__glewVertexAttribI2iv" (ByVal index As Long, v0 As Long)
  593. Declare Sub glVertexAttribI2ui Lib "glew32.dll" Alias "__glewVertexAttribI2ui" (ByVal index As Long, ByVal v0 As Long, ByVal v1 As Long)
  594. Declare Sub glVertexAttribI2uiv Lib "glew32.dll" Alias "__glewVertexAttribI2uiv" (ByVal index As Long, v0 As Long)
  595. Declare Sub glVertexAttribI3i Lib "glew32.dll" Alias "__glewVertexAttribI3i" (ByVal index As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long)
  596. Declare Sub glVertexAttribI3iv Lib "glew32.dll" Alias "__glewVertexAttribI3iv" (ByVal index As Long, v0 As Long)
  597. Declare Sub glVertexAttribI3ui Lib "glew32.dll" Alias "__glewVertexAttribI3ui" (ByVal index As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long)
  598. Declare Sub glVertexAttribI3uiv Lib "glew32.dll" Alias "__glewVertexAttribI3uiv" (ByVal index As Long, v0 As Long)
  599. Declare Sub glVertexAttribI4bv Lib "glew32.dll" Alias "__glewVertexAttribI4bv" (ByVal index As Long, v0 As Byte)
  600. Declare Sub glVertexAttribI4i Lib "glew32.dll" Alias "__glewVertexAttribI4i" (ByVal index As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long, ByVal v3 As Long)
  601. Declare Sub glVertexAttribI4iv Lib "glew32.dll" Alias "__glewVertexAttribI4iv" (ByVal index As Long, v0 As Long)
  602. Declare Sub glVertexAttribI4sv Lib "glew32.dll" Alias "__glewVertexAttribI4sv" (ByVal index As Long, v0 As Integer)
  603. Declare Sub glVertexAttribI4ubv Lib "glew32.dll" Alias "__glewVertexAttribI4ubv" (ByVal index As Long, v0 As Byte)
  604. Declare Sub glVertexAttribI4ui Lib "glew32.dll" Alias "__glewVertexAttribI4ui" (ByVal index As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long, ByVal v3 As Long)
  605. Declare Sub glVertexAttribI4uiv Lib "glew32.dll" Alias "__glewVertexAttribI4uiv" (ByVal index As Long, v0 As Long)
  606. Declare Sub glVertexAttribI4usv Lib "glew32.dll" Alias "__glewVertexAttribI4usv" (ByVal index As Long, v0 As Integer)
  607. Declare Sub glVertexAttribIPointer Lib "glew32.dll" Alias "__glewVertexAttribIPointer" (ByVal index As Long, ByVal size As Long, ByVal type_ As Long, ByVal stride As Long, pointer As Any)

  608. Declare Sub glDrawArraysInstanced Lib "glew32.dll" Alias "__glewDrawArraysInstanced" (ByVal mode As Long, ByVal first As Long, ByVal count As Long, ByVal primcount As Long)
  609. Declare Sub glDrawElementsInstanced Lib "glew32.dll" Alias "__glewDrawElementsInstanced" (ByVal mode As Long, ByVal count As Long, ByVal type_ As Long, indices As Any, ByVal primcount As Long)
  610. Declare Sub glPrimitiveRestartIndex Lib "glew32.dll" Alias "__glewPrimitiveRestartIndex" (ByVal buffer As Long)
  611. Declare Sub glTexBuffer Lib "glew32.dll" Alias "__glewTexBuffer" (ByVal target As Long, ByVal internalFormat As Long, ByVal buffer As Long)

  612. Declare Sub glFramebufferTexture Lib "glew32.dll" Alias "__glewFramebufferTexture" (ByVal target As Long, ByVal attachment As Long, ByVal texture As Long, ByVal level As Long)
  613. Declare Sub glGetBufferParameteri64v Lib "glew32.dll" Alias "__glewGetBufferParameteri64v" (ByVal target As Long, ByVal value As Long, data As Any)
  614. Declare Sub glGetInteger64i_v Lib "glew32.dll" Alias "__glewGetInteger64i_v" (ByVal pname As Long, ByVal index As Long, data As Any)

  615. Declare Sub glVertexAttribDivisor Lib "glew32.dll" Alias "__glewVertexAttribDivisor" (ByVal index As Long, ByVal divisor As Long)

  616. Declare Sub glBlendEquationSeparatei Lib "glew32.dll" Alias "__glewBlendEquationSeparatei" (ByVal buf As Long, ByVal modeRGB As Long, ByVal modeAlpha As Long)
  617. Declare Sub glBlendEquationi Lib "glew32.dll" Alias "__glewBlendEquationi" (ByVal buf As Long, ByVal mode As Long)
  618. Declare Sub glBlendFuncSeparatei Lib "glew32.dll" Alias "__glewBlendFuncSeparatei" (ByVal buf As Long, ByVal srcRGB As Long, ByVal dstRGB As Long, ByVal srcAlpha As Long, ByVal dstAlpha As Long)
  619. Declare Sub glBlendFunci Lib "glew32.dll" Alias "__glewBlendFunci" (ByVal buf As Long, ByVal src As Long, ByVal dst As Long)
  620. Declare Sub glMinSampleShading Lib "glew32.dll" Alias "__glewMinSampleShading" (ByVal value As Single)

  621. Declare Sub glTbufferMask3DFX Lib "glew32.dll" Alias "__glewTbufferMask3DFX" (ByVal mask As Long)
复制代码
着色器部分
  1. Option Explicit

  2. Global Const GL_DOUBLE_MAT2 = &H8F46
  3. Global Const GL_DOUBLE_MAT3 = &H8F47
  4. Global Const GL_DOUBLE_MAT4 = &H8F48
  5. Global Const GL_DOUBLE_MAT2x3 = &H8F49
  6. Global Const GL_DOUBLE_MAT2x4 = &H8F4A
  7. Global Const GL_DOUBLE_MAT3x2 = &H8F4B
  8. Global Const GL_DOUBLE_MAT3x4 = &H8F4C
  9. Global Const GL_DOUBLE_MAT4x2 = &H8F4D
  10. Global Const GL_DOUBLE_MAT4x3 = &H8F4E
  11. Global Const GL_DOUBLE_VEC2 = &H8FFC
  12. Global Const GL_DOUBLE_VEC3 = &H8FFD
  13. Global Const GL_DOUBLE_VEC4 = &H8FFE

  14. Declare Sub glGetUniformdv Lib "glew32.dll" Alias "__glewGetUniformdv" (ByVal program As Long, ByVal location As Long, params As Double)
  15. Declare Sub glUniform1d Lib "glew32.dll" Alias "__glewUniform1d" (ByVal location As Long, ByVal x As Double)
  16. Declare Sub glUniform1dv Lib "glew32.dll" Alias "__glewUniform1dv" (ByVal location As Long, ByVal count As Long, value As Double)
  17. Declare Sub glUniform2d Lib "glew32.dll" Alias "__glewUniform2d" (ByVal location As Long, ByVal x As Double, ByVal y As Double)
  18. Declare Sub glUniform2dv Lib "glew32.dll" Alias "__glewUniform2dv" (ByVal location As Long, ByVal count As Long, value As Double)
  19. Declare Sub glUniform3d Lib "glew32.dll" Alias "__glewUniform3d" (ByVal location As Long, ByVal x As Double, ByVal y As Double, ByVal z As Double)
  20. Declare Sub glUniform3dv Lib "glew32.dll" Alias "__glewUniform3dv" (ByVal location As Long, ByVal count As Long, value As Double)
  21. Declare Sub glUniform4d Lib "glew32.dll" Alias "__glewUniform4d" (ByVal location As Long, ByVal x As Double, ByVal y As Double, ByVal z As Double, ByVal w As Double)
  22. Declare Sub glUniform4dv Lib "glew32.dll" Alias "__glewUniform4dv" (ByVal location As Long, ByVal count As Long, value As Double)
  23. Declare Sub glUniformMatrix2dv Lib "glew32.dll" Alias "__glewUniformMatrix2dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)
  24. Declare Sub glUniformMatrix2x3dv Lib "glew32.dll" Alias "__glewUniformMatrix2x3dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)
  25. Declare Sub glUniformMatrix2x4dv Lib "glew32.dll" Alias "__glewUniformMatrix2x4dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)
  26. Declare Sub glUniformMatrix3dv Lib "glew32.dll" Alias "__glewUniformMatrix3dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)
  27. Declare Sub glUniformMatrix3x2dv Lib "glew32.dll" Alias "__glewUniformMatrix3x2dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)
  28. Declare Sub glUniformMatrix3x4dv Lib "glew32.dll" Alias "__glewUniformMatrix3x4dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)
  29. Declare Sub glUniformMatrix4dv Lib "glew32.dll" Alias "__glewUniformMatrix4dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)
  30. Declare Sub glUniformMatrix4x2dv Lib "glew32.dll" Alias "__glewUniformMatrix4x2dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)
  31. Declare Sub glUniformMatrix4x3dv Lib "glew32.dll" Alias "__glewUniformMatrix4x3dv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Double)

  32. Global Const GL_CONSTANT_COLOR = &H8001
  33. Global Const GL_ONE_MINUS_CONSTANT_COLOR = &H8002
  34. Global Const GL_CONSTANT_ALPHA = &H8003
  35. Global Const GL_ONE_MINUS_CONSTANT_ALPHA = &H8004
  36. Global Const GL_BLEND_COLOR = &H8005
  37. Global Const GL_FUNC_ADD = &H8006
  38. Global Const GL_MIN = &H8007
  39. Global Const GL_MAX = &H8008
  40. Global Const GL_BLEND_EQUATION = &H8009
  41. Global Const GL_FUNC_SUBTRACT = &H800A
  42. Global Const GL_FUNC_REVERSE_SUBTRACT = &H800B
  43. Global Const GL_CONVOLUTION_1D = &H8010
  44. Global Const GL_CONVOLUTION_2D = &H8011
  45. Global Const GL_SEPARABLE_2D = &H8012
  46. Global Const GL_CONVOLUTION_BORDER_MODE = &H8013
  47. Global Const GL_CONVOLUTION_FILTER_SCALE = &H8014
  48. Global Const GL_CONVOLUTION_FILTER_BIAS = &H8015
  49. Global Const GL_REDUCE = &H8016
  50. Global Const GL_CONVOLUTION_FORMAT = &H8017
  51. Global Const GL_CONVOLUTION_WIDTH = &H8018
  52. Global Const GL_CONVOLUTION_HEIGHT = &H8019
  53. Global Const GL_MAX_CONVOLUTION_WIDTH = &H801A
  54. Global Const GL_MAX_CONVOLUTION_HEIGHT = &H801B
  55. Global Const GL_POST_CONVOLUTION_RED_SCALE = &H801C
  56. Global Const GL_POST_CONVOLUTION_GREEN_SCALE = &H801D
  57. Global Const GL_POST_CONVOLUTION_BLUE_SCALE = &H801E
  58. Global Const GL_POST_CONVOLUTION_ALPHA_SCALE = &H801F
  59. Global Const GL_POST_CONVOLUTION_RED_BIAS = &H8020
  60. Global Const GL_POST_CONVOLUTION_GREEN_BIAS = &H8021
  61. Global Const GL_POST_CONVOLUTION_BLUE_BIAS = &H8022
  62. Global Const GL_POST_CONVOLUTION_ALPHA_BIAS = &H8023
  63. Global Const GL_HISTOGRAM = &H8024
  64. Global Const GL_PROXY_HISTOGRAM = &H8025
  65. Global Const GL_HISTOGRAM_WIDTH = &H8026
  66. Global Const GL_HISTOGRAM_FORMAT = &H8027
  67. Global Const GL_HISTOGRAM_RED_SIZE = &H8028
  68. Global Const GL_HISTOGRAM_GREEN_SIZE = &H8029
  69. Global Const GL_HISTOGRAM_BLUE_SIZE = &H802A
  70. Global Const GL_HISTOGRAM_ALPHA_SIZE = &H802B
  71. Global Const GL_HISTOGRAM_LUMINANCE_SIZE = &H802C
  72. Global Const GL_HISTOGRAM_SINK = &H802D
  73. Global Const GL_MINMAX = &H802E
  74. Global Const GL_MINMAX_FORMAT = &H802F
  75. Global Const GL_MINMAX_SINK = &H8030
  76. Global Const GL_TABLE_TOO_LARGE = &H8031
  77. Global Const GL_COLOR_MATRIX = &H80B1
  78. Global Const GL_COLOR_MATRIX_STACK_DEPTH = &H80B2
  79. Global Const GL_MAX_COLOR_MATRIX_STACK_DEPTH = &H80B3
  80. Global Const GL_POST_COLOR_MATRIX_RED_SCALE = &H80B4
  81. Global Const GL_POST_COLOR_MATRIX_GREEN_SCALE = &H80B5
  82. Global Const GL_POST_COLOR_MATRIX_BLUE_SCALE = &H80B6
  83. Global Const GL_POST_COLOR_MATRIX_ALPHA_SCALE = &H80B7
  84. Global Const GL_POST_COLOR_MATRIX_RED_BIAS = &H80B8
  85. Global Const GL_POST_COLOR_MATRIX_GREEN_BIAS = &H80B9
  86. Global Const GL_POST_COLOR_MATRIX_BLUE_BIAS = &H80BA
  87. Global Const GL_POST_COLOR_MATRIX_ALPHA_BIAS = &H80BB
  88. Global Const GL_COLOR_TABLE = &H80D0
  89. Global Const GL_POST_CONVOLUTION_COLOR_TABLE = &H80D1
  90. Global Const GL_POST_COLOR_MATRIX_COLOR_TABLE = &H80D2
  91. Global Const GL_PROXY_COLOR_TABLE = &H80D3
  92. Global Const GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = &H80D4
  93. Global Const GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = &H80D5
  94. Global Const GL_COLOR_TABLE_SCALE = &H80D6
  95. Global Const GL_COLOR_TABLE_BIAS = &H80D7
  96. Global Const GL_COLOR_TABLE_FORMAT = &H80D8
  97. Global Const GL_COLOR_TABLE_WIDTH = &H80D9
  98. Global Const GL_COLOR_TABLE_RED_SIZE = &H80DA
  99. Global Const GL_COLOR_TABLE_GREEN_SIZE = &H80DB
  100. Global Const GL_COLOR_TABLE_BLUE_SIZE = &H80DC
  101. Global Const GL_COLOR_TABLE_ALPHA_SIZE = &H80DD
  102. Global Const GL_COLOR_TABLE_LUMINANCE_SIZE = &H80DE
  103. Global Const GL_COLOR_TABLE_INTENSITY_SIZE = &H80DF
  104. Global Const GL_IGNORE_BORDER = &H8150
  105. Global Const GL_CONSTANT_BORDER = &H8151
  106. Global Const GL_WRAP_BORDER = &H8152
  107. Global Const GL_REPLICATE_BORDER = &H8153
  108. Global Const GL_CONVOLUTION_BORDER_COLOR = &H8154

  109. Declare Sub glColorSubTable Lib "glew32.dll" Alias "__glewColorSubTable" (ByVal target As Long, ByVal start As Long, ByVal count As Long, ByVal format As Long, ByVal type_ As Long, data As Any)
  110. Declare Sub glColorTable Lib "glew32.dll" Alias "__glewColorTable" (ByVal target As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal format As Long, ByVal type_ As Long, table As Any)
  111. Declare Sub glColorTableParameterfv Lib "glew32.dll" Alias "__glewColorTableParameterfv" (ByVal target As Long, ByVal pname As Long, params As Single)
  112. Declare Sub glColorTableParameteriv Lib "glew32.dll" Alias "__glewColorTableParameteriv" (ByVal target As Long, ByVal pname As Long, params As Long)
  113. Declare Sub glConvolutionFilter1D Lib "glew32.dll" Alias "__glewConvolutionFilter1D" (ByVal target As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal format As Long, ByVal type_ As Long, image As Any)
  114. Declare Sub glConvolutionFilter2D Lib "glew32.dll" Alias "__glewConvolutionFilter2D" (ByVal target As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal height As Long, ByVal format As Long, ByVal type_ As Long, image As Any)
  115. Declare Sub glConvolutionParameterf Lib "glew32.dll" Alias "__glewConvolutionParameterf" (ByVal target As Long, ByVal pname As Long, ByVal params As Single)
  116. Declare Sub glConvolutionParameterfv Lib "glew32.dll" Alias "__glewConvolutionParameterfv" (ByVal target As Long, ByVal pname As Long, params As Single)
  117. Declare Sub glConvolutionParameteri Lib "glew32.dll" Alias "__glewConvolutionParameteri" (ByVal target As Long, ByVal pname As Long, ByVal params As Long)
  118. Declare Sub glConvolutionParameteriv Lib "glew32.dll" Alias "__glewConvolutionParameteriv" (ByVal target As Long, ByVal pname As Long, params As Long)
  119. Declare Sub glCopyColorSubTable Lib "glew32.dll" Alias "__glewCopyColorSubTable" (ByVal target As Long, ByVal start As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long)
  120. Declare Sub glCopyColorTable Lib "glew32.dll" Alias "__glewCopyColorTable" (ByVal target As Long, ByVal internalFormat As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long)
  121. Declare Sub glCopyConvolutionFilter1D Lib "glew32.dll" Alias "__glewCopyConvolutionFilter1D" (ByVal target As Long, ByVal internalFormat As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long)
  122. Declare Sub glCopyConvolutionFilter2D Lib "glew32.dll" Alias "__glewCopyConvolutionFilter2D" (ByVal target As Long, ByVal internalFormat As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long)
  123. Declare Sub glGetColorTable Lib "glew32.dll" Alias "__glewGetColorTable" (ByVal target As Long, ByVal format As Long, ByVal type_ As Long, table As Any)
  124. Declare Sub glGetColorTableParameterfv Lib "glew32.dll" Alias "__glewGetColorTableParameterfv" (ByVal target As Long, ByVal pname As Long, params As Single)
  125. Declare Sub glGetColorTableParameteriv Lib "glew32.dll" Alias "__glewGetColorTableParameteriv" (ByVal target As Long, ByVal pname As Long, params As Long)
  126. Declare Sub glGetConvolutionFilter Lib "glew32.dll" Alias "__glewGetConvolutionFilter" (ByVal target As Long, ByVal format As Long, ByVal type_ As Long, image As Any)
  127. Declare Sub glGetConvolutionParameterfv Lib "glew32.dll" Alias "__glewGetConvolutionParameterfv" (ByVal target As Long, ByVal pname As Long, params As Single)
  128. Declare Sub glGetConvolutionParameteriv Lib "glew32.dll" Alias "__glewGetConvolutionParameteriv" (ByVal target As Long, ByVal pname As Long, params As Long)
  129. Declare Sub glGetHistogram Lib "glew32.dll" Alias "__glewGetHistogram" (ByVal target As Long, ByVal reset As Boolean, ByVal format As Long, ByVal type_ As Long, values As Any)
  130. Declare Sub glGetHistogramParameterfv Lib "glew32.dll" Alias "__glewGetHistogramParameterfv" (ByVal target As Long, ByVal pname As Long, params As Single)
  131. Declare Sub glGetHistogramParameteriv Lib "glew32.dll" Alias "__glewGetHistogramParameteriv" (ByVal target As Long, ByVal pname As Long, params As Long)
  132. Declare Sub glGetMinmax Lib "glew32.dll" Alias "__glewGetMinmax" (ByVal target As Long, ByVal reset As Boolean, ByVal format As Long, ByVal types As Long, values As Any)
  133. Declare Sub glGetMinmaxParameterfv Lib "glew32.dll" Alias "__glewGetMinmaxParameterfv" (ByVal target As Long, ByVal pname As Long, params As Single)
  134. Declare Sub glGetMinmaxParameteriv Lib "glew32.dll" Alias "__glewGetMinmaxParameteriv" (ByVal target As Long, ByVal pname As Long, params As Long)
  135. Declare Sub glGetSeparableFilter Lib "glew32.dll" Alias "__glewGetSeparableFilter" (ByVal target As Long, ByVal format As Long, ByVal type_ As Long, row As Any, column As Any, span As Any)
  136. Declare Sub glHistogram Lib "glew32.dll" Alias "__glewHistogram" (ByVal target As Long, ByVal width As Long, ByVal internalFormat As Long, ByVal sink As Boolean)
  137. Declare Sub glMinmax Lib "glew32.dll" Alias "__glewMinmax" (ByVal target As Long, ByVal internalFormat As Long, ByVal sink As Boolean)
  138. Declare Sub glResetHistogram Lib "glew32.dll" Alias "__glewResetHistogram" (ByVal target As Long)
  139. Declare Sub glResetMinmax Lib "glew32.dll" Alias "__glewResetMinmax" (ByVal target As Long)
  140. Declare Sub glSeparableFilter2D Lib "glew32.dll" Alias "__glewSeparableFilter2D" (ByVal target As Long, ByVal internalFormat As Long, ByVal width As Long, ByVal height As Long, ByVal format As Long, ByVal type_ As Long, row As Any, column As Any)

  141. Global Const GL_BLEND_EQUATION_RGB = GL_BLEND_EQUATION
  142. Global Const GL_VERTEX_ATTRIB_ARRAY_ENABLED = &H8622
  143. Global Const GL_VERTEX_ATTRIB_ARRAY_SIZE = &H8623
  144. Global Const GL_VERTEX_ATTRIB_ARRAY_STRIDE = &H8624
  145. Global Const GL_VERTEX_ATTRIB_ARRAY_TYPE = &H8625
  146. Global Const GL_CURRENT_VERTEX_ATTRIB = &H8626
  147. Global Const GL_VERTEX_PROGRAM_POINT_SIZE = &H8642
  148. Global Const GL_VERTEX_PROGRAM_TWO_SIDE = &H8643
  149. Global Const GL_VERTEX_ATTRIB_ARRAY_POINTER = &H8645
  150. Global Const GL_STENCIL_BACK_FUNC = &H8800
  151. Global Const GL_STENCIL_BACK_FAIL = &H8801
  152. Global Const GL_STENCIL_BACK_PASS_DEPTH_FAIL = &H8802
  153. Global Const GL_STENCIL_BACK_PASS_DEPTH_PASS = &H8803
  154. Global Const GL_MAX_DRAW_BUFFERS = &H8824
  155. Global Const GL_DRAW_BUFFER0 = &H8825
  156. Global Const GL_DRAW_BUFFER1 = &H8826
  157. Global Const GL_DRAW_BUFFER2 = &H8827
  158. Global Const GL_DRAW_BUFFER3 = &H8828
  159. Global Const GL_DRAW_BUFFER4 = &H8829
  160. Global Const GL_DRAW_BUFFER5 = &H882A
  161. Global Const GL_DRAW_BUFFER6 = &H882B
  162. Global Const GL_DRAW_BUFFER7 = &H882C
  163. Global Const GL_DRAW_BUFFER8 = &H882D
  164. Global Const GL_DRAW_BUFFER9 = &H882E
  165. Global Const GL_DRAW_BUFFER10 = &H882F
  166. Global Const GL_DRAW_BUFFER11 = &H8830
  167. Global Const GL_DRAW_BUFFER12 = &H8831
  168. Global Const GL_DRAW_BUFFER13 = &H8832
  169. Global Const GL_DRAW_BUFFER14 = &H8833
  170. Global Const GL_DRAW_BUFFER15 = &H8834
  171. Global Const GL_BLEND_EQUATION_ALPHA = &H883D
  172. Global Const GL_POINT_SPRITE = &H8861
  173. Global Const GL_COORD_REPLACE = &H8862
  174. Global Const GL_MAX_VERTEX_ATTRIBS = &H8869
  175. Global Const GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = &H886A
  176. Global Const GL_MAX_TEXTURE_COORDS = &H8871
  177. Global Const GL_MAX_TEXTURE_IMAGE_UNITS = &H8872
  178. Global Const GL_FRAGMENT_SHADER = &H8B30
  179. Global Const GL_VERTEX_SHADER = &H8B31
  180. Global Const GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = &H8B49
  181. Global Const GL_MAX_VERTEX_UNIFORM_COMPONENTS = &H8B4A
  182. Global Const GL_MAX_VARYING_FLOATS = &H8B4B
  183. Global Const GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = &H8B4C
  184. Global Const GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = &H8B4D
  185. Global Const GL_SHADER_TYPE = &H8B4F
  186. Global Const GL_FLOAT_VEC2 = &H8B50
  187. Global Const GL_FLOAT_VEC3 = &H8B51
  188. Global Const GL_FLOAT_VEC4 = &H8B52
  189. Global Const GL_INT_VEC2 = &H8B53
  190. Global Const GL_INT_VEC3 = &H8B54
  191. Global Const GL_INT_VEC4 = &H8B55
  192. Global Const GL_BOOL = &H8B56
  193. Global Const GL_BOOL_VEC2 = &H8B57
  194. Global Const GL_BOOL_VEC3 = &H8B58
  195. Global Const GL_BOOL_VEC4 = &H8B59
  196. Global Const GL_FLOAT_MAT2 = &H8B5A
  197. Global Const GL_FLOAT_MAT3 = &H8B5B
  198. Global Const GL_FLOAT_MAT4 = &H8B5C
  199. Global Const GL_SAMPLER_1D = &H8B5D
  200. Global Const GL_SAMPLER_2D = &H8B5E
  201. Global Const GL_SAMPLER_3D = &H8B5F
  202. Global Const GL_SAMPLER_CUBE = &H8B60
  203. Global Const GL_SAMPLER_1D_SHADOW = &H8B61
  204. Global Const GL_SAMPLER_2D_SHADOW = &H8B62
  205. Global Const GL_DELETE_STATUS = &H8B80
  206. Global Const GL_COMPILE_STATUS = &H8B81
  207. Global Const GL_LINK_STATUS = &H8B82
  208. Global Const GL_VALIDATE_STATUS = &H8B83
  209. Global Const GL_INFO_LOG_LENGTH = &H8B84
  210. Global Const GL_ATTACHED_SHADERS = &H8B85
  211. Global Const GL_ACTIVE_UNIFORMS = &H8B86
  212. Global Const GL_ACTIVE_UNIFORM_MAX_LENGTH = &H8B87
  213. Global Const GL_SHADER_SOURCE_LENGTH = &H8B88
  214. Global Const GL_ACTIVE_ATTRIBUTES = &H8B89
  215. Global Const GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = &H8B8A
  216. Global Const GL_FRAGMENT_SHADER_DERIVATIVE_HINT = &H8B8B
  217. Global Const GL_SHADING_LANGUAGE_VERSION = &H8B8C
  218. Global Const GL_CURRENT_PROGRAM = &H8B8D
  219. Global Const GL_POINT_SPRITE_COORD_ORIGIN = &H8CA0
  220. Global Const GL_LOWER_LEFT = &H8CA1
  221. Global Const GL_UPPER_LEFT = &H8CA2
  222. Global Const GL_STENCIL_BACK_REF = &H8CA3
  223. Global Const GL_STENCIL_BACK_VALUE_MASK = &H8CA4
  224. Global Const GL_STENCIL_BACK_WRITEMASK = &H8CA5

  225. Declare Sub glAttachShader Lib "glew32.dll" Alias "__glewAttachShader" (ByVal program As Long, ByVal shader As Long)
  226. Declare Sub glBindAttribLocation Lib "glew32.dll" Alias "__glewBindAttribLocation" (ByVal program As Long, ByVal index As Long, name As Byte)
  227. Declare Sub glBlendEquationSeparate Lib "glew32.dll" Alias "__glewBlendEquationSeparate" (ByVal modeRGB As Long, ByVal modeAlpha As Long)
  228. Declare Sub glCompileShader Lib "glew32.dll" Alias "__glewCompileShader" (ByVal shader As Long)
  229. Declare Function glCreateProgram Lib "glew32.dll" Alias "__glewCreateProgram" () As Long
  230. Declare Function glCreateShader Lib "glew32.dll" Alias "__glewCreateShader" (ByVal type_ As Long) As Long
  231. Declare Sub glDeleteProgram Lib "glew32.dll" Alias "__glewDeleteProgram" (ByVal program As Long)
  232. Declare Sub glDeleteShader Lib "glew32.dll" Alias "__glewDeleteShader" (ByVal shader As Long)
  233. Declare Sub glDetachShader Lib "glew32.dll" Alias "__glewDetachShader" (ByVal program As Long, ByVal shader As Long)
  234. Declare Sub glDisableVertexAttribArray Lib "glew32.dll" Alias "__glewDisableVertexAttribArray" (ByVal index As Long)
  235. Declare Sub glDrawBuffers Lib "glew32.dll" Alias "__glewDrawBuffers" (ByVal n As Long, bufs As Long)
  236. Declare Sub glEnableVertexAttribArray Lib "glew32.dll" Alias "__glewEnableVertexAttribArray" (ByVal index As Long)
  237. Declare Sub glGetActiveAttrib Lib "glew32.dll" Alias "__glewGetActiveAttrib" (ByVal program As Long, ByVal index As Long, ByVal maxLength As Long, length As Long, size As Long, type_ As Long, name As Byte)
  238. Declare Sub glGetActiveUniform Lib "glew32.dll" Alias "__glewGetActiveUniform" (ByVal program As Long, ByVal index As Long, ByVal maxLength As Long, length As Long, size As Long, type_ As Long, name As Byte)
  239. Declare Sub glGetAttachedShaders Lib "glew32.dll" Alias "__glewGetAttachedShaders" (ByVal program As Long, ByVal maxCount As Long, count As Long, shaders As Long)
  240. Declare Function glGetAttribLocation Lib "glew32.dll" Alias "__glewGetAttribLocation" (ByVal program As Long, name As Byte) As Long
  241. Declare Sub glGetProgramInfoLog Lib "glew32.dll" Alias "__glewGetProgramInfoLog" (ByVal program As Long, ByVal bufsize As Long, length As Long, infoLog As Byte)
  242. Declare Sub glGetProgramiv Lib "glew32.dll" Alias "__glewGetProgramiv" (ByVal program As Long, ByVal pname As Long, param As Long)
  243. Declare Sub glGetShaderInfoLog Lib "glew32.dll" Alias "__glewGetShaderInfoLog" (ByVal shader As Long, ByVal bufsize As Long, length As Long, infoLog As Byte)
  244. Declare Sub glGetShaderSource Lib "glew32.dll" Alias "__glewGetShaderSource" (ByVal obj As Long, ByVal maxLength As Long, length As Long, source As Byte)
  245. Declare Sub glGetShaderiv Lib "glew32.dll" Alias "__glewGetShaderiv" (ByVal shader As Long, ByVal pname As Long, param As Long)
  246. Declare Function glGetUniformLocation Lib "glew32.dll" Alias "__glewGetUniformLocation" (ByVal program As Long, name As Byte) As Long
  247. Declare Sub glGetUniformfv Lib "glew32.dll" Alias "__glewGetUniformfv" (ByVal program As Long, ByVal location As Long, params As Single)
  248. Declare Sub glGetUniformiv Lib "glew32.dll" Alias "__glewGetUniformiv" (ByVal program As Long, ByVal location As Long, params As Single)
  249. Declare Sub glGetVertexAttribPointerv Lib "glew32.dll" Alias "__glewGetVertexAttribPointerv" (ByVal index As Long, ByVal pname As Long, pointer As Any)
  250. Declare Sub glGetVertexAttribdv Lib "glew32.dll" Alias "__glewGetVertexAttribdv" (ByVal index As Long, ByVal pname As Long, params As Double)
  251. Declare Sub glGetVertexAttribfv Lib "glew32.dll" Alias "__glewGetVertexAttribfv" (ByVal index As Long, ByVal pname As Long, params As Single)
  252. Declare Sub glGetVertexAttribiv Lib "glew32.dll" Alias "__glewGetVertexAttribiv" (ByVal index As Long, ByVal pname As Long, params As Single)
  253. Declare Function glIsProgram Lib "glew32.dll" Alias "__glewIsProgram" (ByVal program As Long) As Boolean
  254. Declare Function glIsShader Lib "glew32.dll" Alias "__glewIsShader" (ByVal shader As Long) As Boolean
  255. Declare Sub glLinkProgram Lib "glew32.dll" Alias "__glewLinkProgram" (ByVal program As Long)
  256. Declare Sub glShaderSource Lib "glew32.dll" Alias "__glewShaderSource" (ByVal shader As Long, ByVal count As Long, string_ As Any, length As Long)
  257. Declare Sub glStencilFuncSeparate Lib "glew32.dll" Alias "__glewStencilFuncSeparate" (ByVal frontfunc As Long, ByVal backfunc As Long, ByVal ref As Long, ByVal mask As Long)
  258. Declare Sub glStencilMaskSeparate Lib "glew32.dll" Alias "__glewStencilMaskSeparate" (ByVal face As Long, ByVal mask As Long)
  259. Declare Sub glStencilOpSeparate Lib "glew32.dll" Alias "__glewStencilOpSeparate" (ByVal face As Long, ByVal sfail As Long, ByVal dpfail As Long, ByVal dppass As Long)
  260. Declare Sub glUniform1f Lib "glew32.dll" Alias "__glewUniform1f" (ByVal location As Long, ByVal v0 As Single)
  261. Declare Sub glUniform1fv Lib "glew32.dll" Alias "__glewUniform1fv" (ByVal location As Long, ByVal count As Long, value As Single)
  262. Declare Sub glUniform1i Lib "glew32.dll" Alias "__glewUniform1i" (ByVal location As Long, ByVal v0 As Long)
  263. Declare Sub glUniform1iv Lib "glew32.dll" Alias "__glewUniform1iv" (ByVal location As Long, ByVal count As Long, value As Long)
  264. Declare Sub glUniform2f Lib "glew32.dll" Alias "__glewUniform2f" (ByVal location As Long, ByVal v0 As Single, ByVal v1 As Single)
  265. Declare Sub glUniform2fv Lib "glew32.dll" Alias "__glewUniform2fv" (ByVal location As Long, ByVal count As Long, value As Single)
  266. Declare Sub glUniform2i Lib "glew32.dll" Alias "__glewUniform2i" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long)
  267. Declare Sub glUniform2iv Lib "glew32.dll" Alias "__glewUniform2iv" (ByVal location As Long, ByVal count As Long, value As Long)
  268. Declare Sub glUniform3f Lib "glew32.dll" Alias "__glewUniform3f" (ByVal location As Long, ByVal v0 As Single, ByVal v1 As Single, ByVal v2 As Single)
  269. Declare Sub glUniform3fv Lib "glew32.dll" Alias "__glewUniform3fv" (ByVal location As Long, ByVal count As Long, value As Single)
  270. Declare Sub glUniform3i Lib "glew32.dll" Alias "__glewUniform3i" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long)
  271. Declare Sub glUniform3iv Lib "glew32.dll" Alias "__glewUniform3iv" (ByVal location As Long, ByVal count As Long, value As Long)
  272. Declare Sub glUniform4f Lib "glew32.dll" Alias "__glewUniform4f" (ByVal location As Long, ByVal v0 As Single, ByVal v1 As Single, ByVal v2 As Single, ByVal v3 As Single)
  273. Declare Sub glUniform4fv Lib "glew32.dll" Alias "__glewUniform4fv" (ByVal location As Long, ByVal count As Long, value As Single)
  274. Declare Sub glUniform4i Lib "glew32.dll" Alias "__glewUniform4i" (ByVal location As Long, ByVal v0 As Long, ByVal v1 As Long, ByVal v2 As Long, ByVal v3 As Long)
  275. Declare Sub glUniform4iv Lib "glew32.dll" Alias "__glewUniform4iv" (ByVal location As Long, ByVal count As Long, value As Long)
  276. Declare Sub glUniformMatrix2fv Lib "glew32.dll" Alias "__glewUniformMatrix2fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  277. Declare Sub glUniformMatrix3fv Lib "glew32.dll" Alias "__glewUniformMatrix3fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  278. Declare Sub glUniformMatrix4fv Lib "glew32.dll" Alias "__glewUniformMatrix4fv" (ByVal location As Long, ByVal count As Long, ByVal transpose As Boolean, value As Single)
  279. Declare Sub glUseProgram Lib "glew32.dll" Alias "__glewUseProgram" (ByVal program As Long)
  280. Declare Sub glValidateProgram Lib "glew32.dll" Alias "__glewValidateProgram" (ByVal program As Long)
  281. Declare Sub glVertexAttrib1d Lib "glew32.dll" Alias "__glewVertexAttrib1d" (ByVal index As Long, ByVal x As Double)
  282. Declare Sub glVertexAttrib1dv Lib "glew32.dll" Alias "__glewVertexAttrib1dv" (ByVal index As Long, v As Double)
  283. Declare Sub glVertexAttrib1f Lib "glew32.dll" Alias "__glewVertexAttrib1f" (ByVal index As Long, ByVal x As Single)
  284. Declare Sub glVertexAttrib1fv Lib "glew32.dll" Alias "__glewVertexAttrib1fv" (ByVal index As Long, v As Single)
  285. Declare Sub glVertexAttrib1s Lib "glew32.dll" Alias "__glewVertexAttrib1s" (ByVal index As Long, ByVal x As Integer)
  286. Declare Sub glVertexAttrib1sv Lib "glew32.dll" Alias "__glewVertexAttrib1sv" (ByVal index As Long, v As Integer)
  287. Declare Sub glVertexAttrib2d Lib "glew32.dll" Alias "__glewVertexAttrib2d" (ByVal index As Long, ByVal x As Double, ByVal y As Double)
  288. Declare Sub glVertexAttrib2dv Lib "glew32.dll" Alias "__glewVertexAttrib2dv" (ByVal index As Long, v As Double)
  289. Declare Sub glVertexAttrib2f Lib "glew32.dll" Alias "__glewVertexAttrib2f" (ByVal index As Long, ByVal x As Single, ByVal y As Single)
  290. Declare Sub glVertexAttrib2fv Lib "glew32.dll" Alias "__glewVertexAttrib2fv" (ByVal index As Long, v As Single)
  291. Declare Sub glVertexAttrib2s Lib "glew32.dll" Alias "__glewVertexAttrib2s" (ByVal index As Long, ByVal x As Integer, ByVal y As Integer)
  292. Declare Sub glVertexAttrib2sv Lib "glew32.dll" Alias "__glewVertexAttrib2sv" (ByVal index As Long, v As Integer)
  293. Declare Sub glVertexAttrib3d Lib "glew32.dll" Alias "__glewVertexAttrib3d" (ByVal index As Long, ByVal x As Double, ByVal y As Double, ByVal z As Double)
  294. Declare Sub glVertexAttrib3dv Lib "glew32.dll" Alias "__glewVertexAttrib3dv" (ByVal index As Long, v As Double)
  295. Declare Sub glVertexAttrib3f Lib "glew32.dll" Alias "__glewVertexAttrib3f" (ByVal index As Long, ByVal x As Single, ByVal y As Single, ByVal z As Single)
  296. Declare Sub glVertexAttrib3fv Lib "glew32.dll" Alias "__glewVertexAttrib3fv" (ByVal index As Long, v As Single)
  297. Declare Sub glVertexAttrib3s Lib "glew32.dll" Alias "__glewVertexAttrib3s" (ByVal index As Long, ByVal x As Integer, ByVal y As Integer, ByVal z As Integer)
  298. Declare Sub glVertexAttrib3sv Lib "glew32.dll" Alias "__glewVertexAttrib3sv" (ByVal index As Long, v As Integer)
  299. Declare Sub glVertexAttrib4Nbv Lib "glew32.dll" Alias "__glewVertexAttrib4Nbv" (ByVal index As Long, v As Byte)
  300. Declare Sub glVertexAttrib4Niv Lib "glew32.dll" Alias "__glewVertexAttrib4Niv" (ByVal index As Long, v As Long)
  301. Declare Sub glVertexAttrib4Nsv Lib "glew32.dll" Alias "__glewVertexAttrib4Nsv" (ByVal index As Long, v As Integer)
  302. Declare Sub glVertexAttrib4Nub Lib "glew32.dll" Alias "__glewVertexAttrib4Nub" (ByVal index As Long, ByVal x As Byte, ByVal y As Byte, ByVal z As Byte, ByVal w As Byte)
  303. Declare Sub glVertexAttrib4Nubv Lib "glew32.dll" Alias "__glewVertexAttrib4Nubv" (ByVal index As Long, v As Byte)
  304. Declare Sub glVertexAttrib4Nuiv Lib "glew32.dll" Alias "__glewVertexAttrib4Nuiv" (ByVal index As Long, v As Long)
  305. Declare Sub glVertexAttrib4Nusv Lib "glew32.dll" Alias "__glewVertexAttrib4Nusv" (ByVal index As Long, v As Integer)
  306. Declare Sub glVertexAttrib4bv Lib "glew32.dll" Alias "__glewVertexAttrib4bv" (ByVal index As Long, v As Byte)
  307. Declare Sub glVertexAttrib4d Lib "glew32.dll" Alias "__glewVertexAttrib4d" (ByVal index As Long, ByVal x As Double, ByVal y As Double, ByVal z As Double, ByVal w As Double)
  308. Declare Sub glVertexAttrib4dv Lib "glew32.dll" Alias "__glewVertexAttrib4dv" (ByVal index As Long, v As Double)
  309. Declare Sub glVertexAttrib4f Lib "glew32.dll" Alias "__glewVertexAttrib4f" (ByVal index As Long, ByVal x As Single, ByVal y As Single, ByVal z As Single, ByVal w As Single)
  310. Declare Sub glVertexAttrib4fv Lib "glew32.dll" Alias "__glewVertexAttrib4fv" (ByVal index As Long, v As Single)
  311. Declare Sub glVertexAttrib4iv Lib "glew32.dll" Alias "__glewVertexAttrib4iv" (ByVal index As Long, v As Long)
  312. Declare Sub glVertexAttrib4s Lib "glew32.dll" Alias "__glewVertexAttrib4s" (ByVal index As Long, ByVal x As Integer, ByVal y As Integer, ByVal z As Integer, ByVal w As Integer)
  313. Declare Sub glVertexAttrib4sv Lib "glew32.dll" Alias "__glewVertexAttrib4sv" (ByVal index As Long, v As Integer)
  314. Declare Sub glVertexAttrib4ubv Lib "glew32.dll" Alias "__glewVertexAttrib4ubv" (ByVal index As Long, v As Byte)
  315. Declare Sub glVertexAttrib4uiv Lib "glew32.dll" Alias "__glewVertexAttrib4uiv" (ByVal index As Long, v As Long)
  316. Declare Sub glVertexAttrib4usv Lib "glew32.dll" Alias "__glewVertexAttrib4usv" (ByVal index As Long, v As Integer)
  317. Declare Sub glVertexAttribPointer Lib "glew32.dll" Alias "__glewVertexAttribPointer" (ByVal index As Long, ByVal size As Long, ByVal type_ As Long, ByVal normalized As Boolean, ByVal stride As Long, pointer As Any)

  318. Global Const GL_PROGRAM_BINARY_RETRIEVABLE_HINT = &H8257
  319. Global Const GL_PROGRAM_BINARY_LENGTH = &H8741
  320. Global Const GL_NUM_PROGRAM_BINARY_FORMATS = &H87FE
  321. Global Const GL_PROGRAM_BINARY_FORMATS = &H87FF
复制代码
杂项:
  1. Option Explicit

  2. 'pixel types
  3. Global Const PFD_TYPE_RGBA = 0
  4. Global Const PFD_TYPE_COLORINDEX = 1

  5. 'layer types
  6. Global Const PFD_MAIN_PLANE = 0
  7. Global Const PFD_OVERLAY_PLANE = 1
  8. Global Const PFD_UNDERLAY_PLANE = (-1)

  9. 'PIXELFORMATDESCRIPTOR flags
  10. Global Const PFD_DOUBLEBUFFER = &H1
  11. Global Const PFD_STEREO = &H2
  12. Global Const PFD_DRAW_TO_WINDOW = &H4
  13. Global Const PFD_DRAW_TO_BITMAP = &H8
  14. Global Const PFD_SUPPORT_GDI = &H10
  15. Global Const PFD_SUPPORT_OPENGL = &H20
  16. Global Const PFD_GENERIC_FORMAT = &H40
  17. Global Const PFD_NEED_PALETTE = &H80
  18. Global Const PFD_NEED_SYSTEM_PALETTE = &H100
  19. Global Const PFD_SWAP_EXCHANGE = &H200
  20. Global Const PFD_SWAP_COPY = &H400
  21. Global Const PFD_SWAP_LAYER_BUFFERS = &H800
  22. Global Const PFD_GENERIC_ACCELERATED = &H1000
  23. Global Const PFD_SUPPORT_DIRECTDRAW = &H2000

  24. 'PIXELFORMATDESCRIPTOR flags for use in ChoosePixelFormat only
  25. Global Const PFD_DEPTH_DONTCARE = &H20000000
  26. Global Const PFD_DOUBLEBUFFER_DONTCARE = &H40000000
  27. Global Const PFD_STEREO_DONTCARE = &H80000000


  28. Type PIXELFORMATDESCRIPTOR
  29.     nSize As Integer
  30.     nVersion As Integer
  31.     dwFlags As Long
  32.     iPixelType As Byte
  33.     cColorBits As Byte
  34.     cRedBits As Byte
  35.     cRedShift As Byte
  36.     cGreenBits As Byte
  37.     cGreenShift As Byte
  38.     cBlueBits As Byte
  39.     cBlueShift As Byte
  40.     cAlphaBits As Byte
  41.     cAlphaShift As Byte
  42.     cAccumBits As Byte
  43.     cAccumRedBits As Byte
  44.     cAccumGreenBits As Byte
  45.     cAccumBlueBits As Byte
  46.     cAccumAlphaBits As Byte
  47.     cDepthBits As Byte
  48.     cStencilBits As Byte
  49.     cAuxBuffers As Byte
  50.     iLayerType As Byte
  51.     bReserved As Byte
  52.     dwLayerMask As Long
  53.     dwVisibleMask As Long
  54.     dwDamageMask As Long
  55. End Type

  56. Declare Function ChoosePixelFormat Lib "gdi32.dll" (ByVal hDC As Long, ppfd As PIXELFORMATDESCRIPTOR) As Long
  57. Declare Function SetPixelFormat Lib "gdi32.dll" (ByVal hDC As Long, ByVal iPixelFormat As Long, ppfd As PIXELFORMATDESCRIPTOR) As Long

  58. Declare Function wglCreateContext Lib "opengl32.dll" (ByVal hDC As Long) As Long
  59. Declare Function wglMakeCurrent Lib "opengl32.dll" (ByVal hDC As Long, ByVal hRC As Long) As Long
  60. Declare Function SwapBuffers Lib "gdi32.dll" (ByVal hDC As Long) As Long
  61. Declare Function wglDeleteContext Lib "opengl32.dll" (ByVal hRC As Long) As Long

  62. Declare Function gluScaleImage Lib "glu32.dll" (ByVal format As Long, ByVal widthin As Long, ByVal heightin As Long, ByVal typein As Long, datain As Any, ByVal widthout As Long, ByVal heightout As Long, ByVal typeout As Long, dataout As Any) As Long
复制代码
VBOpenGL.7z (100.79 KB, 下载次数: 67, 售价: 4 个宅币)

本帖被以下淘专辑推荐:

回复

使用道具 举报

发表于 2017-4-17 03:13:33 | 显示全部楼层
谢谢分享
回复

使用道具 举报

发表于 2017-5-12 10:13:49 | 显示全部楼层
谢谢分享好code,目前研究怎在VB6中使用 Opengl
回复 赞! 靠!

使用道具 举报

发表于 2017-10-16 12:22:41 | 显示全部楼层

感谢大神,在此学习了。
回复 赞! 靠!

使用道具 举报

发表于 2017-10-19 12:30:19 | 显示全部楼层
这个支持哪个版本的opengl啊?
回复 赞! 靠!

使用道具 举报

发表于 2018-2-5 14:27:07 | 显示全部楼层
请问,这个vb的程序怎么使用啊?
回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2018-2-7 11:55:48 | 显示全部楼层
wnglng2 发表于 2017-10-19 12:30
这个支持哪个版本的opengl啊?

因为用的是glew32.dll的导出函数,所以取决于glew32.dll的版本——其实我只做了一部分函数的声明。
回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2018-2-7 11:56:26 | 显示全部楼层
banjinjiu 发表于 2018-2-5 14:27
请问,这个vb的程序怎么使用啊?

下载的模块只是给你提供了访问opengl函数的接口而已。也就是你可以像其他程序使用opengl那样,去用VB来使用opengl。
回复 赞! 靠!

使用道具 举报

发表于 2018-2-8 15:29:30 | 显示全部楼层
本帖最后由 banjinjiu 于 2018-2-8 15:47 编辑

感谢版主回复!
上次好容易在一个网站下载了vbogl.tlb,粘贴到"C:\Windows\System32\"下,运行regsvr32 "C:\Windows\System32\vbogl.tlb",提示:模块与windows版本不兼容。检查模块是否与regsvr32.exe的32位或64位的版本兼容。
我使用的电脑是win7-32位系统,不知道怎么就不兼容,是系统问题,还是vbogl.tlb版本问题(听说是opengl二点几的版本),我的opengl是4.0版本。
我是一个新手,技术太低,还往版主提携。
我发现版主的程序,代码有些重复了,比如API部分glAttachShader函数与着色器部分有些都重复了,是怎么回事?没法运行,是把这个程序都放在一个模块,还是分几个模块?
回复 赞! 靠!

使用道具 举报

发表于 2018-2-8 16:23:21 | 显示全部楼层
成功了,我的第一个VB6.0-OpenGL程序!刚才无意中在工程-引用vbogl.tlb,终于能引用VB OpenGL API 1.2 (ANSI)成功。前几天在家中的机器出现模块注册不成功,引用也不成功,今天在幼儿园一样的系统,竟然成功了,欣喜若狂。
回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2018-2-8 20:43:27 | 显示全部楼层
banjinjiu 发表于 2018-2-8 15:29
感谢版主回复!
上次好容易在一个网站下载了vbogl.tlb,粘贴到"C:\Windows\System32\"下,运行regsvr32 "C: ...

估计是要删掉的。我本来是想把着色器的部分单独拿出来做个模块的。
回复 赞! 靠!

使用道具 举报

发表于 2018-2-10 16:37:22 | 显示全部楼层
版主,你好!再求你一个事情,我到现在都不知道,OpenGL与VB的函数对应关系,常量在VB中的名称,你能否做个OpenGL与VB的函数、常量对应表,比如这样的。
OpenGL        VB
glClearColor        glClearColor
GL_COLOR_BUFFER_BIT        clrColorBufferBit
GL_DEPTH_BUFFER_BIT       
GL_PROJECTION        mmProjection
glutSwapBuffers        SwapBuffers
我知道,这个工作量可能大了,哪怕是常见的一些也行,我只会这几个,或者你有这方面的资料,发给我,我来做。
麻烦版主了!
回复 赞! 靠!

使用道具 举报

发表于 2018-2-10 20:08:34 | 显示全部楼层
这是OpenGL程序
  1. #define GLUT_DISABLE_ATEXIT_HACK
  2. #include <GL/glut.h>  
  3. #include <Windows.h>

  4. void display(void)
  5. {
  6.         /*清楚所有的像素*/
  7.         glClear(GL_COLOR_BUFFER_BIT);
  8.         glColor3f(1.0,1.0,1.0);
  9.         glLoadIdentity();//将当前矩阵设置为单位矩阵
  10.         gluLookAt(0.0,0.0,5.0,0.0,0.0,0.0,0.0,1.0,0.0);
  11.         glScalef(1.0,2.0,1.0);
  12.         glutWireCube(1.0);
  13.         /*不等待
  14.         马上开始处理保存在缓冲区中的OpenGL函数调用*/
  15.         glFlush();
  16. }
  17. void init(void)
  18. {
  19.         /*指定清楚颜色*/
  20.         glClearColor(0.0,0.0,0.0,0.0);
  21.         /*初始化视景体*/
  22.         glShadeModel(GL_FLAT);
  23. }
  24. void reshape(int w,int h)
  25. {
  26.         glViewport(0,0,(GLsizei) w,(GLsizei) h);
  27.         glMatrixMode(GL_PROJECTION);
  28.         glLoadIdentity();
  29.         glFrustum(-1.0,1.0,-1.0,1.0,1.5,20.0);
  30.         glMatrixMode(GL_MODELVIEW);
  31. }
  32. int main(int argc, char** argv)
  33. {
  34.         glutInit(&argc,argv);
  35.         glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);
  36.         glutInitWindowSize(500,500);
  37.         glutInitWindowPosition(100,100);
  38.         glutCreateWindow(argv[0]);
  39.         init();
  40.         glutDisplayFunc(display);
  41.         glutReshapeFunc(reshape);
  42.         glutMainLoop();
  43.         return 0;
  44. }
复制代码

这是VB程序
  1. Sub EnableOpenGL(ghDC As Long)
  2.     On Error GoTo Err
  3.     Dim pfd As PIXELFORMATDESCRIPTOR                'pfd像素格式设置.
  4.     hWnd& = FindWindow(vbNullString, Me.Caption)
  5.     hDC& = GetDC(hWnd)
  6.     ZeroMemory pfd, Len(pfd)
  7.     pfd.nSize = Len(pfd)                        '大小
  8.     pfd.nVersion = 1                            '版本
  9.     pfd.dwFlags = PFD_DRAW_TO_WINDOW Or PFD_SUPPORT_OPENGL Or PFD_DOUBLEBUFFER '标志
  10.     pfd.iPixelType = PFD_TYPE_RGBA              '像素类型
  11.     pfd.cColorBits = 24                         '颜色位数
  12.     pfd.cDepthBits = 32                         '位宽
  13.     pfd.iLayerType = PFD_MAIN_PLANE             '图层类型
  14.     Dim PixFormat As Long
  15.     PixFormat = ChoosePixelFormat(ghDC, pfd)    '选择设备中最匹配我们所设置的像素
  16.     SetPixelFormat ghDC, PixFormat, pfd         '设置成当前的像素
  17.     hRC = wglCreateContext(ghDC)                '建立翻译描述表
  18.     wglMakeCurrent ghDC, hRC                    '将建立的翻译描述表设置为当前
  19.     Exit Sub
  20. Err:
  21.     MsgBox "不能建立OpenGL环境!", vbCritical, "Error"
  22.     End
  23. End Sub

  24. Private Sub Display()
  25.     hWnd& = FindWindow(vbNullString, Me.Caption)
  26.     hDC& = GetDC(hWnd)
  27.     glClearColor 0#, 0#, 1#, 0#   '清空颜色缓存的RGBA颜色值
  28.     glClear clrColorBufferBit     '为绘下帧曲面清除缓冲区
  29.     glColor3f 1, 1, 1       '设置显示的字体颜色
  30.     glPushMatrix                  '依据当前模式(模式-视图矩阵)使矩阵入栈
  31.     glPopMatrix                 '依据当前模式(模式-视图矩阵)使矩阵出栈
  32.     SwapBuffers hDC             '切换缓存
  33. End Sub
  34. Private Sub Init()
  35.     glClearColor 0, 0, 0, 0
  36.     glShadeModel GL_FLAT
  37. End Sub

  38. Private Sub reshape(ByVal w As Integer, ByVal h As Integer)
  39.     glViewport 0, 0, w, h
  40.     glMatrixMode mmProjection
  41.     glLoadIdentity
  42.     glFrustum -1, 1, -1, 1, 1.5, 20
  43.     glMatrixMode mmModelView
  44. End Sub
复制代码

请问怎么调用啊?
EnableOpenGL (hDC&)
Call reshape(5, 8)
Display
好像没什么反应啊?就是一个蓝色的底屏。
版主帮我,谢谢!
回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2018-2-10 22:38:46 | 显示全部楼层
banjinjiu 发表于 2018-2-10 16:37
版主,你好!再求你一个事情,我到现在都不知道,OpenGL与VB的函数对应关系,常量在VB中的名称,你能否做个 ...


有关“OpenGL与VB的函数对应关系”的问题,那就是:那是你用的vbogl.tlb的“个性”,它自己把“GL_COLOR_BUFFER_BIT”定义成了“clrColorBufferBit”了。我在别的帖子里提供过自己的tlb,把glew封装了一遍,你可以用那个。

至于它为什么不使用OpenGL的常量原来的名字?我也是不理解的。

https://www.0xaa55.com/forum.php?mod=viewthread&tid=2031
回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2018-2-10 22:40:13 | 显示全部楼层
banjinjiu 发表于 2018-2-10 20:08
这是OpenGL程序
[code]#define GLUT_DISABLE_ATEXIT_HACK
#include   

reshape函数并没有执行任何绘图操作,所以是蓝色的底屏。它就是设置了一下投影矩阵而已。
回复 赞! 靠!

使用道具 举报

发表于 2018-2-11 10:36:05 | 显示全部楼层
本帖最后由 banjinjiu 于 2018-2-11 10:39 编辑
0xAA55 发表于 2018-2-10 22:40
reshape函数并没有执行任何绘图操作,所以是蓝色的底屏。它就是设置了一下投影矩阵而已。 ...


版主,还是不太懂,调用的顺序是怎样的?那程序怎么修改,才能成功画长方体,请版主帮忙,谢谢。
关键是网络上说的太少了,没有参考的实例,我只看了画矩形的例子,还有三角形、圆、五角星,别的调用什么的,还是不明白。
多次麻烦,再次感谢!
回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2018-2-11 16:17:49 | 显示全部楼层
banjinjiu 发表于 2018-2-11 10:36
版主,还是不太懂,调用的顺序是怎样的?那程序怎么修改,才能成功画长方体,请版主帮忙,谢谢。
关键是 ...

你看到了画矩形的例子的话你就应该知道怎么画长方形了啊。

OpenGL的特点是它有很多的参数要调,然后调好了,再绘制。
绘制的方法很多,但对于简单的多边形,可以直接用glBegin(形状类型);glEnd();的这种方式。
此外我建议你加入VIP教学班,里面会告诉你怎么绘制的。
回复 赞! 靠!

使用道具 举报

发表于 2018-2-11 18:55:40 | 显示全部楼层
请教报名方法,谢谢。
回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2018-2-11 20:25:02 | 显示全部楼层
banjinjiu 发表于 2018-2-11 18:55
请教报名方法,谢谢。

请在QQ上联系我报名。我的QQ:838816058
回复 赞! 靠!

使用道具 举报

发表于 2018-2-11 22:21:37 | 显示全部楼层
我已经加你,(网名:东东哥),不知版主为何没反应?
回复 赞! 靠!

使用道具 举报

本版积分规则

QQ|Archiver|小黑屋|技术宅的结界 ( 滇ICP备16008837号 )|网站地图

GMT+8, 2024-12-27 13:45 , Processed in 0.051730 second(s), 30 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表