gl.nim 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537
  1. #
  2. #
  3. # Adaption of the delphi3d.net OpenGL units to FreePascal
  4. # Sebastian Guenther (sg@freepascal.org) in 2002
  5. # These units are free to use
  6. #
  7. #******************************************************************************
  8. # Converted to Delphi by Tom Nuydens (tom@delphi3d.net)
  9. # For the latest updates, visit Delphi3D: http://www.delphi3d.net
  10. #******************************************************************************
  11. when defined(windows):
  12. {.push, callconv: stdcall.}
  13. else:
  14. {.push, callconv: cdecl.}
  15. when defined(windows):
  16. const
  17. dllname* = "opengl32.dll"
  18. elif defined(macosx):
  19. const
  20. dllname* = "/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib"
  21. else:
  22. const
  23. dllname* = "libGL.so.1"
  24. type
  25. PGLenum* = ptr TGLenum
  26. PGLboolean* = ptr TGLboolean
  27. PGLbitfield* = ptr TGLbitfield
  28. TGLbyte* = int8
  29. PGLbyte* = ptr TGlbyte
  30. PGLshort* = ptr TGLshort
  31. PGLint* = ptr TGLint
  32. PGLsizei* = ptr TGLsizei
  33. PGLubyte* = ptr TGLubyte
  34. PGLushort* = ptr TGLushort
  35. PGLuint* = ptr TGLuint
  36. PGLfloat* = ptr TGLfloat
  37. PGLclampf* = ptr TGLclampf
  38. PGLdouble* = ptr TGLdouble
  39. PGLclampd* = ptr TGLclampd
  40. PGLvoid* = pointer
  41. PPGLvoid* = ptr PGLvoid
  42. TGLenum* = cint
  43. TGLboolean* = bool
  44. TGLbitfield* = cint
  45. TGLshort* = int16
  46. TGLint* = cint
  47. TGLsizei* = int
  48. TGLubyte* = int8
  49. TGLushort* = int16
  50. TGLuint* = cint
  51. TGLfloat* = float32
  52. TGLclampf* = float32
  53. TGLdouble* = float
  54. TGLclampd* = float
  55. const # Version
  56. GL_VERSION_1_1* = 1 # AccumOp
  57. constGL_ACCUM* = 0x00000100
  58. GL_LOAD* = 0x00000101
  59. GL_RETURN* = 0x00000102
  60. GL_MULT* = 0x00000103
  61. GL_ADD* = 0x00000104 # AlphaFunction
  62. GL_NEVER* = 0x00000200
  63. GL_LESS* = 0x00000201
  64. GL_EQUAL* = 0x00000202
  65. GL_LEQUAL* = 0x00000203
  66. GL_GREATER* = 0x00000204
  67. GL_NOTEQUAL* = 0x00000205
  68. GL_GEQUAL* = 0x00000206
  69. GL_ALWAYS* = 0x00000207 # AttribMask
  70. GL_CURRENT_BIT* = 0x00000001
  71. GL_POINT_BIT* = 0x00000002
  72. GL_LINE_BIT* = 0x00000004
  73. GL_POLYGON_BIT* = 0x00000008
  74. GL_POLYGON_STIPPLE_BIT* = 0x00000010
  75. GL_PIXEL_MODE_BIT* = 0x00000020
  76. GL_LIGHTING_BIT* = 0x00000040
  77. GL_FOG_BIT* = 0x00000080
  78. GL_DEPTH_BUFFER_BIT* = 0x00000100
  79. GL_ACCUM_BUFFER_BIT* = 0x00000200
  80. GL_STENCIL_BUFFER_BIT* = 0x00000400
  81. GL_VIEWPORT_BIT* = 0x00000800
  82. GL_TRANSFORM_BIT* = 0x00001000
  83. GL_ENABLE_BIT* = 0x00002000
  84. GL_COLOR_BUFFER_BIT* = 0x00004000
  85. GL_HINT_BIT* = 0x00008000
  86. GL_EVAL_BIT* = 0x00010000
  87. GL_LIST_BIT* = 0x00020000
  88. GL_TEXTURE_BIT* = 0x00040000
  89. GL_SCISSOR_BIT* = 0x00080000
  90. GL_ALL_ATTRIB_BITS* = 0x000FFFFF # BeginMode
  91. GL_POINTS* = 0x00000000
  92. GL_LINES* = 0x00000001
  93. GL_LINE_LOOP* = 0x00000002
  94. GL_LINE_STRIP* = 0x00000003
  95. GL_TRIANGLES* = 0x00000004
  96. GL_TRIANGLE_STRIP* = 0x00000005
  97. GL_TRIANGLE_FAN* = 0x00000006
  98. GL_QUADS* = 0x00000007
  99. GL_QUAD_STRIP* = 0x00000008
  100. GL_POLYGON* = 0x00000009 # BlendingFactorDest
  101. GL_ZERO* = 0
  102. GL_ONE* = 1
  103. GL_SRC_COLOR* = 0x00000300
  104. GL_ONE_MINUS_SRC_COLOR* = 0x00000301
  105. GL_SRC_ALPHA* = 0x00000302
  106. GL_ONE_MINUS_SRC_ALPHA* = 0x00000303
  107. GL_DST_ALPHA* = 0x00000304
  108. GL_ONE_MINUS_DST_ALPHA* = 0x00000305 # BlendingFactorSrc
  109. # GL_ZERO
  110. # GL_ONE
  111. GL_DST_COLOR* = 0x00000306
  112. GL_ONE_MINUS_DST_COLOR* = 0x00000307
  113. GL_SRC_ALPHA_SATURATE* = 0x00000308 # GL_SRC_ALPHA
  114. # GL_ONE_MINUS_SRC_ALPHA
  115. # GL_DST_ALPHA
  116. # GL_ONE_MINUS_DST_ALPHA
  117. # Boolean
  118. GL_TRUE* = 1
  119. GL_FALSE* = 0 # ClearBufferMask
  120. # GL_COLOR_BUFFER_BIT
  121. # GL_ACCUM_BUFFER_BIT
  122. # GL_STENCIL_BUFFER_BIT
  123. # GL_DEPTH_BUFFER_BIT
  124. # ClientArrayType
  125. # GL_VERTEX_ARRAY
  126. # GL_NORMAL_ARRAY
  127. # GL_COLOR_ARRAY
  128. # GL_INDEX_ARRAY
  129. # GL_TEXTURE_COORD_ARRAY
  130. # GL_EDGE_FLAG_ARRAY
  131. # ClipPlaneName
  132. GL_CLIP_PLANE0* = 0x00003000
  133. GL_CLIP_PLANE1* = 0x00003001
  134. GL_CLIP_PLANE2* = 0x00003002
  135. GL_CLIP_PLANE3* = 0x00003003
  136. GL_CLIP_PLANE4* = 0x00003004
  137. GL_CLIP_PLANE5* = 0x00003005 # ColorMaterialFace
  138. # GL_FRONT
  139. # GL_BACK
  140. # GL_FRONT_AND_BACK
  141. # ColorMaterialParameter
  142. # GL_AMBIENT
  143. # GL_DIFFUSE
  144. # GL_SPECULAR
  145. # GL_EMISSION
  146. # GL_AMBIENT_AND_DIFFUSE
  147. # ColorPointerType
  148. # GL_BYTE
  149. # GL_UNSIGNED_BYTE
  150. # GL_SHORT
  151. # GL_UNSIGNED_SHORT
  152. # GL_INT
  153. # GL_UNSIGNED_INT
  154. # GL_FLOAT
  155. # GL_DOUBLE
  156. # CullFaceMode
  157. # GL_FRONT
  158. # GL_BACK
  159. # GL_FRONT_AND_BACK
  160. # DataType
  161. GL_BYTE* = 0x00001400
  162. GL_UNSIGNED_BYTE* = 0x00001401
  163. GL_SHORT* = 0x00001402
  164. GL_UNSIGNED_SHORT* = 0x00001403
  165. GL_INT* = 0x00001404
  166. GL_UNSIGNED_INT* = 0x00001405
  167. GL_FLOAT* = 0x00001406
  168. GL_2_BYTES* = 0x00001407
  169. GL_3_BYTES* = 0x00001408
  170. GL_4_BYTES* = 0x00001409
  171. GL_DOUBLE* = 0x0000140A # DepthFunction
  172. # GL_NEVER
  173. # GL_LESS
  174. # GL_EQUAL
  175. # GL_LEQUAL
  176. # GL_GREATER
  177. # GL_NOTEQUAL
  178. # GL_GEQUAL
  179. # GL_ALWAYS
  180. # DrawBufferMode
  181. GL_NONE* = 0
  182. GL_FRONT_LEFT* = 0x00000400
  183. GL_FRONT_RIGHT* = 0x00000401
  184. GL_BACK_LEFT* = 0x00000402
  185. GL_BACK_RIGHT* = 0x00000403
  186. GL_FRONT* = 0x00000404
  187. GL_BACK* = 0x00000405
  188. GL_LEFT* = 0x00000406
  189. GL_RIGHT* = 0x00000407
  190. GL_FRONT_AND_BACK* = 0x00000408
  191. GL_AUX0* = 0x00000409
  192. GL_AUX1* = 0x0000040A
  193. GL_AUX2* = 0x0000040B
  194. GL_AUX3* = 0x0000040C # Enable
  195. # GL_FOG
  196. # GL_LIGHTING
  197. # GL_TEXTURE_1D
  198. # GL_TEXTURE_2D
  199. # GL_LINE_STIPPLE
  200. # GL_POLYGON_STIPPLE
  201. # GL_CULL_FACE
  202. # GL_ALPHA_TEST
  203. # GL_BLEND
  204. # GL_INDEX_LOGIC_OP
  205. # GL_COLOR_LOGIC_OP
  206. # GL_DITHER
  207. # GL_STENCIL_TEST
  208. # GL_DEPTH_TEST
  209. # GL_CLIP_PLANE0
  210. # GL_CLIP_PLANE1
  211. # GL_CLIP_PLANE2
  212. # GL_CLIP_PLANE3
  213. # GL_CLIP_PLANE4
  214. # GL_CLIP_PLANE5
  215. # GL_LIGHT0
  216. # GL_LIGHT1
  217. # GL_LIGHT2
  218. # GL_LIGHT3
  219. # GL_LIGHT4
  220. # GL_LIGHT5
  221. # GL_LIGHT6
  222. # GL_LIGHT7
  223. # GL_TEXTURE_GEN_S
  224. # GL_TEXTURE_GEN_T
  225. # GL_TEXTURE_GEN_R
  226. # GL_TEXTURE_GEN_Q
  227. # GL_MAP1_VERTEX_3
  228. # GL_MAP1_VERTEX_4
  229. # GL_MAP1_COLOR_4
  230. # GL_MAP1_INDEX
  231. # GL_MAP1_NORMAL
  232. # GL_MAP1_TEXTURE_COORD_1
  233. # GL_MAP1_TEXTURE_COORD_2
  234. # GL_MAP1_TEXTURE_COORD_3
  235. # GL_MAP1_TEXTURE_COORD_4
  236. # GL_MAP2_VERTEX_3
  237. # GL_MAP2_VERTEX_4
  238. # GL_MAP2_COLOR_4
  239. # GL_MAP2_INDEX
  240. # GL_MAP2_NORMAL
  241. # GL_MAP2_TEXTURE_COORD_1
  242. # GL_MAP2_TEXTURE_COORD_2
  243. # GL_MAP2_TEXTURE_COORD_3
  244. # GL_MAP2_TEXTURE_COORD_4
  245. # GL_POINT_SMOOTH
  246. # GL_LINE_SMOOTH
  247. # GL_POLYGON_SMOOTH
  248. # GL_SCISSOR_TEST
  249. # GL_COLOR_MATERIAL
  250. # GL_NORMALIZE
  251. # GL_AUTO_NORMAL
  252. # GL_VERTEX_ARRAY
  253. # GL_NORMAL_ARRAY
  254. # GL_COLOR_ARRAY
  255. # GL_INDEX_ARRAY
  256. # GL_TEXTURE_COORD_ARRAY
  257. # GL_EDGE_FLAG_ARRAY
  258. # GL_POLYGON_OFFSET_POINT
  259. # GL_POLYGON_OFFSET_LINE
  260. # GL_POLYGON_OFFSET_FILL
  261. # ErrorCode
  262. GL_NO_ERROR* = 0
  263. GL_INVALID_ENUM* = 0x00000500
  264. GL_INVALID_VALUE* = 0x00000501
  265. GL_INVALID_OPERATION* = 0x00000502
  266. GL_STACK_OVERFLOW* = 0x00000503
  267. GL_STACK_UNDERFLOW* = 0x00000504
  268. GL_OUT_OF_MEMORY* = 0x00000505 # FeedBackMode
  269. GL_2D* = 0x00000600
  270. GL_3D* = 0x00000601
  271. GL_3D_COLOR* = 0x00000602
  272. GL_3D_COLOR_TEXTURE* = 0x00000603
  273. GL_4D_COLOR_TEXTURE* = 0x00000604 # FeedBackToken
  274. GL_PASS_THROUGH_TOKEN* = 0x00000700
  275. GL_POINT_TOKEN* = 0x00000701
  276. GL_LINE_TOKEN* = 0x00000702
  277. GL_POLYGON_TOKEN* = 0x00000703
  278. GL_BITMAP_TOKEN* = 0x00000704
  279. GL_DRAW_PIXEL_TOKEN* = 0x00000705
  280. GL_COPY_PIXEL_TOKEN* = 0x00000706
  281. GL_LINE_RESET_TOKEN* = 0x00000707 # FogMode
  282. # GL_LINEAR
  283. GL_EXP* = 0x00000800
  284. GL_EXP2* = 0x00000801 # FogParameter
  285. # GL_FOG_COLOR
  286. # GL_FOG_DENSITY
  287. # GL_FOG_END
  288. # GL_FOG_INDEX
  289. # GL_FOG_MODE
  290. # GL_FOG_START
  291. # FrontFaceDirection
  292. GL_CW* = 0x00000900
  293. GL_CCW* = 0x00000901 # GetMapTarget
  294. GL_COEFF* = 0x00000A00
  295. GL_ORDER* = 0x00000A01
  296. GL_DOMAIN* = 0x00000A02 # GetPixelMap
  297. # GL_PIXEL_MAP_I_TO_I
  298. # GL_PIXEL_MAP_S_TO_S
  299. # GL_PIXEL_MAP_I_TO_R
  300. # GL_PIXEL_MAP_I_TO_G
  301. # GL_PIXEL_MAP_I_TO_B
  302. # GL_PIXEL_MAP_I_TO_A
  303. # GL_PIXEL_MAP_R_TO_R
  304. # GL_PIXEL_MAP_G_TO_G
  305. # GL_PIXEL_MAP_B_TO_B
  306. # GL_PIXEL_MAP_A_TO_A
  307. # GetPointerTarget
  308. # GL_VERTEX_ARRAY_POINTER
  309. # GL_NORMAL_ARRAY_POINTER
  310. # GL_COLOR_ARRAY_POINTER
  311. # GL_INDEX_ARRAY_POINTER
  312. # GL_TEXTURE_COORD_ARRAY_POINTER
  313. # GL_EDGE_FLAG_ARRAY_POINTER
  314. # GetTarget
  315. GL_CURRENT_COLOR* = 0x00000B00
  316. GL_CURRENT_INDEX* = 0x00000B01
  317. GL_CURRENT_NORMAL* = 0x00000B02
  318. GL_CURRENT_TEXTURE_COORDS* = 0x00000B03
  319. GL_CURRENT_RASTER_COLOR* = 0x00000B04
  320. GL_CURRENT_RASTER_INDEX* = 0x00000B05
  321. GL_CURRENT_RASTER_TEXTURE_COORDS* = 0x00000B06
  322. GL_CURRENT_RASTER_POSITION* = 0x00000B07
  323. GL_CURRENT_RASTER_POSITION_VALID* = 0x00000B08
  324. GL_CURRENT_RASTER_DISTANCE* = 0x00000B09
  325. GL_POINT_SMOOTH* = 0x00000B10
  326. constGL_POINT_SIZE* = 0x00000B11
  327. GL_POINT_SIZE_RANGE* = 0x00000B12
  328. GL_POINT_SIZE_GRANULARITY* = 0x00000B13
  329. GL_LINE_SMOOTH* = 0x00000B20
  330. constGL_LINE_WIDTH* = 0x00000B21
  331. GL_LINE_WIDTH_RANGE* = 0x00000B22
  332. GL_LINE_WIDTH_GRANULARITY* = 0x00000B23
  333. constGL_LINE_STIPPLE* = 0x00000B24
  334. GL_LINE_STIPPLE_PATTERN* = 0x00000B25
  335. GL_LINE_STIPPLE_REPEAT* = 0x00000B26
  336. GL_LIST_MODE* = 0x00000B30
  337. GL_MAX_LIST_NESTING* = 0x00000B31
  338. constGL_LIST_BASE* = 0x00000B32
  339. GL_LIST_INDEX* = 0x00000B33
  340. constGL_POLYGON_MODE* = 0x00000B40
  341. GL_POLYGON_SMOOTH* = 0x00000B41
  342. constGL_POLYGON_STIPPLE* = 0x00000B42
  343. constGL_EDGE_FLAG* = 0x00000B43
  344. constGL_CULL_FACE* = 0x00000B44
  345. GL_CULL_FACE_MODE* = 0x00000B45
  346. constGL_FRONT_FACE* = 0x00000B46
  347. GL_LIGHTING* = 0x00000B50
  348. GL_LIGHT_MODEL_LOCAL_VIEWER* = 0x00000B51
  349. GL_LIGHT_MODEL_TWO_SIDE* = 0x00000B52
  350. GL_LIGHT_MODEL_AMBIENT* = 0x00000B53
  351. constGL_SHADE_MODEL* = 0x00000B54
  352. GL_COLOR_MATERIAL_FACE* = 0x00000B55
  353. GL_COLOR_MATERIAL_PARAMETER* = 0x00000B56
  354. constGL_COLOR_MATERIAL* = 0x00000B57
  355. GL_FOG* = 0x00000B60
  356. GL_FOG_INDEX* = 0x00000B61
  357. GL_FOG_DENSITY* = 0x00000B62
  358. GL_FOG_START* = 0x00000B63
  359. GL_FOG_END* = 0x00000B64
  360. GL_FOG_MODE* = 0x00000B65
  361. GL_FOG_COLOR* = 0x00000B66
  362. constGL_DEPTH_RANGE* = 0x00000B70
  363. GL_DEPTH_TEST* = 0x00000B71
  364. GL_DEPTH_WRITEMASK* = 0x00000B72
  365. GL_DEPTH_CLEAR_VALUE* = 0x00000B73
  366. constGL_DEPTH_FUNC* = 0x00000B74
  367. GL_ACCUM_CLEAR_VALUE* = 0x00000B80
  368. GL_STENCIL_TEST* = 0x00000B90
  369. GL_STENCIL_CLEAR_VALUE* = 0x00000B91
  370. constGL_STENCIL_FUNC* = 0x00000B92
  371. GL_STENCIL_VALUE_MASK* = 0x00000B93
  372. GL_STENCIL_FAIL* = 0x00000B94
  373. GL_STENCIL_PASS_DEPTH_FAIL* = 0x00000B95
  374. GL_STENCIL_PASS_DEPTH_PASS* = 0x00000B96
  375. GL_STENCIL_REF* = 0x00000B97
  376. GL_STENCIL_WRITEMASK* = 0x00000B98
  377. constGL_MATRIX_MODE* = 0x00000BA0
  378. GL_NORMALIZE* = 0x00000BA1
  379. constGL_VIEWPORT* = 0x00000BA2
  380. GL_MODELVIEW_STACK_DEPTH* = 0x00000BA3
  381. GL_PROJECTION_STACK_DEPTH* = 0x00000BA4
  382. GL_TEXTURE_STACK_DEPTH* = 0x00000BA5
  383. GL_MODELVIEW_MATRIX* = 0x00000BA6
  384. GL_PROJECTION_MATRIX* = 0x00000BA7
  385. GL_TEXTURE_MATRIX* = 0x00000BA8
  386. GL_ATTRIB_STACK_DEPTH* = 0x00000BB0
  387. GL_CLIENT_ATTRIB_STACK_DEPTH* = 0x00000BB1
  388. GL_ALPHA_TEST* = 0x00000BC0
  389. GL_ALPHA_TEST_FUNC* = 0x00000BC1
  390. GL_ALPHA_TEST_REF* = 0x00000BC2
  391. GL_DITHER* = 0x00000BD0
  392. GL_BLEND_DST* = 0x00000BE0
  393. GL_BLEND_SRC* = 0x00000BE1
  394. GL_BLEND* = 0x00000BE2
  395. GL_LOGIC_OP_MODE* = 0x00000BF0
  396. GL_INDEX_LOGIC_OP* = 0x00000BF1
  397. GL_COLOR_LOGIC_OP* = 0x00000BF2
  398. GL_AUX_BUFFERS* = 0x00000C00
  399. constGL_DRAW_BUFFER* = 0x00000C01
  400. constGL_READ_BUFFER* = 0x00000C02
  401. GL_SCISSOR_BOX* = 0x00000C10
  402. GL_SCISSOR_TEST* = 0x00000C11
  403. GL_INDEX_CLEAR_VALUE* = 0x00000C20
  404. GL_INDEX_WRITEMASK* = 0x00000C21
  405. GL_COLOR_CLEAR_VALUE* = 0x00000C22
  406. GL_COLOR_WRITEMASK* = 0x00000C23
  407. GL_INDEX_MODE* = 0x00000C30
  408. GL_RGBA_MODE* = 0x00000C31
  409. GL_DOUBLEBUFFER* = 0x00000C32
  410. GL_STEREO* = 0x00000C33
  411. constGL_RENDER_MODE* = 0x00000C40
  412. GL_PERSPECTIVE_CORRECTION_HINT* = 0x00000C50
  413. GL_POINT_SMOOTH_HINT* = 0x00000C51
  414. GL_LINE_SMOOTH_HINT* = 0x00000C52
  415. GL_POLYGON_SMOOTH_HINT* = 0x00000C53
  416. GL_FOG_HINT* = 0x00000C54
  417. GL_TEXTURE_GEN_S* = 0x00000C60
  418. GL_TEXTURE_GEN_T* = 0x00000C61
  419. GL_TEXTURE_GEN_R* = 0x00000C62
  420. GL_TEXTURE_GEN_Q* = 0x00000C63
  421. GL_PIXEL_MAP_I_TO_I* = 0x00000C70
  422. GL_PIXEL_MAP_S_TO_S* = 0x00000C71
  423. GL_PIXEL_MAP_I_TO_R* = 0x00000C72
  424. GL_PIXEL_MAP_I_TO_G* = 0x00000C73
  425. GL_PIXEL_MAP_I_TO_B* = 0x00000C74
  426. GL_PIXEL_MAP_I_TO_A* = 0x00000C75
  427. GL_PIXEL_MAP_R_TO_R* = 0x00000C76
  428. GL_PIXEL_MAP_G_TO_G* = 0x00000C77
  429. GL_PIXEL_MAP_B_TO_B* = 0x00000C78
  430. GL_PIXEL_MAP_A_TO_A* = 0x00000C79
  431. GL_PIXEL_MAP_I_TO_I_SIZE* = 0x00000CB0
  432. GL_PIXEL_MAP_S_TO_S_SIZE* = 0x00000CB1
  433. GL_PIXEL_MAP_I_TO_R_SIZE* = 0x00000CB2
  434. GL_PIXEL_MAP_I_TO_G_SIZE* = 0x00000CB3
  435. GL_PIXEL_MAP_I_TO_B_SIZE* = 0x00000CB4
  436. GL_PIXEL_MAP_I_TO_A_SIZE* = 0x00000CB5
  437. GL_PIXEL_MAP_R_TO_R_SIZE* = 0x00000CB6
  438. GL_PIXEL_MAP_G_TO_G_SIZE* = 0x00000CB7
  439. GL_PIXEL_MAP_B_TO_B_SIZE* = 0x00000CB8
  440. GL_PIXEL_MAP_A_TO_A_SIZE* = 0x00000CB9
  441. GL_UNPACK_SWAP_BYTES* = 0x00000CF0
  442. GL_UNPACK_LSB_FIRST* = 0x00000CF1
  443. GL_UNPACK_ROW_LENGTH* = 0x00000CF2
  444. GL_UNPACK_SKIP_ROWS* = 0x00000CF3
  445. GL_UNPACK_SKIP_PIXELS* = 0x00000CF4
  446. GL_UNPACK_ALIGNMENT* = 0x00000CF5
  447. GL_PACK_SWAP_BYTES* = 0x00000D00
  448. GL_PACK_LSB_FIRST* = 0x00000D01
  449. GL_PACK_ROW_LENGTH* = 0x00000D02
  450. GL_PACK_SKIP_ROWS* = 0x00000D03
  451. GL_PACK_SKIP_PIXELS* = 0x00000D04
  452. GL_PACK_ALIGNMENT* = 0x00000D05
  453. GL_MAP_COLOR* = 0x00000D10
  454. GL_MAP_STENCIL* = 0x00000D11
  455. GL_INDEX_SHIFT* = 0x00000D12
  456. GL_INDEX_OFFSET* = 0x00000D13
  457. GL_RED_SCALE* = 0x00000D14
  458. GL_RED_BIAS* = 0x00000D15
  459. GL_ZOOM_X* = 0x00000D16
  460. GL_ZOOM_Y* = 0x00000D17
  461. GL_GREEN_SCALE* = 0x00000D18
  462. GL_GREEN_BIAS* = 0x00000D19
  463. GL_BLUE_SCALE* = 0x00000D1A
  464. GL_BLUE_BIAS* = 0x00000D1B
  465. GL_ALPHA_SCALE* = 0x00000D1C
  466. GL_ALPHA_BIAS* = 0x00000D1D
  467. GL_DEPTH_SCALE* = 0x00000D1E
  468. GL_DEPTH_BIAS* = 0x00000D1F
  469. GL_MAX_EVAL_ORDER* = 0x00000D30
  470. GL_MAX_LIGHTS* = 0x00000D31
  471. GL_MAX_CLIP_PLANES* = 0x00000D32
  472. GL_MAX_TEXTURE_SIZE* = 0x00000D33
  473. GL_MAX_PIXEL_MAP_TABLE* = 0x00000D34
  474. GL_MAX_ATTRIB_STACK_DEPTH* = 0x00000D35
  475. GL_MAX_MODELVIEW_STACK_DEPTH* = 0x00000D36
  476. GL_MAX_NAME_STACK_DEPTH* = 0x00000D37
  477. GL_MAX_PROJECTION_STACK_DEPTH* = 0x00000D38
  478. GL_MAX_TEXTURE_STACK_DEPTH* = 0x00000D39
  479. GL_MAX_VIEWPORT_DIMS* = 0x00000D3A
  480. GL_MAX_CLIENT_ATTRIB_STACK_DEPTH* = 0x00000D3B
  481. GL_SUBPIXEL_BITS* = 0x00000D50
  482. GL_INDEX_BITS* = 0x00000D51
  483. GL_RED_BITS* = 0x00000D52
  484. GL_GREEN_BITS* = 0x00000D53
  485. GL_BLUE_BITS* = 0x00000D54
  486. GL_ALPHA_BITS* = 0x00000D55
  487. GL_DEPTH_BITS* = 0x00000D56
  488. GL_STENCIL_BITS* = 0x00000D57
  489. GL_ACCUM_RED_BITS* = 0x00000D58
  490. GL_ACCUM_GREEN_BITS* = 0x00000D59
  491. GL_ACCUM_BLUE_BITS* = 0x00000D5A
  492. GL_ACCUM_ALPHA_BITS* = 0x00000D5B
  493. GL_NAME_STACK_DEPTH* = 0x00000D70
  494. GL_AUTO_NORMAL* = 0x00000D80
  495. GL_MAP1_COLOR_4* = 0x00000D90
  496. GL_MAP1_INDEX* = 0x00000D91
  497. GL_MAP1_NORMAL* = 0x00000D92
  498. GL_MAP1_TEXTURE_COORD_1* = 0x00000D93
  499. GL_MAP1_TEXTURE_COORD_2* = 0x00000D94
  500. GL_MAP1_TEXTURE_COORD_3* = 0x00000D95
  501. GL_MAP1_TEXTURE_COORD_4* = 0x00000D96
  502. GL_MAP1_VERTEX_3* = 0x00000D97
  503. GL_MAP1_VERTEX_4* = 0x00000D98
  504. GL_MAP2_COLOR_4* = 0x00000DB0
  505. GL_MAP2_INDEX* = 0x00000DB1
  506. GL_MAP2_NORMAL* = 0x00000DB2
  507. GL_MAP2_TEXTURE_COORD_1* = 0x00000DB3
  508. GL_MAP2_TEXTURE_COORD_2* = 0x00000DB4
  509. GL_MAP2_TEXTURE_COORD_3* = 0x00000DB5
  510. GL_MAP2_TEXTURE_COORD_4* = 0x00000DB6
  511. GL_MAP2_VERTEX_3* = 0x00000DB7
  512. GL_MAP2_VERTEX_4* = 0x00000DB8
  513. GL_MAP1_GRID_DOMAIN* = 0x00000DD0
  514. GL_MAP1_GRID_SEGMENTS* = 0x00000DD1
  515. GL_MAP2_GRID_DOMAIN* = 0x00000DD2
  516. GL_MAP2_GRID_SEGMENTS* = 0x00000DD3
  517. GL_TEXTURE_1D* = 0x00000DE0
  518. GL_TEXTURE_2D* = 0x00000DE1
  519. GL_FEEDBACK_BUFFER_POINTER* = 0x00000DF0
  520. GL_FEEDBACK_BUFFER_SIZE* = 0x00000DF1
  521. GL_FEEDBACK_BUFFER_TYPE* = 0x00000DF2
  522. GL_SELECTION_BUFFER_POINTER* = 0x00000DF3
  523. GL_SELECTION_BUFFER_SIZE* = 0x00000DF4 # GL_TEXTURE_BINDING_1D
  524. # GL_TEXTURE_BINDING_2D
  525. # GL_VERTEX_ARRAY
  526. # GL_NORMAL_ARRAY
  527. # GL_COLOR_ARRAY
  528. # GL_INDEX_ARRAY
  529. # GL_TEXTURE_COORD_ARRAY
  530. # GL_EDGE_FLAG_ARRAY
  531. # GL_VERTEX_ARRAY_SIZE
  532. # GL_VERTEX_ARRAY_TYPE
  533. # GL_VERTEX_ARRAY_STRIDE
  534. # GL_NORMAL_ARRAY_TYPE
  535. # GL_NORMAL_ARRAY_STRIDE
  536. # GL_COLOR_ARRAY_SIZE
  537. # GL_COLOR_ARRAY_TYPE
  538. # GL_COLOR_ARRAY_STRIDE
  539. # GL_INDEX_ARRAY_TYPE
  540. # GL_INDEX_ARRAY_STRIDE
  541. # GL_TEXTURE_COORD_ARRAY_SIZE
  542. # GL_TEXTURE_COORD_ARRAY_TYPE
  543. # GL_TEXTURE_COORD_ARRAY_STRIDE
  544. # GL_EDGE_FLAG_ARRAY_STRIDE
  545. # GL_POLYGON_OFFSET_FACTOR
  546. # GL_POLYGON_OFFSET_UNITS
  547. # GetTextureParameter
  548. # GL_TEXTURE_MAG_FILTER
  549. # GL_TEXTURE_MIN_FILTER
  550. # GL_TEXTURE_WRAP_S
  551. # GL_TEXTURE_WRAP_T
  552. GL_TEXTURE_WIDTH* = 0x00001000
  553. GL_TEXTURE_HEIGHT* = 0x00001001
  554. GL_TEXTURE_INTERNAL_FORMAT* = 0x00001003
  555. GL_TEXTURE_BORDER_COLOR* = 0x00001004
  556. GL_TEXTURE_BORDER* = 0x00001005 # GL_TEXTURE_RED_SIZE
  557. # GL_TEXTURE_GREEN_SIZE
  558. # GL_TEXTURE_BLUE_SIZE
  559. # GL_TEXTURE_ALPHA_SIZE
  560. # GL_TEXTURE_LUMINANCE_SIZE
  561. # GL_TEXTURE_INTENSITY_SIZE
  562. # GL_TEXTURE_PRIORITY
  563. # GL_TEXTURE_RESIDENT
  564. # HintMode
  565. GL_DONT_CARE* = 0x00001100
  566. GL_FASTEST* = 0x00001101
  567. GL_NICEST* = 0x00001102 # HintTarget
  568. # GL_PERSPECTIVE_CORRECTION_HINT
  569. # GL_POINT_SMOOTH_HINT
  570. # GL_LINE_SMOOTH_HINT
  571. # GL_POLYGON_SMOOTH_HINT
  572. # GL_FOG_HINT
  573. # IndexPointerType
  574. # GL_SHORT
  575. # GL_INT
  576. # GL_FLOAT
  577. # GL_DOUBLE
  578. # LightModelParameter
  579. # GL_LIGHT_MODEL_AMBIENT
  580. # GL_LIGHT_MODEL_LOCAL_VIEWER
  581. # GL_LIGHT_MODEL_TWO_SIDE
  582. # LightName
  583. GL_LIGHT0* = 0x00004000
  584. GL_LIGHT1* = 0x00004001
  585. GL_LIGHT2* = 0x00004002
  586. GL_LIGHT3* = 0x00004003
  587. GL_LIGHT4* = 0x00004004
  588. GL_LIGHT5* = 0x00004005
  589. GL_LIGHT6* = 0x00004006
  590. GL_LIGHT7* = 0x00004007 # LightParameter
  591. GL_AMBIENT* = 0x00001200
  592. GL_DIFFUSE* = 0x00001201
  593. GL_SPECULAR* = 0x00001202
  594. GL_POSITION* = 0x00001203
  595. GL_SPOT_DIRECTION* = 0x00001204
  596. GL_SPOT_EXPONENT* = 0x00001205
  597. GL_SPOT_CUTOFF* = 0x00001206
  598. GL_CONSTANT_ATTENUATION* = 0x00001207
  599. GL_LINEAR_ATTENUATION* = 0x00001208
  600. GL_QUADRATIC_ATTENUATION* = 0x00001209 # InterleavedArrays
  601. # GL_V2F
  602. # GL_V3F
  603. # GL_C4UB_V2F
  604. # GL_C4UB_V3F
  605. # GL_C3F_V3F
  606. # GL_N3F_V3F
  607. # GL_C4F_N3F_V3F
  608. # GL_T2F_V3F
  609. # GL_T4F_V4F
  610. # GL_T2F_C4UB_V3F
  611. # GL_T2F_C3F_V3F
  612. # GL_T2F_N3F_V3F
  613. # GL_T2F_C4F_N3F_V3F
  614. # GL_T4F_C4F_N3F_V4F
  615. # ListMode
  616. GL_COMPILE* = 0x00001300
  617. GL_COMPILE_AND_EXECUTE* = 0x00001301 # ListNameType
  618. # GL_BYTE
  619. # GL_UNSIGNED_BYTE
  620. # GL_SHORT
  621. # GL_UNSIGNED_SHORT
  622. # GL_INT
  623. # GL_UNSIGNED_INT
  624. # GL_FLOAT
  625. # GL_2_BYTES
  626. # GL_3_BYTES
  627. # GL_4_BYTES
  628. # LogicOp
  629. constGL_CLEAR* = 0x00001500
  630. GL_AND* = 0x00001501
  631. GL_AND_REVERSE* = 0x00001502
  632. GL_COPY* = 0x00001503
  633. GL_AND_INVERTED* = 0x00001504
  634. GL_NOOP* = 0x00001505
  635. GL_XOR* = 0x00001506
  636. GL_OR* = 0x00001507
  637. GL_NOR* = 0x00001508
  638. GL_EQUIV* = 0x00001509
  639. GL_INVERT* = 0x0000150A
  640. GL_OR_REVERSE* = 0x0000150B
  641. GL_COPY_INVERTED* = 0x0000150C
  642. GL_OR_INVERTED* = 0x0000150D
  643. GL_NAND* = 0x0000150E
  644. GL_SET* = 0x0000150F # MapTarget
  645. # GL_MAP1_COLOR_4
  646. # GL_MAP1_INDEX
  647. # GL_MAP1_NORMAL
  648. # GL_MAP1_TEXTURE_COORD_1
  649. # GL_MAP1_TEXTURE_COORD_2
  650. # GL_MAP1_TEXTURE_COORD_3
  651. # GL_MAP1_TEXTURE_COORD_4
  652. # GL_MAP1_VERTEX_3
  653. # GL_MAP1_VERTEX_4
  654. # GL_MAP2_COLOR_4
  655. # GL_MAP2_INDEX
  656. # GL_MAP2_NORMAL
  657. # GL_MAP2_TEXTURE_COORD_1
  658. # GL_MAP2_TEXTURE_COORD_2
  659. # GL_MAP2_TEXTURE_COORD_3
  660. # GL_MAP2_TEXTURE_COORD_4
  661. # GL_MAP2_VERTEX_3
  662. # GL_MAP2_VERTEX_4
  663. # MaterialFace
  664. # GL_FRONT
  665. # GL_BACK
  666. # GL_FRONT_AND_BACK
  667. # MaterialParameter
  668. GL_EMISSION* = 0x00001600
  669. GL_SHININESS* = 0x00001601
  670. GL_AMBIENT_AND_DIFFUSE* = 0x00001602
  671. GL_COLOR_INDEXES* = 0x00001603 # GL_AMBIENT
  672. # GL_DIFFUSE
  673. # GL_SPECULAR
  674. # MatrixMode
  675. GL_MODELVIEW* = 0x00001700
  676. GL_PROJECTION* = 0x00001701
  677. GL_TEXTURE* = 0x00001702 # MeshMode1
  678. # GL_POINT
  679. # GL_LINE
  680. # MeshMode2
  681. # GL_POINT
  682. # GL_LINE
  683. # GL_FILL
  684. # NormalPointerType
  685. # GL_BYTE
  686. # GL_SHORT
  687. # GL_INT
  688. # GL_FLOAT
  689. # GL_DOUBLE
  690. # PixelCopyType
  691. GL_COLOR* = 0x00001800
  692. GL_DEPTH* = 0x00001801
  693. GL_STENCIL* = 0x00001802 # PixelFormat
  694. GL_COLOR_INDEX* = 0x00001900
  695. GL_STENCIL_INDEX* = 0x00001901
  696. GL_DEPTH_COMPONENT* = 0x00001902
  697. GL_RED* = 0x00001903
  698. GL_GREEN* = 0x00001904
  699. GL_BLUE* = 0x00001905
  700. GL_ALPHA* = 0x00001906
  701. GL_RGB* = 0x00001907
  702. GL_RGBA* = 0x00001908
  703. GL_LUMINANCE* = 0x00001909
  704. GL_LUMINANCE_ALPHA* = 0x0000190A # PixelMap
  705. # GL_PIXEL_MAP_I_TO_I
  706. # GL_PIXEL_MAP_S_TO_S
  707. # GL_PIXEL_MAP_I_TO_R
  708. # GL_PIXEL_MAP_I_TO_G
  709. # GL_PIXEL_MAP_I_TO_B
  710. # GL_PIXEL_MAP_I_TO_A
  711. # GL_PIXEL_MAP_R_TO_R
  712. # GL_PIXEL_MAP_G_TO_G
  713. # GL_PIXEL_MAP_B_TO_B
  714. # GL_PIXEL_MAP_A_TO_A
  715. # PixelStore
  716. # GL_UNPACK_SWAP_BYTES
  717. # GL_UNPACK_LSB_FIRST
  718. # GL_UNPACK_ROW_LENGTH
  719. # GL_UNPACK_SKIP_ROWS
  720. # GL_UNPACK_SKIP_PIXELS
  721. # GL_UNPACK_ALIGNMENT
  722. # GL_PACK_SWAP_BYTES
  723. # GL_PACK_LSB_FIRST
  724. # GL_PACK_ROW_LENGTH
  725. # GL_PACK_SKIP_ROWS
  726. # GL_PACK_SKIP_PIXELS
  727. # GL_PACK_ALIGNMENT
  728. # PixelTransfer
  729. # GL_MAP_COLOR
  730. # GL_MAP_STENCIL
  731. # GL_INDEX_SHIFT
  732. # GL_INDEX_OFFSET
  733. # GL_RED_SCALE
  734. # GL_RED_BIAS
  735. # GL_GREEN_SCALE
  736. # GL_GREEN_BIAS
  737. # GL_BLUE_SCALE
  738. # GL_BLUE_BIAS
  739. # GL_ALPHA_SCALE
  740. # GL_ALPHA_BIAS
  741. # GL_DEPTH_SCALE
  742. # GL_DEPTH_BIAS
  743. # PixelType
  744. constGL_BITMAP* = 0x00001A00
  745. GL_POINT* = 0x00001B00
  746. GL_LINE* = 0x00001B01
  747. GL_FILL* = 0x00001B02 # ReadBufferMode
  748. # GL_FRONT_LEFT
  749. # GL_FRONT_RIGHT
  750. # GL_BACK_LEFT
  751. # GL_BACK_RIGHT
  752. # GL_FRONT
  753. # GL_BACK
  754. # GL_LEFT
  755. # GL_RIGHT
  756. # GL_AUX0
  757. # GL_AUX1
  758. # GL_AUX2
  759. # GL_AUX3
  760. # RenderingMode
  761. GL_RENDER* = 0x00001C00
  762. GL_FEEDBACK* = 0x00001C01
  763. GL_SELECT* = 0x00001C02 # ShadingModel
  764. GL_FLAT* = 0x00001D00
  765. GL_SMOOTH* = 0x00001D01 # StencilFunction
  766. # GL_NEVER
  767. # GL_LESS
  768. # GL_EQUAL
  769. # GL_LEQUAL
  770. # GL_GREATER
  771. # GL_NOTEQUAL
  772. # GL_GEQUAL
  773. # GL_ALWAYS
  774. # StencilOp
  775. # GL_ZERO
  776. GL_KEEP* = 0x00001E00
  777. GL_REPLACE* = 0x00001E01
  778. GL_INCR* = 0x00001E02
  779. GL_DECR* = 0x00001E03 # GL_INVERT
  780. # StringName
  781. GL_VENDOR* = 0x00001F00
  782. GL_RENDERER* = 0x00001F01
  783. GL_VERSION* = 0x00001F02
  784. GL_EXTENSIONS* = 0x00001F03 # TextureCoordName
  785. GL_S* = 0x00002000
  786. GL_T* = 0x00002001
  787. GL_R* = 0x00002002
  788. GL_Q* = 0x00002003 # TexCoordPointerType
  789. # GL_SHORT
  790. # GL_INT
  791. # GL_FLOAT
  792. # GL_DOUBLE
  793. # TextureEnvMode
  794. GL_MODULATE* = 0x00002100
  795. GL_DECAL* = 0x00002101 # GL_BLEND
  796. # GL_REPLACE
  797. # TextureEnvParameter
  798. GL_TEXTURE_ENV_MODE* = 0x00002200
  799. GL_TEXTURE_ENV_COLOR* = 0x00002201 # TextureEnvTarget
  800. GL_TEXTURE_ENV* = 0x00002300 # TextureGenMode
  801. GL_EYE_LINEAR* = 0x00002400
  802. GL_OBJECT_LINEAR* = 0x00002401
  803. GL_SPHERE_MAP* = 0x00002402 # TextureGenParameter
  804. GL_TEXTURE_GEN_MODE* = 0x00002500
  805. GL_OBJECT_PLANE* = 0x00002501
  806. GL_EYE_PLANE* = 0x00002502 # TextureMagFilter
  807. GL_NEAREST* = 0x00002600
  808. GL_LINEAR* = 0x00002601 # TextureMinFilter
  809. # GL_NEAREST
  810. # GL_LINEAR
  811. GL_NEAREST_MIPMAP_NEAREST* = 0x00002700
  812. GL_LINEAR_MIPMAP_NEAREST* = 0x00002701
  813. GL_NEAREST_MIPMAP_LINEAR* = 0x00002702
  814. GL_LINEAR_MIPMAP_LINEAR* = 0x00002703 # TextureParameterName
  815. GL_TEXTURE_MAG_FILTER* = 0x00002800
  816. GL_TEXTURE_MIN_FILTER* = 0x00002801
  817. GL_TEXTURE_WRAP_S* = 0x00002802
  818. GL_TEXTURE_WRAP_T* = 0x00002803 # GL_TEXTURE_BORDER_COLOR
  819. # GL_TEXTURE_PRIORITY
  820. # TextureTarget
  821. # GL_TEXTURE_1D
  822. # GL_TEXTURE_2D
  823. # GL_PROXY_TEXTURE_1D
  824. # GL_PROXY_TEXTURE_2D
  825. # TextureWrapMode
  826. GL_CLAMP* = 0x00002900
  827. GL_REPEAT* = 0x00002901 # VertexPointerType
  828. # GL_SHORT
  829. # GL_INT
  830. # GL_FLOAT
  831. # GL_DOUBLE
  832. # ClientAttribMask
  833. GL_CLIENT_PIXEL_STORE_BIT* = 0x00000001
  834. GL_CLIENT_VERTEX_ARRAY_BIT* = 0x00000002
  835. GL_CLIENT_ALL_ATTRIB_BITS* = 0xFFFFFFFF # polygon_offset
  836. GL_POLYGON_OFFSET_FACTOR* = 0x00008038
  837. GL_POLYGON_OFFSET_UNITS* = 0x00002A00
  838. GL_POLYGON_OFFSET_POINT* = 0x00002A01
  839. GL_POLYGON_OFFSET_LINE* = 0x00002A02
  840. GL_POLYGON_OFFSET_FILL* = 0x00008037 # texture
  841. GL_ALPHA4* = 0x0000803B
  842. GL_ALPHA8* = 0x0000803C
  843. GL_ALPHA12* = 0x0000803D
  844. GL_ALPHA16* = 0x0000803E
  845. GL_LUMINANCE4* = 0x0000803F
  846. GL_LUMINANCE8* = 0x00008040
  847. GL_LUMINANCE12* = 0x00008041
  848. GL_LUMINANCE16* = 0x00008042
  849. GL_LUMINANCE4_ALPHA4* = 0x00008043
  850. GL_LUMINANCE6_ALPHA2* = 0x00008044
  851. GL_LUMINANCE8_ALPHA8* = 0x00008045
  852. GL_LUMINANCE12_ALPHA4* = 0x00008046
  853. GL_LUMINANCE12_ALPHA12* = 0x00008047
  854. GL_LUMINANCE16_ALPHA16* = 0x00008048
  855. GL_INTENSITY* = 0x00008049
  856. GL_INTENSITY4* = 0x0000804A
  857. GL_INTENSITY8* = 0x0000804B
  858. GL_INTENSITY12* = 0x0000804C
  859. GL_INTENSITY16* = 0x0000804D
  860. GL_R3_G3_B2* = 0x00002A10
  861. GL_RGB4* = 0x0000804F
  862. GL_RGB5* = 0x00008050
  863. GL_RGB8* = 0x00008051
  864. GL_RGB10* = 0x00008052
  865. GL_RGB12* = 0x00008053
  866. GL_RGB16* = 0x00008054
  867. GL_RGBA2* = 0x00008055
  868. GL_RGBA4* = 0x00008056
  869. GL_RGB5_A1* = 0x00008057
  870. GL_RGBA8* = 0x00008058
  871. GL_RGB10_A2* = 0x00008059
  872. GL_RGBA12* = 0x0000805A
  873. GL_RGBA16* = 0x0000805B
  874. GL_TEXTURE_RED_SIZE* = 0x0000805C
  875. GL_TEXTURE_GREEN_SIZE* = 0x0000805D
  876. GL_TEXTURE_BLUE_SIZE* = 0x0000805E
  877. GL_TEXTURE_ALPHA_SIZE* = 0x0000805F
  878. GL_TEXTURE_LUMINANCE_SIZE* = 0x00008060
  879. GL_TEXTURE_INTENSITY_SIZE* = 0x00008061
  880. GL_PROXY_TEXTURE_1D* = 0x00008063
  881. GL_PROXY_TEXTURE_2D* = 0x00008064 # texture_object
  882. GL_TEXTURE_PRIORITY* = 0x00008066
  883. GL_TEXTURE_RESIDENT* = 0x00008067
  884. GL_TEXTURE_BINDING_1D* = 0x00008068
  885. GL_TEXTURE_BINDING_2D* = 0x00008069 # vertex_array
  886. GL_VERTEX_ARRAY* = 0x00008074
  887. GL_NORMAL_ARRAY* = 0x00008075
  888. GL_COLOR_ARRAY* = 0x00008076
  889. GL_INDEX_ARRAY* = 0x00008077
  890. GL_TEXTURE_COORD_ARRAY* = 0x00008078
  891. GL_EDGE_FLAG_ARRAY* = 0x00008079
  892. GL_VERTEX_ARRAY_SIZE* = 0x0000807A
  893. GL_VERTEX_ARRAY_TYPE* = 0x0000807B
  894. GL_VERTEX_ARRAY_STRIDE* = 0x0000807C
  895. GL_NORMAL_ARRAY_TYPE* = 0x0000807E
  896. GL_NORMAL_ARRAY_STRIDE* = 0x0000807F
  897. GL_COLOR_ARRAY_SIZE* = 0x00008081
  898. GL_COLOR_ARRAY_TYPE* = 0x00008082
  899. GL_COLOR_ARRAY_STRIDE* = 0x00008083
  900. GL_INDEX_ARRAY_TYPE* = 0x00008085
  901. GL_INDEX_ARRAY_STRIDE* = 0x00008086
  902. GL_TEXTURE_COORD_ARRAY_SIZE* = 0x00008088
  903. GL_TEXTURE_COORD_ARRAY_TYPE* = 0x00008089
  904. GL_TEXTURE_COORD_ARRAY_STRIDE* = 0x0000808A
  905. GL_EDGE_FLAG_ARRAY_STRIDE* = 0x0000808C
  906. GL_VERTEX_ARRAY_POINTER* = 0x0000808E
  907. GL_NORMAL_ARRAY_POINTER* = 0x0000808F
  908. GL_COLOR_ARRAY_POINTER* = 0x00008090
  909. GL_INDEX_ARRAY_POINTER* = 0x00008091
  910. GL_TEXTURE_COORD_ARRAY_POINTER* = 0x00008092
  911. GL_EDGE_FLAG_ARRAY_POINTER* = 0x00008093
  912. GL_V2F* = 0x00002A20
  913. GL_V3F* = 0x00002A21
  914. GL_C4UB_V2F* = 0x00002A22
  915. GL_C4UB_V3F* = 0x00002A23
  916. GL_C3F_V3F* = 0x00002A24
  917. GL_N3F_V3F* = 0x00002A25
  918. GL_C4F_N3F_V3F* = 0x00002A26
  919. GL_T2F_V3F* = 0x00002A27
  920. GL_T4F_V4F* = 0x00002A28
  921. GL_T2F_C4UB_V3F* = 0x00002A29
  922. GL_T2F_C3F_V3F* = 0x00002A2A
  923. GL_T2F_N3F_V3F* = 0x00002A2B
  924. GL_T2F_C4F_N3F_V3F* = 0x00002A2C
  925. GL_T4F_C4F_N3F_V4F* = 0x00002A2D # Extensions
  926. GL_EXT_vertex_array* = 1
  927. GL_WIN_swap_hint* = 1
  928. GL_EXT_bgra* = 1
  929. GL_EXT_paletted_texture* = 1 # EXT_vertex_array
  930. GL_VERTEX_ARRAY_EXT* = 0x00008074
  931. GL_NORMAL_ARRAY_EXT* = 0x00008075
  932. GL_COLOR_ARRAY_EXT* = 0x00008076
  933. GL_INDEX_ARRAY_EXT* = 0x00008077
  934. GL_TEXTURE_COORD_ARRAY_EXT* = 0x00008078
  935. GL_EDGE_FLAG_ARRAY_EXT* = 0x00008079
  936. GL_VERTEX_ARRAY_SIZE_EXT* = 0x0000807A
  937. GL_VERTEX_ARRAY_TYPE_EXT* = 0x0000807B
  938. GL_VERTEX_ARRAY_STRIDE_EXT* = 0x0000807C
  939. GL_VERTEX_ARRAY_COUNT_EXT* = 0x0000807D
  940. GL_NORMAL_ARRAY_TYPE_EXT* = 0x0000807E
  941. GL_NORMAL_ARRAY_STRIDE_EXT* = 0x0000807F
  942. GL_NORMAL_ARRAY_COUNT_EXT* = 0x00008080
  943. GL_COLOR_ARRAY_SIZE_EXT* = 0x00008081
  944. GL_COLOR_ARRAY_TYPE_EXT* = 0x00008082
  945. GL_COLOR_ARRAY_STRIDE_EXT* = 0x00008083
  946. GL_COLOR_ARRAY_COUNT_EXT* = 0x00008084
  947. GL_INDEX_ARRAY_TYPE_EXT* = 0x00008085
  948. GL_INDEX_ARRAY_STRIDE_EXT* = 0x00008086
  949. GL_INDEX_ARRAY_COUNT_EXT* = 0x00008087
  950. GL_TEXTURE_COORD_ARRAY_SIZE_EXT* = 0x00008088
  951. GL_TEXTURE_COORD_ARRAY_TYPE_EXT* = 0x00008089
  952. GL_TEXTURE_COORD_ARRAY_STRIDE_EXT* = 0x0000808A
  953. GL_TEXTURE_COORD_ARRAY_COUNT_EXT* = 0x0000808B
  954. GL_EDGE_FLAG_ARRAY_STRIDE_EXT* = 0x0000808C
  955. GL_EDGE_FLAG_ARRAY_COUNT_EXT* = 0x0000808D
  956. GL_VERTEX_ARRAY_POINTER_EXT* = 0x0000808E
  957. GL_NORMAL_ARRAY_POINTER_EXT* = 0x0000808F
  958. GL_COLOR_ARRAY_POINTER_EXT* = 0x00008090
  959. GL_INDEX_ARRAY_POINTER_EXT* = 0x00008091
  960. GL_TEXTURE_COORD_ARRAY_POINTER_EXT* = 0x00008092
  961. GL_EDGE_FLAG_ARRAY_POINTER_EXT* = 0x00008093
  962. GL_DOUBLE_EXT* = GL_DOUBLE # EXT_bgra
  963. GL_BGR_EXT* = 0x000080E0
  964. GL_BGRA_EXT* = 0x000080E1 # EXT_paletted_texture
  965. # These must match the GL_COLOR_TABLE_*_SGI enumerants
  966. GL_COLOR_TABLE_FORMAT_EXT* = 0x000080D8
  967. GL_COLOR_TABLE_WIDTH_EXT* = 0x000080D9
  968. GL_COLOR_TABLE_RED_SIZE_EXT* = 0x000080DA
  969. GL_COLOR_TABLE_GREEN_SIZE_EXT* = 0x000080DB
  970. GL_COLOR_TABLE_BLUE_SIZE_EXT* = 0x000080DC
  971. GL_COLOR_TABLE_ALPHA_SIZE_EXT* = 0x000080DD
  972. GL_COLOR_TABLE_LUMINANCE_SIZE_EXT* = 0x000080DE
  973. GL_COLOR_TABLE_INTENSITY_SIZE_EXT* = 0x000080DF
  974. GL_COLOR_INDEX1_EXT* = 0x000080E2
  975. GL_COLOR_INDEX2_EXT* = 0x000080E3
  976. GL_COLOR_INDEX4_EXT* = 0x000080E4
  977. GL_COLOR_INDEX8_EXT* = 0x000080E5
  978. GL_COLOR_INDEX12_EXT* = 0x000080E6
  979. GL_COLOR_INDEX16_EXT* = 0x000080E7 # For compatibility with OpenGL v1.0
  980. constGL_LOGIC_OP* = GL_INDEX_LOGIC_OP
  981. GL_TEXTURE_COMPONENTS* = GL_TEXTURE_INTERNAL_FORMAT
  982. proc glAccum*(op: TGLenum, value: TGLfloat){.dynlib: dllname, importc: "glAccum".}
  983. proc glAlphaFunc*(fun: TGLenum, theref: TGLclampf){.dynlib: dllname,
  984. importc: "glAlphaFunc".}
  985. proc glAreTexturesResident*(n: TGLsizei, textures: PGLuint,
  986. residences: PGLboolean): TGLboolean{.
  987. dynlib: dllname, importc: "glAreTexturesResident".}
  988. proc glArrayElement*(i: TGLint){.dynlib: dllname, importc: "glArrayElement".}
  989. proc glBegin*(mode: TGLenum){.dynlib: dllname, importc: "glBegin".}
  990. proc glBindTexture*(target: TGLenum, texture: TGLuint){.dynlib: dllname,
  991. importc: "glBindTexture".}
  992. proc glBitmap*(width, height: TGLsizei, xorig, yorig: TGLfloat,
  993. xmove, ymove: TGLfloat, bitmap: PGLubyte){.dynlib: dllname,
  994. importc: "glBitmap".}
  995. proc glBlendFunc*(sfactor, dfactor: TGLenum){.dynlib: dllname,
  996. importc: "glBlendFunc".}
  997. proc glCallList*(list: TGLuint){.dynlib: dllname, importc: "glCallList".}
  998. proc glCallLists*(n: TGLsizei, atype: TGLenum, lists: pointer){.dynlib: dllname,
  999. importc: "glCallLists".}
  1000. proc glClear*(mask: TGLbitfield){.dynlib: dllname, importc: "glClear".}
  1001. proc glClearAccum*(red, green, blue, alpha: TGLfloat){.dynlib: dllname,
  1002. importc: "glClearAccum".}
  1003. proc glClearColor*(red, green, blue, alpha: TGLclampf){.dynlib: dllname,
  1004. importc: "glClearColor".}
  1005. proc glClearDepth*(depth: TGLclampd){.dynlib: dllname, importc: "glClearDepth".}
  1006. proc glClearIndex*(c: TGLfloat){.dynlib: dllname, importc: "glClearIndex".}
  1007. proc glClearStencil*(s: TGLint){.dynlib: dllname, importc: "glClearStencil".}
  1008. proc glClipPlane*(plane: TGLenum, equation: PGLdouble){.dynlib: dllname,
  1009. importc: "glClipPlane".}
  1010. proc glColor3b*(red, green, blue: TGlbyte){.dynlib: dllname,
  1011. importc: "glColor3b".}
  1012. proc glColor3bv*(v: PGLbyte){.dynlib: dllname, importc: "glColor3bv".}
  1013. proc glColor3d*(red, green, blue: TGLdouble){.dynlib: dllname,
  1014. importc: "glColor3d".}
  1015. proc glColor3dv*(v: PGLdouble){.dynlib: dllname, importc: "glColor3dv".}
  1016. proc glColor3f*(red, green, blue: TGLfloat){.dynlib: dllname,
  1017. importc: "glColor3f".}
  1018. proc glColor3fv*(v: PGLfloat){.dynlib: dllname, importc: "glColor3fv".}
  1019. proc glColor3i*(red, green, blue: TGLint){.dynlib: dllname, importc: "glColor3i".}
  1020. proc glColor3iv*(v: PGLint){.dynlib: dllname, importc: "glColor3iv".}
  1021. proc glColor3s*(red, green, blue: TGLshort){.dynlib: dllname,
  1022. importc: "glColor3s".}
  1023. proc glColor3sv*(v: PGLshort){.dynlib: dllname, importc: "glColor3sv".}
  1024. proc glColor3ub*(red, green, blue: TGLubyte){.dynlib: dllname,
  1025. importc: "glColor3ub".}
  1026. proc glColor3ubv*(v: PGLubyte){.dynlib: dllname, importc: "glColor3ubv".}
  1027. proc glColor3ui*(red, green, blue: TGLuint){.dynlib: dllname,
  1028. importc: "glColor3ui".}
  1029. proc glColor3uiv*(v: PGLuint){.dynlib: dllname, importc: "glColor3uiv".}
  1030. proc glColor3us*(red, green, blue: TGLushort){.dynlib: dllname,
  1031. importc: "glColor3us".}
  1032. proc glColor3usv*(v: PGLushort){.dynlib: dllname, importc: "glColor3usv".}
  1033. proc glColor4b*(red, green, blue, alpha: TGlbyte){.dynlib: dllname,
  1034. importc: "glColor4b".}
  1035. proc glColor4bv*(v: PGLbyte){.dynlib: dllname, importc: "glColor4bv".}
  1036. proc glColor4d*(red, green, blue, alpha: TGLdouble){.dynlib: dllname,
  1037. importc: "glColor4d".}
  1038. proc glColor4dv*(v: PGLdouble){.dynlib: dllname, importc: "glColor4dv".}
  1039. proc glColor4f*(red, green, blue, alpha: TGLfloat){.dynlib: dllname,
  1040. importc: "glColor4f".}
  1041. proc glColor4fv*(v: PGLfloat){.dynlib: dllname, importc: "glColor4fv".}
  1042. proc glColor4i*(red, green, blue, alpha: TGLint){.dynlib: dllname,
  1043. importc: "glColor4i".}
  1044. proc glColor4iv*(v: PGLint){.dynlib: dllname, importc: "glColor4iv".}
  1045. proc glColor4s*(red, green, blue, alpha: TGLshort){.dynlib: dllname,
  1046. importc: "glColor4s".}
  1047. proc glColor4sv*(v: PGLshort){.dynlib: dllname, importc: "glColor4sv".}
  1048. proc glColor4ub*(red, green, blue, alpha: TGLubyte){.dynlib: dllname,
  1049. importc: "glColor4ub".}
  1050. proc glColor4ubv*(v: PGLubyte){.dynlib: dllname, importc: "glColor4ubv".}
  1051. proc glColor4ui*(red, green, blue, alpha: TGLuint){.dynlib: dllname,
  1052. importc: "glColor4ui".}
  1053. proc glColor4uiv*(v: PGLuint){.dynlib: dllname, importc: "glColor4uiv".}
  1054. proc glColor4us*(red, green, blue, alpha: TGLushort){.dynlib: dllname,
  1055. importc: "glColor4us".}
  1056. proc glColor4usv*(v: PGLushort){.dynlib: dllname, importc: "glColor4usv".}
  1057. proc glColorMask*(red, green, blue, alpha: TGLboolean){.dynlib: dllname,
  1058. importc: "glColorMask".}
  1059. proc glColorMaterial*(face, mode: TGLenum){.dynlib: dllname,
  1060. importc: "glColorMaterial".}
  1061. proc glColorPointer*(size: TGLint, atype: TGLenum, stride: TGLsizei,
  1062. p: pointer){.dynlib: dllname,
  1063. importc: "glColorPointer".}
  1064. proc glCopyPixels*(x, y: TGLint, width, height: TGLsizei, atype: TGLenum){.
  1065. dynlib: dllname, importc: "glCopyPixels".}
  1066. proc glCopyTexImage1D*(target: TGLenum, level: TGLint, internalFormat: TGLenum,
  1067. x, y: TGLint, width: TGLsizei, border: TGLint){.
  1068. dynlib: dllname, importc: "glCopyTexImage1D".}
  1069. proc glCopyTexImage2D*(target: TGLenum, level: TGLint, internalFormat: TGLenum,
  1070. x, y: TGLint, width, height: TGLsizei, border: TGLint){.
  1071. dynlib: dllname, importc: "glCopyTexImage2D".}
  1072. proc glCopyTexSubImage1D*(target: TGLenum, level, xoffset, x, y: TGLint,
  1073. width: TGLsizei){.dynlib: dllname,
  1074. importc: "glCopyTexSubImage1D".}
  1075. proc glCopyTexSubImage2D*(target: TGLenum,
  1076. level, xoffset, yoffset, x, y: TGLint,
  1077. width, height: TGLsizei){.dynlib: dllname,
  1078. importc: "glCopyTexSubImage2D".}
  1079. proc glCullFace*(mode: TGLenum){.dynlib: dllname, importc: "glCullFace".}
  1080. proc glDeleteLists*(list: TGLuint, range: TGLsizei){.dynlib: dllname,
  1081. importc: "glDeleteLists".}
  1082. proc glDeleteTextures*(n: TGLsizei, textures: PGLuint){.dynlib: dllname,
  1083. importc: "glDeleteTextures".}
  1084. proc glDepthFunc*(fun: TGLenum){.dynlib: dllname, importc: "glDepthFunc".}
  1085. proc glDepthMask*(flag: TGLboolean){.dynlib: dllname, importc: "glDepthMask".}
  1086. proc glDepthRange*(zNear, zFar: TGLclampd){.dynlib: dllname,
  1087. importc: "glDepthRange".}
  1088. proc glDisable*(cap: TGLenum){.dynlib: dllname, importc: "glDisable".}
  1089. proc glDisableClientState*(aarray: TGLenum){.dynlib: dllname,
  1090. importc: "glDisableClientState".}
  1091. proc glDrawArrays*(mode: TGLenum, first: TGLint, count: TGLsizei){.
  1092. dynlib: dllname, importc: "glDrawArrays".}
  1093. proc glDrawBuffer*(mode: TGLenum){.dynlib: dllname, importc: "glDrawBuffer".}
  1094. proc glDrawElements*(mode: TGLenum, count: TGLsizei, atype: TGLenum,
  1095. indices: pointer){.dynlib: dllname,
  1096. importc: "glDrawElements".}
  1097. proc glDrawPixels*(width, height: TGLsizei, format, atype: TGLenum,
  1098. pixels: pointer){.dynlib: dllname, importc: "glDrawPixels".}
  1099. proc glEdgeFlag*(flag: TGLboolean){.dynlib: dllname, importc: "glEdgeFlag".}
  1100. proc glEdgeFlagPointer*(stride: TGLsizei, p: pointer){.dynlib: dllname,
  1101. importc: "glEdgeFlagPointer".}
  1102. proc glEdgeFlagv*(flag: PGLboolean){.dynlib: dllname, importc: "glEdgeFlagv".}
  1103. proc glEnable*(cap: TGLenum){.dynlib: dllname, importc: "glEnable".}
  1104. proc glEnableClientState*(aarray: TGLenum){.dynlib: dllname,
  1105. importc: "glEnableClientState".}
  1106. proc glEnd*(){.dynlib: dllname, importc: "glEnd".}
  1107. proc glEndList*(){.dynlib: dllname, importc: "glEndList".}
  1108. proc glEvalCoord1d*(u: TGLdouble){.dynlib: dllname, importc: "glEvalCoord1d".}
  1109. proc glEvalCoord1dv*(u: PGLdouble){.dynlib: dllname, importc: "glEvalCoord1dv".}
  1110. proc glEvalCoord1f*(u: TGLfloat){.dynlib: dllname, importc: "glEvalCoord1f".}
  1111. proc glEvalCoord1fv*(u: PGLfloat){.dynlib: dllname, importc: "glEvalCoord1fv".}
  1112. proc glEvalCoord2d*(u, v: TGLdouble){.dynlib: dllname, importc: "glEvalCoord2d".}
  1113. proc glEvalCoord2dv*(u: PGLdouble){.dynlib: dllname, importc: "glEvalCoord2dv".}
  1114. proc glEvalCoord2f*(u, v: TGLfloat){.dynlib: dllname, importc: "glEvalCoord2f".}
  1115. proc glEvalCoord2fv*(u: PGLfloat){.dynlib: dllname, importc: "glEvalCoord2fv".}
  1116. proc glEvalMesh1*(mode: TGLenum, i1, i2: TGLint){.dynlib: dllname,
  1117. importc: "glEvalMesh1".}
  1118. proc glEvalMesh2*(mode: TGLenum, i1, i2, j1, j2: TGLint){.dynlib: dllname,
  1119. importc: "glEvalMesh2".}
  1120. proc glEvalPoint1*(i: TGLint){.dynlib: dllname, importc: "glEvalPoint1".}
  1121. proc glEvalPoint2*(i, j: TGLint){.dynlib: dllname, importc: "glEvalPoint2".}
  1122. proc glFeedbackBuffer*(size: TGLsizei, atype: TGLenum, buffer: PGLfloat){.
  1123. dynlib: dllname, importc: "glFeedbackBuffer".}
  1124. proc glFinish*(){.dynlib: dllname, importc: "glFinish".}
  1125. proc glFlush*(){.dynlib: dllname, importc: "glFlush".}
  1126. proc glFogf*(pname: TGLenum, param: TGLfloat){.dynlib: dllname,
  1127. importc: "glFogf".}
  1128. proc glFogfv*(pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1129. importc: "glFogfv".}
  1130. proc glFogi*(pname: TGLenum, param: TGLint){.dynlib: dllname, importc: "glFogi".}
  1131. proc glFogiv*(pname: TGLenum, params: PGLint){.dynlib: dllname,
  1132. importc: "glFogiv".}
  1133. proc glFrontFace*(mode: TGLenum){.dynlib: dllname, importc: "glFrontFace".}
  1134. proc glFrustum*(left, right, bottom, top, zNear, zFar: TGLdouble){.
  1135. dynlib: dllname, importc: "glFrustum".}
  1136. proc glGenLists*(range: TGLsizei): TGLuint{.dynlib: dllname,
  1137. importc: "glGenLists".}
  1138. proc glGenTextures*(n: TGLsizei, textures: PGLuint){.dynlib: dllname,
  1139. importc: "glGenTextures".}
  1140. proc glGetBooleanv*(pname: TGLenum, params: PGLboolean){.dynlib: dllname,
  1141. importc: "glGetBooleanv".}
  1142. proc glGetClipPlane*(plane: TGLenum, equation: PGLdouble){.dynlib: dllname,
  1143. importc: "glGetClipPlane".}
  1144. proc glGetDoublev*(pname: TGLenum, params: PGLdouble){.dynlib: dllname,
  1145. importc: "glGetDoublev".}
  1146. proc glGetError*(): TGLenum{.dynlib: dllname, importc: "glGetError".}
  1147. proc glGetFloatv*(pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1148. importc: "glGetFloatv".}
  1149. proc glGetIntegerv*(pname: TGLenum, params: PGLint){.dynlib: dllname,
  1150. importc: "glGetIntegerv".}
  1151. proc glGetLightfv*(light, pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1152. importc: "glGetLightfv".}
  1153. proc glGetLightiv*(light, pname: TGLenum, params: PGLint){.dynlib: dllname,
  1154. importc: "glGetLightiv".}
  1155. proc glGetMapdv*(target, query: TGLenum, v: PGLdouble){.dynlib: dllname,
  1156. importc: "glGetMapdv".}
  1157. proc glGetMapfv*(target, query: TGLenum, v: PGLfloat){.dynlib: dllname,
  1158. importc: "glGetMapfv".}
  1159. proc glGetMapiv*(target, query: TGLenum, v: PGLint){.dynlib: dllname,
  1160. importc: "glGetMapiv".}
  1161. proc glGetMaterialfv*(face, pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1162. importc: "glGetMaterialfv".}
  1163. proc glGetMaterialiv*(face, pname: TGLenum, params: PGLint){.dynlib: dllname,
  1164. importc: "glGetMaterialiv".}
  1165. proc glGetPixelMapfv*(map: TGLenum, values: PGLfloat){.dynlib: dllname,
  1166. importc: "glGetPixelMapfv".}
  1167. proc glGetPixelMapuiv*(map: TGLenum, values: PGLuint){.dynlib: dllname,
  1168. importc: "glGetPixelMapuiv".}
  1169. proc glGetPixelMapusv*(map: TGLenum, values: PGLushort){.dynlib: dllname,
  1170. importc: "glGetPixelMapusv".}
  1171. proc glGetPointerv*(pname: TGLenum, params: pointer){.dynlib: dllname,
  1172. importc: "glGetPointerv".}
  1173. proc glGetPolygonStipple*(mask: PGLubyte){.dynlib: dllname,
  1174. importc: "glGetPolygonStipple".}
  1175. proc glGetString*(name: TGLenum): cstring{.dynlib: dllname,
  1176. importc: "glGetString".}
  1177. proc glGetTexEnvfv*(target, pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1178. importc: "glGetTexEnvfv".}
  1179. proc glGetTexEnviv*(target, pname: TGLenum, params: PGLint){.dynlib: dllname,
  1180. importc: "glGetTexEnviv".}
  1181. proc glGetTexGendv*(coord, pname: TGLenum, params: PGLdouble){.dynlib: dllname,
  1182. importc: "glGetTexGendv".}
  1183. proc glGetTexGenfv*(coord, pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1184. importc: "glGetTexGenfv".}
  1185. proc glGetTexGeniv*(coord, pname: TGLenum, params: PGLint){.dynlib: dllname,
  1186. importc: "glGetTexGeniv".}
  1187. proc glGetTexImage*(target: TGLenum, level: TGLint, format: TGLenum,
  1188. atype: TGLenum, pixels: pointer){.dynlib: dllname,
  1189. importc: "glGetTexImage".}
  1190. proc glGetTexLevelParameterfv*(target: TGLenum, level: TGLint, pname: TGLenum,
  1191. params: pointer){.dynlib: dllname,
  1192. importc: "glGetTexLevelParameterfv".}
  1193. proc glGetTexLevelParameteriv*(target: TGLenum, level: TGLint, pname: TGLenum,
  1194. params: PGLint){.dynlib: dllname,
  1195. importc: "glGetTexLevelParameteriv".}
  1196. proc glGetTexParameterfv*(target, pname: TGLenum, params: PGLfloat){.
  1197. dynlib: dllname, importc: "glGetTexParameterfv".}
  1198. proc glGetTexParameteriv*(target, pname: TGLenum, params: PGLint){.
  1199. dynlib: dllname, importc: "glGetTexParameteriv".}
  1200. proc glHint*(target, mode: TGLenum){.dynlib: dllname, importc: "glHint".}
  1201. proc glIndexMask*(mask: TGLuint){.dynlib: dllname, importc: "glIndexMask".}
  1202. proc glIndexPointer*(atype: TGLenum, stride: TGLsizei, p: pointer){.
  1203. dynlib: dllname, importc: "glIndexPointer".}
  1204. proc glIndexd*(c: TGLdouble){.dynlib: dllname, importc: "glIndexd".}
  1205. proc glIndexdv*(c: PGLdouble){.dynlib: dllname, importc: "glIndexdv".}
  1206. proc glIndexf*(c: TGLfloat){.dynlib: dllname, importc: "glIndexf".}
  1207. proc glIndexfv*(c: PGLfloat){.dynlib: dllname, importc: "glIndexfv".}
  1208. proc glIndexi*(c: TGLint){.dynlib: dllname, importc: "glIndexi".}
  1209. proc glIndexiv*(c: PGLint){.dynlib: dllname, importc: "glIndexiv".}
  1210. proc glIndexs*(c: TGLshort){.dynlib: dllname, importc: "glIndexs".}
  1211. proc glIndexsv*(c: PGLshort){.dynlib: dllname, importc: "glIndexsv".}
  1212. proc glIndexub*(c: TGLubyte){.dynlib: dllname, importc: "glIndexub".}
  1213. proc glIndexubv*(c: PGLubyte){.dynlib: dllname, importc: "glIndexubv".}
  1214. proc glInitNames*(){.dynlib: dllname, importc: "glInitNames".}
  1215. proc glInterleavedArrays*(format: TGLenum, stride: TGLsizei, p: pointer){.
  1216. dynlib: dllname, importc: "glInterleavedArrays".}
  1217. proc glIsEnabled*(cap: TGLenum): TGLboolean{.dynlib: dllname,
  1218. importc: "glIsEnabled".}
  1219. proc glIsList*(list: TGLuint): TGLboolean{.dynlib: dllname, importc: "glIsList".}
  1220. proc glIsTexture*(texture: TGLuint): TGLboolean{.dynlib: dllname,
  1221. importc: "glIsTexture".}
  1222. proc glLightModelf*(pname: TGLenum, param: TGLfloat){.dynlib: dllname,
  1223. importc: "glLightModelf".}
  1224. proc glLightModelfv*(pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1225. importc: "glLightModelfv".}
  1226. proc glLightModeli*(pname: TGLenum, param: TGLint){.dynlib: dllname,
  1227. importc: "glLightModeli".}
  1228. proc glLightModeliv*(pname: TGLenum, params: PGLint){.dynlib: dllname,
  1229. importc: "glLightModeliv".}
  1230. proc glLightf*(light, pname: TGLenum, param: TGLfloat){.dynlib: dllname,
  1231. importc: "glLightf".}
  1232. proc glLightfv*(light, pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1233. importc: "glLightfv".}
  1234. proc glLighti*(light, pname: TGLenum, param: TGLint){.dynlib: dllname,
  1235. importc: "glLighti".}
  1236. proc glLightiv*(light, pname: TGLenum, params: PGLint){.dynlib: dllname,
  1237. importc: "glLightiv".}
  1238. proc glLineStipple*(factor: TGLint, pattern: TGLushort){.dynlib: dllname,
  1239. importc: "glLineStipple".}
  1240. proc glLineWidth*(width: TGLfloat){.dynlib: dllname, importc: "glLineWidth".}
  1241. proc glListBase*(base: TGLuint){.dynlib: dllname, importc: "glListBase".}
  1242. proc glLoadIdentity*(){.dynlib: dllname, importc: "glLoadIdentity".}
  1243. proc glLoadMatrixd*(m: PGLdouble){.dynlib: dllname, importc: "glLoadMatrixd".}
  1244. proc glLoadMatrixf*(m: PGLfloat){.dynlib: dllname, importc: "glLoadMatrixf".}
  1245. proc glLoadName*(name: TGLuint){.dynlib: dllname, importc: "glLoadName".}
  1246. proc glLogicOp*(opcode: TGLenum){.dynlib: dllname, importc: "glLogicOp".}
  1247. proc glMap1d*(target: TGLenum, u1, u2: TGLdouble, stride, order: TGLint,
  1248. points: PGLdouble){.dynlib: dllname, importc: "glMap1d".}
  1249. proc glMap1f*(target: TGLenum, u1, u2: TGLfloat, stride, order: TGLint,
  1250. points: PGLfloat){.dynlib: dllname, importc: "glMap1f".}
  1251. proc glMap2d*(target: TGLenum, u1, u2: TGLdouble, ustride, uorder: TGLint,
  1252. v1, v2: TGLdouble, vstride, vorder: TGLint, points: PGLdouble){.
  1253. dynlib: dllname, importc: "glMap2d".}
  1254. proc glMap2f*(target: TGLenum, u1, u2: TGLfloat, ustride, uorder: TGLint,
  1255. v1, v2: TGLfloat, vstride, vorder: TGLint, points: PGLfloat){.
  1256. dynlib: dllname, importc: "glMap2f".}
  1257. proc glMapGrid1d*(un: TGLint, u1, u2: TGLdouble){.dynlib: dllname,
  1258. importc: "glMapGrid1d".}
  1259. proc glMapGrid1f*(un: TGLint, u1, u2: TGLfloat){.dynlib: dllname,
  1260. importc: "glMapGrid1f".}
  1261. proc glMapGrid2d*(un: TGLint, u1, u2: TGLdouble, vn: TGLint, v1, v2: TGLdouble){.
  1262. dynlib: dllname, importc: "glMapGrid2d".}
  1263. proc glMapGrid2f*(un: TGLint, u1, u2: TGLfloat, vn: TGLint, v1, v2: TGLfloat){.
  1264. dynlib: dllname, importc: "glMapGrid2f".}
  1265. proc glMaterialf*(face, pname: TGLenum, param: TGLfloat){.dynlib: dllname,
  1266. importc: "glMaterialf".}
  1267. proc glMaterialfv*(face, pname: TGLenum, params: PGLfloat){.dynlib: dllname,
  1268. importc: "glMaterialfv".}
  1269. proc glMateriali*(face, pname: TGLenum, param: TGLint){.dynlib: dllname,
  1270. importc: "glMateriali".}
  1271. proc glMaterialiv*(face, pname: TGLenum, params: PGLint){.dynlib: dllname,
  1272. importc: "glMaterialiv".}
  1273. proc glMatrixMode*(mode: TGLenum){.dynlib: dllname, importc: "glMatrixMode".}
  1274. proc glMultMatrixd*(m: PGLdouble){.dynlib: dllname, importc: "glMultMatrixd".}
  1275. proc glMultMatrixf*(m: PGLfloat){.dynlib: dllname, importc: "glMultMatrixf".}
  1276. proc glNewList*(list: TGLuint, mode: TGLenum){.dynlib: dllname,
  1277. importc: "glNewList".}
  1278. proc glNormal3b*(nx, ny, nz: TGlbyte){.dynlib: dllname, importc: "glNormal3b".}
  1279. proc glNormal3bv*(v: PGLbyte){.dynlib: dllname, importc: "glNormal3bv".}
  1280. proc glNormal3d*(nx, ny, nz: TGLdouble){.dynlib: dllname, importc: "glNormal3d".}
  1281. proc glNormal3dv*(v: PGLdouble){.dynlib: dllname, importc: "glNormal3dv".}
  1282. proc glNormal3f*(nx, ny, nz: TGLfloat){.dynlib: dllname, importc: "glNormal3f".}
  1283. proc glNormal3fv*(v: PGLfloat){.dynlib: dllname, importc: "glNormal3fv".}
  1284. proc glNormal3i*(nx, ny, nz: TGLint){.dynlib: dllname, importc: "glNormal3i".}
  1285. proc glNormal3iv*(v: PGLint){.dynlib: dllname, importc: "glNormal3iv".}
  1286. proc glNormal3s*(nx, ny, nz: TGLshort){.dynlib: dllname, importc: "glNormal3s".}
  1287. proc glNormal3sv*(v: PGLshort){.dynlib: dllname, importc: "glNormal3sv".}
  1288. proc glNormalPointer*(atype: TGLenum, stride: TGLsizei, p: pointer){.
  1289. dynlib: dllname, importc: "glNormalPointer".}
  1290. proc glOrtho*(left, right, bottom, top, zNear, zFar: TGLdouble){.
  1291. dynlib: dllname, importc: "glOrtho".}
  1292. proc glPassThrough*(token: TGLfloat){.dynlib: dllname, importc: "glPassThrough".}
  1293. proc glPixelMapfv*(map: TGLenum, mapsize: TGLsizei, values: PGLfloat){.
  1294. dynlib: dllname, importc: "glPixelMapfv".}
  1295. proc glPixelMapuiv*(map: TGLenum, mapsize: TGLsizei, values: PGLuint){.
  1296. dynlib: dllname, importc: "glPixelMapuiv".}
  1297. proc glPixelMapusv*(map: TGLenum, mapsize: TGLsizei, values: PGLushort){.
  1298. dynlib: dllname, importc: "glPixelMapusv".}
  1299. proc glPixelStoref*(pname: TGLenum, param: TGLfloat){.dynlib: dllname,
  1300. importc: "glPixelStoref".}
  1301. proc glPixelStorei*(pname: TGLenum, param: TGLint){.dynlib: dllname,
  1302. importc: "glPixelStorei".}
  1303. proc glPixelTransferf*(pname: TGLenum, param: TGLfloat){.dynlib: dllname,
  1304. importc: "glPixelTransferf".}
  1305. proc glPixelTransferi*(pname: TGLenum, param: TGLint){.dynlib: dllname,
  1306. importc: "glPixelTransferi".}
  1307. proc glPixelZoom*(xfactor, yfactor: TGLfloat){.dynlib: dllname,
  1308. importc: "glPixelZoom".}
  1309. proc glPointSize*(size: TGLfloat){.dynlib: dllname, importc: "glPointSize".}
  1310. proc glPolygonMode*(face, mode: TGLenum){.dynlib: dllname,
  1311. importc: "glPolygonMode".}
  1312. proc glPolygonOffset*(factor, units: TGLfloat){.dynlib: dllname,
  1313. importc: "glPolygonOffset".}
  1314. proc glPolygonStipple*(mask: PGLubyte){.dynlib: dllname,
  1315. importc: "glPolygonStipple".}
  1316. proc glPopAttrib*(){.dynlib: dllname, importc: "glPopAttrib".}
  1317. proc glPopClientAttrib*(){.dynlib: dllname, importc: "glPopClientAttrib".}
  1318. proc glPopMatrix*(){.dynlib: dllname, importc: "glPopMatrix".}
  1319. proc glPopName*(){.dynlib: dllname, importc: "glPopName".}
  1320. proc glPrioritizeTextures*(n: TGLsizei, textures: PGLuint, priorities: PGLclampf){.
  1321. dynlib: dllname, importc: "glPrioritizeTextures".}
  1322. proc glPushAttrib*(mask: TGLbitfield){.dynlib: dllname, importc: "glPushAttrib".}
  1323. proc glPushClientAttrib*(mask: TGLbitfield){.dynlib: dllname,
  1324. importc: "glPushClientAttrib".}
  1325. proc glPushMatrix*(){.dynlib: dllname, importc: "glPushMatrix".}
  1326. proc glPushName*(name: TGLuint){.dynlib: dllname, importc: "glPushName".}
  1327. proc glRasterPos2d*(x, y: TGLdouble){.dynlib: dllname, importc: "glRasterPos2d".}
  1328. proc glRasterPos2dv*(v: PGLdouble){.dynlib: dllname, importc: "glRasterPos2dv".}
  1329. proc glRasterPos2f*(x, y: TGLfloat){.dynlib: dllname, importc: "glRasterPos2f".}
  1330. proc glRasterPos2fv*(v: PGLfloat){.dynlib: dllname, importc: "glRasterPos2fv".}
  1331. proc glRasterPos2i*(x, y: TGLint){.dynlib: dllname, importc: "glRasterPos2i".}
  1332. proc glRasterPos2iv*(v: PGLint){.dynlib: dllname, importc: "glRasterPos2iv".}
  1333. proc glRasterPos2s*(x, y: TGLshort){.dynlib: dllname, importc: "glRasterPos2s".}
  1334. proc glRasterPos2sv*(v: PGLshort){.dynlib: dllname, importc: "glRasterPos2sv".}
  1335. proc glRasterPos3d*(x, y, z: TGLdouble){.dynlib: dllname,
  1336. importc: "glRasterPos3d".}
  1337. proc glRasterPos3dv*(v: PGLdouble){.dynlib: dllname, importc: "glRasterPos3dv".}
  1338. proc glRasterPos3f*(x, y, z: TGLfloat){.dynlib: dllname,
  1339. importc: "glRasterPos3f".}
  1340. proc glRasterPos3fv*(v: PGLfloat){.dynlib: dllname, importc: "glRasterPos3fv".}
  1341. proc glRasterPos3i*(x, y, z: TGLint){.dynlib: dllname, importc: "glRasterPos3i".}
  1342. proc glRasterPos3iv*(v: PGLint){.dynlib: dllname, importc: "glRasterPos3iv".}
  1343. proc glRasterPos3s*(x, y, z: TGLshort){.dynlib: dllname,
  1344. importc: "glRasterPos3s".}
  1345. proc glRasterPos3sv*(v: PGLshort){.dynlib: dllname, importc: "glRasterPos3sv".}
  1346. proc glRasterPos4d*(x, y, z, w: TGLdouble){.dynlib: dllname,
  1347. importc: "glRasterPos4d".}
  1348. proc glRasterPos4dv*(v: PGLdouble){.dynlib: dllname, importc: "glRasterPos4dv".}
  1349. proc glRasterPos4f*(x, y, z, w: TGLfloat){.dynlib: dllname,
  1350. importc: "glRasterPos4f".}
  1351. proc glRasterPos4fv*(v: PGLfloat){.dynlib: dllname, importc: "glRasterPos4fv".}
  1352. proc glRasterPos4i*(x, y, z, w: TGLint){.dynlib: dllname,
  1353. importc: "glRasterPos4i".}
  1354. proc glRasterPos4iv*(v: PGLint){.dynlib: dllname, importc: "glRasterPos4iv".}
  1355. proc glRasterPos4s*(x, y, z, w: TGLshort){.dynlib: dllname,
  1356. importc: "glRasterPos4s".}
  1357. proc glRasterPos4sv*(v: PGLshort){.dynlib: dllname, importc: "glRasterPos4sv".}
  1358. proc glReadBuffer*(mode: TGLenum){.dynlib: dllname, importc: "glReadBuffer".}
  1359. proc glReadPixels*(x, y: TGLint, width, height: TGLsizei,
  1360. format, atype: TGLenum, pixels: pointer){.dynlib: dllname,
  1361. importc: "glReadPixels".}
  1362. proc glRectd*(x1, y1, x2, y2: TGLdouble){.dynlib: dllname, importc: "glRectd".}
  1363. proc glRectdv*(v1: PGLdouble, v2: PGLdouble){.dynlib: dllname,
  1364. importc: "glRectdv".}
  1365. proc glRectf*(x1, y1, x2, y2: TGLfloat){.dynlib: dllname, importc: "glRectf".}
  1366. proc glRectfv*(v1: PGLfloat, v2: PGLfloat){.dynlib: dllname, importc: "glRectfv".}
  1367. proc glRecti*(x1, y1, x2, y2: TGLint){.dynlib: dllname, importc: "glRecti".}
  1368. proc glRectiv*(v1: PGLint, v2: PGLint){.dynlib: dllname, importc: "glRectiv".}
  1369. proc glRects*(x1, y1, x2, y2: TGLshort){.dynlib: dllname, importc: "glRects".}
  1370. proc glRectsv*(v1: PGLshort, v2: PGLshort){.dynlib: dllname, importc: "glRectsv".}
  1371. proc glRenderMode*(mode: TGLint): TGLint{.dynlib: dllname,
  1372. importc: "glRenderMode".}
  1373. proc glRotated*(angle, x, y, z: TGLdouble){.dynlib: dllname,
  1374. importc: "glRotated".}
  1375. proc glRotatef*(angle, x, y, z: TGLfloat){.dynlib: dllname, importc: "glRotatef".}
  1376. proc glScaled*(x, y, z: TGLdouble){.dynlib: dllname, importc: "glScaled".}
  1377. proc glScalef*(x, y, z: TGLfloat){.dynlib: dllname, importc: "glScalef".}
  1378. proc glScissor*(x, y: TGLint, width, height: TGLsizei){.dynlib: dllname,
  1379. importc: "glScissor".}
  1380. proc glSelectBuffer*(size: TGLsizei, buffer: PGLuint){.dynlib: dllname,
  1381. importc: "glSelectBuffer".}
  1382. proc glShadeModel*(mode: TGLenum){.dynlib: dllname, importc: "glShadeModel".}
  1383. proc glStencilFunc*(fun: TGLenum, theref: TGLint, mask: TGLuint){.
  1384. dynlib: dllname, importc: "glStencilFunc".}
  1385. proc glStencilMask*(mask: TGLuint){.dynlib: dllname, importc: "glStencilMask".}
  1386. proc glStencilOp*(fail, zfail, zpass: TGLenum){.dynlib: dllname,
  1387. importc: "glStencilOp".}
  1388. proc glTexCoord1d*(s: TGLdouble){.dynlib: dllname, importc: "glTexCoord1d".}
  1389. proc glTexCoord1dv*(v: PGLdouble){.dynlib: dllname, importc: "glTexCoord1dv".}
  1390. proc glTexCoord1f*(s: TGLfloat){.dynlib: dllname, importc: "glTexCoord1f".}
  1391. proc glTexCoord1fv*(v: PGLfloat){.dynlib: dllname, importc: "glTexCoord1fv".}
  1392. proc glTexCoord1i*(s: TGLint){.dynlib: dllname, importc: "glTexCoord1i".}
  1393. proc glTexCoord1iv*(v: PGLint){.dynlib: dllname, importc: "glTexCoord1iv".}
  1394. proc glTexCoord1s*(s: TGLshort){.dynlib: dllname, importc: "glTexCoord1s".}
  1395. proc glTexCoord1sv*(v: PGLshort){.dynlib: dllname, importc: "glTexCoord1sv".}
  1396. proc glTexCoord2d*(s, t: TGLdouble){.dynlib: dllname, importc: "glTexCoord2d".}
  1397. proc glTexCoord2dv*(v: PGLdouble){.dynlib: dllname, importc: "glTexCoord2dv".}
  1398. proc glTexCoord2f*(s, t: TGLfloat){.dynlib: dllname, importc: "glTexCoord2f".}
  1399. proc glTexCoord2fv*(v: PGLfloat){.dynlib: dllname, importc: "glTexCoord2fv".}
  1400. proc glTexCoord2i*(s, t: TGLint){.dynlib: dllname, importc: "glTexCoord2i".}
  1401. proc glTexCoord2iv*(v: PGLint){.dynlib: dllname, importc: "glTexCoord2iv".}
  1402. proc glTexCoord2s*(s, t: TGLshort){.dynlib: dllname, importc: "glTexCoord2s".}
  1403. proc glTexCoord2sv*(v: PGLshort){.dynlib: dllname, importc: "glTexCoord2sv".}
  1404. proc glTexCoord3d*(s, t, r: TGLdouble){.dynlib: dllname, importc: "glTexCoord3d".}
  1405. proc glTexCoord3dv*(v: PGLdouble){.dynlib: dllname, importc: "glTexCoord3dv".}
  1406. proc glTexCoord3f*(s, t, r: TGLfloat){.dynlib: dllname, importc: "glTexCoord3f".}
  1407. proc glTexCoord3fv*(v: PGLfloat){.dynlib: dllname, importc: "glTexCoord3fv".}
  1408. proc glTexCoord3i*(s, t, r: TGLint){.dynlib: dllname, importc: "glTexCoord3i".}
  1409. proc glTexCoord3iv*(v: PGLint){.dynlib: dllname, importc: "glTexCoord3iv".}
  1410. proc glTexCoord3s*(s, t, r: TGLshort){.dynlib: dllname, importc: "glTexCoord3s".}
  1411. proc glTexCoord3sv*(v: PGLshort){.dynlib: dllname, importc: "glTexCoord3sv".}
  1412. proc glTexCoord4d*(s, t, r, q: TGLdouble){.dynlib: dllname,
  1413. importc: "glTexCoord4d".}
  1414. proc glTexCoord4dv*(v: PGLdouble){.dynlib: dllname, importc: "glTexCoord4dv".}
  1415. proc glTexCoord4f*(s, t, r, q: TGLfloat){.dynlib: dllname,
  1416. importc: "glTexCoord4f".}
  1417. proc glTexCoord4fv*(v: PGLfloat){.dynlib: dllname, importc: "glTexCoord4fv".}
  1418. proc glTexCoord4i*(s, t, r, q: TGLint){.dynlib: dllname, importc: "glTexCoord4i".}
  1419. proc glTexCoord4iv*(v: PGLint){.dynlib: dllname, importc: "glTexCoord4iv".}
  1420. proc glTexCoord4s*(s, t, r, q: TGLshort){.dynlib: dllname,
  1421. importc: "glTexCoord4s".}
  1422. proc glTexCoord4sv*(v: PGLshort){.dynlib: dllname, importc: "glTexCoord4sv".}
  1423. proc glTexCoordPointer*(size: TGLint, atype: TGLenum, stride: TGLsizei,
  1424. p: pointer){.dynlib: dllname,
  1425. importc: "glTexCoordPointer".}
  1426. proc glTexEnvf*(target: TGLenum, pname: TGLenum, param: TGLfloat){.
  1427. dynlib: dllname, importc: "glTexEnvf".}
  1428. proc glTexEnvfv*(target: TGLenum, pname: TGLenum, params: PGLfloat){.
  1429. dynlib: dllname, importc: "glTexEnvfv".}
  1430. proc glTexEnvi*(target: TGLenum, pname: TGLenum, param: TGLint){.
  1431. dynlib: dllname, importc: "glTexEnvi".}
  1432. proc glTexEnviv*(target: TGLenum, pname: TGLenum, params: PGLint){.
  1433. dynlib: dllname, importc: "glTexEnviv".}
  1434. proc glTexGend*(coord: TGLenum, pname: TGLenum, param: TGLdouble){.
  1435. dynlib: dllname, importc: "glTexGend".}
  1436. proc glTexGendv*(coord: TGLenum, pname: TGLenum, params: PGLdouble){.
  1437. dynlib: dllname, importc: "glTexGendv".}
  1438. proc glTexGenf*(coord: TGLenum, pname: TGLenum, param: TGLfloat){.
  1439. dynlib: dllname, importc: "glTexGenf".}
  1440. proc glTexGenfv*(coord: TGLenum, pname: TGLenum, params: PGLfloat){.
  1441. dynlib: dllname, importc: "glTexGenfv".}
  1442. proc glTexGeni*(coord: TGLenum, pname: TGLenum, param: TGLint){.dynlib: dllname,
  1443. importc: "glTexGeni".}
  1444. proc glTexGeniv*(coord: TGLenum, pname: TGLenum, params: PGLint){.
  1445. dynlib: dllname, importc: "glTexGeniv".}
  1446. proc glTexImage1D*(target: TGLenum, level, internalformat: TGLint,
  1447. width: TGLsizei, border: TGLint, format, atype: TGLenum,
  1448. pixels: pointer){.dynlib: dllname, importc: "glTexImage1D".}
  1449. proc glTexImage2D*(target: TGLenum, level, internalformat: TGLint,
  1450. width, height: TGLsizei, border: TGLint,
  1451. format, atype: TGLenum, pixels: pointer){.dynlib: dllname,
  1452. importc: "glTexImage2D".}
  1453. proc glTexParameterf*(target: TGLenum, pname: TGLenum, param: TGLfloat){.
  1454. dynlib: dllname, importc: "glTexParameterf".}
  1455. proc glTexParameterfv*(target: TGLenum, pname: TGLenum, params: PGLfloat){.
  1456. dynlib: dllname, importc: "glTexParameterfv".}
  1457. proc glTexParameteri*(target: TGLenum, pname: TGLenum, param: TGLint){.
  1458. dynlib: dllname, importc: "glTexParameteri".}
  1459. proc glTexParameteriv*(target: TGLenum, pname: TGLenum, params: PGLint){.
  1460. dynlib: dllname, importc: "glTexParameteriv".}
  1461. proc glTexSubImage1D*(target: TGLenum, level, xoffset: TGLint, width: TGLsizei,
  1462. format, atype: TGLenum, pixels: pointer){.dynlib: dllname,
  1463. importc: "glTexSubImage1D".}
  1464. proc glTexSubImage2D*(target: TGLenum, level, xoffset, yoffset: TGLint,
  1465. width, height: TGLsizei, format, atype: TGLenum,
  1466. pixels: pointer){.dynlib: dllname,
  1467. importc: "glTexSubImage2D".}
  1468. proc glTranslated*(x, y, z: TGLdouble){.dynlib: dllname, importc: "glTranslated".}
  1469. proc glTranslatef*(x, y, z: TGLfloat){.dynlib: dllname, importc: "glTranslatef".}
  1470. proc glVertex2d*(x, y: TGLdouble){.dynlib: dllname, importc: "glVertex2d".}
  1471. proc glVertex2dv*(v: PGLdouble){.dynlib: dllname, importc: "glVertex2dv".}
  1472. proc glVertex2f*(x, y: TGLfloat){.dynlib: dllname, importc: "glVertex2f".}
  1473. proc glVertex2fv*(v: PGLfloat){.dynlib: dllname, importc: "glVertex2fv".}
  1474. proc glVertex2i*(x, y: TGLint){.dynlib: dllname, importc: "glVertex2i".}
  1475. proc glVertex2iv*(v: PGLint){.dynlib: dllname, importc: "glVertex2iv".}
  1476. proc glVertex2s*(x, y: TGLshort){.dynlib: dllname, importc: "glVertex2s".}
  1477. proc glVertex2sv*(v: PGLshort){.dynlib: dllname, importc: "glVertex2sv".}
  1478. proc glVertex3d*(x, y, z: TGLdouble){.dynlib: dllname, importc: "glVertex3d".}
  1479. proc glVertex3dv*(v: PGLdouble){.dynlib: dllname, importc: "glVertex3dv".}
  1480. proc glVertex3f*(x, y, z: TGLfloat){.dynlib: dllname, importc: "glVertex3f".}
  1481. proc glVertex3fv*(v: PGLfloat){.dynlib: dllname, importc: "glVertex3fv".}
  1482. proc glVertex3i*(x, y, z: TGLint){.dynlib: dllname, importc: "glVertex3i".}
  1483. proc glVertex3iv*(v: PGLint){.dynlib: dllname, importc: "glVertex3iv".}
  1484. proc glVertex3s*(x, y, z: TGLshort){.dynlib: dllname, importc: "glVertex3s".}
  1485. proc glVertex3sv*(v: PGLshort){.dynlib: dllname, importc: "glVertex3sv".}
  1486. proc glVertex4d*(x, y, z, w: TGLdouble){.dynlib: dllname, importc: "glVertex4d".}
  1487. proc glVertex4dv*(v: PGLdouble){.dynlib: dllname, importc: "glVertex4dv".}
  1488. proc glVertex4f*(x, y, z, w: TGLfloat){.dynlib: dllname, importc: "glVertex4f".}
  1489. proc glVertex4fv*(v: PGLfloat){.dynlib: dllname, importc: "glVertex4fv".}
  1490. proc glVertex4i*(x, y, z, w: TGLint){.dynlib: dllname, importc: "glVertex4i".}
  1491. proc glVertex4iv*(v: PGLint){.dynlib: dllname, importc: "glVertex4iv".}
  1492. proc glVertex4s*(x, y, z, w: TGLshort){.dynlib: dllname, importc: "glVertex4s".}
  1493. proc glVertex4sv*(v: PGLshort){.dynlib: dllname, importc: "glVertex4sv".}
  1494. proc glVertexPointer*(size: TGLint, atype: TGLenum, stride: TGLsizei,
  1495. p: pointer){.dynlib: dllname,
  1496. importc: "glVertexPointer".}
  1497. proc glViewport*(x, y: TGLint, width, height: TGLsizei){.dynlib: dllname,
  1498. importc: "glViewport".}
  1499. type
  1500. PFN_GLARRAY_ELEMENT_EXTPROC* = proc (i: TGLint)
  1501. PFN_GLDRAW_ARRAYS_EXTPROC* = proc (mode: TGLenum, first: TGLint,
  1502. count: TGLsizei)
  1503. PFN_GLVERTEX_POINTER_EXTPROC* = proc (size: TGLint, atype: TGLenum,
  1504. stride, count: TGLsizei,
  1505. p: pointer)
  1506. PFN_GLNORMAL_POINTER_EXTPROC* = proc (atype: TGLenum, stride, count: TGLsizei,
  1507. p: pointer)
  1508. PFN_GLCOLOR_POINTER_EXTPROC* = proc (size: TGLint, atype: TGLenum,
  1509. stride, count: TGLsizei, p: pointer)
  1510. PFN_GLINDEX_POINTER_EXTPROC* = proc (atype: TGLenum, stride, count: TGLsizei,
  1511. p: pointer)
  1512. PFN_GLTEXCOORD_POINTER_EXTPROC* = proc (size: TGLint, atype: TGLenum,
  1513. stride, count: TGLsizei, p: pointer)
  1514. PFN_GLEDGEFLAG_POINTER_EXTPROC* = proc (stride, count: TGLsizei,
  1515. pointer: PGLboolean)
  1516. PFN_GLGET_POINTER_VEXT_PROC* = proc (pname: TGLenum, params: pointer)
  1517. PFN_GLARRAY_ELEMENT_ARRAY_EXTPROC* = proc (mode: TGLenum, count: TGLsizei,
  1518. pi: pointer) # WIN_swap_hint
  1519. PFN_GLADDSWAPHINT_RECT_WINPROC* = proc (x, y: TGLint, width, height: TGLsizei)
  1520. PFN_GLCOLOR_TABLE_EXTPROC* = proc (target, internalFormat: TGLenum,
  1521. width: TGLsizei, format, atype: TGLenum,
  1522. data: pointer)
  1523. PFN_GLCOLOR_SUBTABLE_EXTPROC* = proc (target: TGLenum, start, count: TGLsizei,
  1524. format, atype: TGLenum, data: pointer)
  1525. PFN_GLGETCOLOR_TABLE_EXTPROC* = proc (target, format, atype: TGLenum,
  1526. data: pointer)
  1527. PFN_GLGETCOLOR_TABLE_PARAMETER_IVEXTPROC* = proc (target, pname: TGLenum,
  1528. params: PGLint)
  1529. PFN_GLGETCOLOR_TABLE_PARAMETER_FVEXTPROC* = proc (target, pname: TGLenum,
  1530. params: PGLfloat)
  1531. {.pop.}
  1532. # implementation