opengl.bmx 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. Strict
  2. Rem
  3. bbdoc: Graphics/OpenGL 1.1
  4. End Rem
  5. Module Pub.OpenGL
  6. ModuleInfo "Version: 1.02"
  7. ModuleInfo "License: SGI Free Software License B"
  8. ModuleInfo "Modserver: BRL"
  9. ModuleInfo "History: 1.02 Release"
  10. ModuleInfo "History: Restored GLU"
  11. ?MacOS
  12. Import "-framework AGL"
  13. Import "-framework OpenGL"
  14. ?Win32
  15. Import "-lglu32"
  16. Import "-lopengl32"
  17. ?Linux
  18. Import "-lGL"
  19. Import "-lGLU"
  20. ?
  21. Import "glu.bmx"
  22. Extern "Os"
  23. Const GL_ACCUM=$0100
  24. Const GL_LOAD=$0101
  25. Const GL_RETURN=$0102
  26. Const GL_MULT=$0103
  27. Const GL_ADD=$0104
  28. Const GL_NEVER=$0200
  29. Const GL_LESS=$0201
  30. Const GL_EQUAL=$0202
  31. Const GL_LEQUAL=$0203
  32. Const GL_GREATER=$0204
  33. Const GL_NOTEQUAL=$0205
  34. Const GL_GEQUAL=$0206
  35. Const GL_ALWAYS=$0207
  36. Const GL_CURRENT_BIT=$00000001
  37. Const GL_POINT_BIT=$00000002
  38. Const GL_LINE_BIT=$00000004
  39. Const GL_POLYGON_BIT=$00000008
  40. Const GL_POLYGON_STIPPLE_BIT=$00000010
  41. Const GL_PIXEL_MODE_BIT=$00000020
  42. Const GL_LIGHTING_BIT=$00000040
  43. Const GL_FOG_BIT=$00000080
  44. Const GL_DEPTH_BUFFER_BIT=$00000100
  45. Const GL_ACCUM_BUFFER_BIT=$00000200
  46. Const GL_STENCIL_BUFFER_BIT=$00000400
  47. Const GL_VIEWPORT_BIT=$00000800
  48. Const GL_TRANSFORM_BIT=$00001000
  49. Const GL_ENABLE_BIT=$00002000
  50. Const GL_COLOR_BUFFER_BIT=$00004000
  51. Const GL_HINT_BIT=$00008000
  52. Const GL_EVAL_BIT=$00010000
  53. Const GL_LIST_BIT=$00020000
  54. Const GL_TEXTURE_BIT=$00040000
  55. Const GL_SCISSOR_BIT=$00080000
  56. Const GL_ALL_ATTRIB_BITS=$000fffff
  57. Const GL_POINTS=$0000
  58. Const GL_LINES=$0001
  59. Const GL_LINE_LOOP=$0002
  60. Const GL_LINE_STRIP=$0003
  61. Const GL_TRIANGLES=$0004
  62. Const GL_TRIANGLE_STRIP=$0005
  63. Const GL_TRIANGLE_FAN=$0006
  64. Const GL_QUADS=$0007
  65. Const GL_QUAD_STRIP=$0008
  66. Const GL_POLYGON=$0009
  67. Const GL_ZERO=0
  68. Const GL_ONE=1
  69. Const GL_SRC_COLOR=$0300
  70. Const GL_ONE_MINUS_SRC_COLOR=$0301
  71. Const GL_SRC_ALPHA=$0302
  72. Const GL_ONE_MINUS_SRC_ALPHA=$0303
  73. Const GL_DST_ALPHA=$0304
  74. Const GL_ONE_MINUS_DST_ALPHA=$0305
  75. Const GL_DST_COLOR=$0306
  76. Const GL_ONE_MINUS_DST_COLOR=$0307
  77. Const GL_SRC_ALPHA_SATURATE=$0308
  78. Const GL_TRUE=1
  79. Const GL_FALSE=0
  80. Const GL_CLIP_PLANE0=$3000
  81. Const GL_CLIP_PLANE1=$3001
  82. Const GL_CLIP_PLANE2=$3002
  83. Const GL_CLIP_PLANE3=$3003
  84. Const GL_CLIP_PLANE4=$3004
  85. Const GL_CLIP_PLANE5=$3005
  86. Const GL_BYTE=$1400
  87. Const GL_UNSIGNED_BYTE=$1401
  88. Const GL_SHORT=$1402
  89. Const GL_UNSIGNED_SHORT=$1403
  90. Const GL_INT=$1404
  91. Const GL_UNSIGNED_INT=$1405
  92. Const GL_FLOAT=$1406
  93. Const GL_2_BYTES=$1407
  94. Const GL_3_BYTES=$1408
  95. Const GL_4_BYTES=$1409
  96. Const GL_DOUBLE=$140A
  97. Const GL_NONE=0
  98. Const GL_FRONT_LEFT=$0400
  99. Const GL_FRONT_RIGHT=$0401
  100. Const GL_BACK_LEFT=$0402
  101. Const GL_BACK_RIGHT=$0403
  102. Const GL_FRONT=$0404
  103. Const GL_BACK=$0405
  104. Const GL_LEFT=$0406
  105. Const GL_RIGHT=$0407
  106. Const GL_FRONT_AND_BACK=$0408
  107. Const GL_AUX0=$0409
  108. Const GL_AUX1=$040A
  109. Const GL_AUX2=$040B
  110. Const GL_AUX3=$040C
  111. Const GL_NO_ERROR=0
  112. Const GL_INVALID_ENUM=$0500
  113. Const GL_INVALID_VALUE=$0501
  114. Const GL_INVALID_OPERATION=$0502
  115. Const GL_STACK_OVERFLOW=$0503
  116. Const GL_STACK_UNDERFLOW=$0504
  117. Const GL_OUT_OF_MEMORY=$0505
  118. Const GL_2D=$0600
  119. Const GL_3D=$0601
  120. Const GL_3D_COLOR=$0602
  121. Const GL_3D_COLOR_TEXTURE=$0603
  122. Const GL_4D_COLOR_TEXTURE=$0604
  123. Const GL_PASS_THROUGH_TOKEN=$0700
  124. Const GL_POINT_TOKEN=$0701
  125. Const GL_LINE_TOKEN=$0702
  126. Const GL_POLYGON_TOKEN=$0703
  127. Const GL_BITMAP_TOKEN=$0704
  128. Const GL_DRAW_PIXEL_TOKEN=$0705
  129. Const GL_COPY_PIXEL_TOKEN=$0706
  130. Const GL_LINE_RESET_TOKEN=$0707
  131. Const GL_EXP=$0800
  132. Const GL_EXP2=$0801
  133. Const GL_CW=$0900
  134. Const GL_CCW=$0901
  135. Const GL_COEFF=$0A00
  136. Const GL_ORDER=$0A01
  137. Const GL_DOMAIN=$0A02
  138. Const GL_CURRENT_COLOR=$0B00
  139. Const GL_CURRENT_INDEX=$0B01
  140. Const GL_CURRENT_NORMAL=$0B02
  141. Const GL_CURRENT_TEXTURE_COORDS=$0B03
  142. Const GL_CURRENT_RASTER_COLOR=$0B04
  143. Const GL_CURRENT_RASTER_INDEX=$0B05
  144. Const GL_CURRENT_RASTER_TEXTURE_COORDS=$0B06
  145. Const GL_CURRENT_RASTER_POSITION=$0B07
  146. Const GL_CURRENT_RASTER_POSITION_VALID=$0B08
  147. Const GL_CURRENT_RASTER_DISTANCE=$0B09
  148. Const GL_POINT_SMOOTH=$0B10
  149. Const GL_POINT_SIZE=$0B11
  150. Const GL_POINT_SIZE_RANGE=$0B12
  151. Const GL_POINT_SIZE_GRANULARITY=$0B13
  152. Const GL_LINE_SMOOTH=$0B20
  153. Const GL_LINE_WIDTH=$0B21
  154. Const GL_LINE_WIDTH_RANGE=$0B22
  155. Const GL_LINE_WIDTH_GRANULARITY=$0B23
  156. Const GL_LINE_STIPPLE=$0B24
  157. Const GL_LINE_STIPPLE_PATTERN=$0B25
  158. Const GL_LINE_STIPPLE_REPEAT=$0B26
  159. Const GL_LIST_MODE=$0B30
  160. Const GL_MAX_LIST_NESTING=$0B31
  161. Const GL_LIST_BASE=$0B32
  162. Const GL_LIST_INDEX=$0B33
  163. Const GL_POLYGON_MODE=$0B40
  164. Const GL_POLYGON_SMOOTH=$0B41
  165. Const GL_POLYGON_STIPPLE=$0B42
  166. Const GL_EDGE_FLAG=$0B43
  167. Const GL_CULL_FACE=$0B44
  168. Const GL_CULL_FACE_MODE=$0B45
  169. Const GL_FRONT_FACE=$0B46
  170. Const GL_LIGHTING=$0B50
  171. Const GL_LIGHT_MODEL_LOCAL_VIEWER=$0B51
  172. Const GL_LIGHT_MODEL_TWO_SIDE=$0B52
  173. Const GL_LIGHT_MODEL_AMBIENT=$0B53
  174. Const GL_SHADE_MODEL=$0B54
  175. Const GL_COLOR_MATERIAL_FACE=$0B55
  176. Const GL_COLOR_MATERIAL_PARAMETER=$0B56
  177. Const GL_COLOR_MATERIAL=$0B57
  178. Const GL_FOG=$0B60
  179. Const GL_FOG_INDEX=$0B61
  180. Const GL_FOG_DENSITY=$0B62
  181. Const GL_FOG_START=$0B63
  182. Const GL_FOG_END=$0B64
  183. Const GL_FOG_MODE=$0B65
  184. Const GL_FOG_COLOR=$0B66
  185. Const GL_DEPTH_RANGE=$0B70
  186. Const GL_DEPTH_TEST=$0B71
  187. Const GL_DEPTH_WRITEMASK=$0B72
  188. Const GL_DEPTH_CLEAR_VALUE=$0B73
  189. Const GL_DEPTH_FUNC=$0B74
  190. Const GL_ACCUM_CLEAR_VALUE=$0B80
  191. Const GL_STENCIL_TEST=$0B90
  192. Const GL_STENCIL_CLEAR_VALUE=$0B91
  193. Const GL_STENCIL_FUNC=$0B92
  194. Const GL_STENCIL_VALUE_MASK=$0B93
  195. Const GL_STENCIL_FAIL=$0B94
  196. Const GL_STENCIL_PASS_DEPTH_FAIL=$0B95
  197. Const GL_STENCIL_PASS_DEPTH_PASS=$0B96
  198. Const GL_STENCIL_REF=$0B97
  199. Const GL_STENCIL_WRITEMASK=$0B98
  200. Const GL_MATRIX_MODE=$0BA0
  201. Const GL_NORMALIZE=$0BA1
  202. Const GL_VIEWPORT=$0BA2
  203. Const GL_MODELVIEW_STACK_DEPTH=$0BA3
  204. Const GL_PROJECTION_STACK_DEPTH=$0BA4
  205. Const GL_TEXTURE_STACK_DEPTH=$0BA5
  206. Const GL_MODELVIEW_MATRIX=$0BA6
  207. Const GL_PROJECTION_MATRIX=$0BA7
  208. Const GL_TEXTURE_MATRIX=$0BA8
  209. Const GL_ATTRIB_STACK_DEPTH=$0BB0
  210. Const GL_CLIENT_ATTRIB_STACK_DEPTH=$0BB1
  211. Const GL_ALPHA_TEST=$0BC0
  212. Const GL_ALPHA_TEST_FUNC=$0BC1
  213. Const GL_ALPHA_TEST_REF=$0BC2
  214. Const GL_DITHER=$0BD0
  215. Const GL_BLEND_DST=$0BE0
  216. Const GL_BLEND_SRC=$0BE1
  217. Const GL_BLEND=$0BE2
  218. Const GL_LOGIC_OP_MODE=$0BF0
  219. Const GL_INDEX_LOGIC_OP=$0BF1
  220. Const GL_COLOR_LOGIC_OP=$0BF2
  221. Const GL_AUX_BUFFERS=$0C00
  222. Const GL_DRAW_BUFFER=$0C01
  223. Const GL_READ_BUFFER=$0C02
  224. Const GL_SCISSOR_BOX=$0C10
  225. Const GL_SCISSOR_TEST=$0C11
  226. Const GL_INDEX_CLEAR_VALUE=$0C20
  227. Const GL_INDEX_WRITEMASK=$0C21
  228. Const GL_COLOR_CLEAR_VALUE=$0C22
  229. Const GL_COLOR_WRITEMASK=$0C23
  230. Const GL_INDEX_MODE=$0C30
  231. Const GL_RGBA_MODE=$0C31
  232. Const GL_DOUBLEBUFFER=$0C32
  233. Const GL_STEREO=$0C33
  234. Const GL_RENDER_MODE=$0C40
  235. Const GL_PERSPECTIVE_CORRECTION_HINT=$0C50
  236. Const GL_POINT_SMOOTH_HINT=$0C51
  237. Const GL_LINE_SMOOTH_HINT=$0C52
  238. Const GL_POLYGON_SMOOTH_HINT=$0C53
  239. Const GL_FOG_HINT=$0C54
  240. Const GL_TEXTURE_GEN_S=$0C60
  241. Const GL_TEXTURE_GEN_T=$0C61
  242. Const GL_TEXTURE_GEN_R=$0C62
  243. Const GL_TEXTURE_GEN_Q=$0C63
  244. Const GL_PIXEL_MAP_I_TO_I=$0C70
  245. Const GL_PIXEL_MAP_S_TO_S=$0C71
  246. Const GL_PIXEL_MAP_I_TO_R=$0C72
  247. Const GL_PIXEL_MAP_I_TO_G=$0C73
  248. Const GL_PIXEL_MAP_I_TO_B=$0C74
  249. Const GL_PIXEL_MAP_I_TO_A=$0C75
  250. Const GL_PIXEL_MAP_R_TO_R=$0C76
  251. Const GL_PIXEL_MAP_G_TO_G=$0C77
  252. Const GL_PIXEL_MAP_B_TO_B=$0C78
  253. Const GL_PIXEL_MAP_A_TO_A=$0C79
  254. Const GL_PIXEL_MAP_I_TO_I_SIZE=$0CB0
  255. Const GL_PIXEL_MAP_S_TO_S_SIZE=$0CB1
  256. Const GL_PIXEL_MAP_I_TO_R_SIZE=$0CB2
  257. Const GL_PIXEL_MAP_I_TO_G_SIZE=$0CB3
  258. Const GL_PIXEL_MAP_I_TO_B_SIZE=$0CB4
  259. Const GL_PIXEL_MAP_I_TO_A_SIZE=$0CB5
  260. Const GL_PIXEL_MAP_R_TO_R_SIZE=$0CB6
  261. Const GL_PIXEL_MAP_G_TO_G_SIZE=$0CB7
  262. Const GL_PIXEL_MAP_B_TO_B_SIZE=$0CB8
  263. Const GL_PIXEL_MAP_A_TO_A_SIZE=$0CB9
  264. Const GL_UNPACK_SWAP_BYTES=$0CF0
  265. Const GL_UNPACK_LSB_FIRST=$0CF1
  266. Const GL_UNPACK_ROW_LENGTH=$0CF2
  267. Const GL_UNPACK_SKIP_ROWS=$0CF3
  268. Const GL_UNPACK_SKIP_PIXELS=$0CF4
  269. Const GL_UNPACK_ALIGNMENT=$0CF5
  270. Const GL_PACK_SWAP_BYTES=$0D00
  271. Const GL_PACK_LSB_FIRST=$0D01
  272. Const GL_PACK_ROW_LENGTH=$0D02
  273. Const GL_PACK_SKIP_ROWS=$0D03
  274. Const GL_PACK_SKIP_PIXELS=$0D04
  275. Const GL_PACK_ALIGNMENT=$0D05
  276. Const GL_MAP_COLOR=$0D10
  277. Const GL_MAP_STENCIL=$0D11
  278. Const GL_INDEX_SHIFT=$0D12
  279. Const GL_INDEX_OFFSET=$0D13
  280. Const GL_RED_SCALE=$0D14
  281. Const GL_RED_BIAS=$0D15
  282. Const GL_ZOOM_X=$0D16
  283. Const GL_ZOOM_Y=$0D17
  284. Const GL_GREEN_SCALE=$0D18
  285. Const GL_GREEN_BIAS=$0D19
  286. Const GL_BLUE_SCALE=$0D1A
  287. Const GL_BLUE_BIAS=$0D1B
  288. Const GL_ALPHA_SCALE=$0D1C
  289. Const GL_ALPHA_BIAS=$0D1D
  290. Const GL_DEPTH_SCALE=$0D1E
  291. Const GL_DEPTH_BIAS=$0D1F
  292. Const GL_MAX_EVAL_ORDER=$0D30
  293. Const GL_MAX_LIGHTS=$0D31
  294. Const GL_MAX_CLIP_PLANES=$0D32
  295. Const GL_MAX_TEXTURE_SIZE=$0D33
  296. Const GL_MAX_PIXEL_MAP_TABLE=$0D34
  297. Const GL_MAX_ATTRIB_STACK_DEPTH=$0D35
  298. Const GL_MAX_MODELVIEW_STACK_DEPTH=$0D36
  299. Const GL_MAX_NAME_STACK_DEPTH=$0D37
  300. Const GL_MAX_PROJECTION_STACK_DEPTH=$0D38
  301. Const GL_MAX_TEXTURE_STACK_DEPTH=$0D39
  302. Const GL_MAX_VIEWPORT_DIMS=$0D3A
  303. Const GL_MAX_CLIENT_ATTRIB_STACK_DEPTH=$0D3B
  304. Const GL_SUBPIXEL_BITS=$0D50
  305. Const GL_INDEX_BITS=$0D51
  306. Const GL_RED_BITS=$0D52
  307. Const GL_GREEN_BITS=$0D53
  308. Const GL_BLUE_BITS=$0D54
  309. Const GL_ALPHA_BITS=$0D55
  310. Const GL_DEPTH_BITS=$0D56
  311. Const GL_STENCIL_BITS=$0D57
  312. Const GL_ACCUM_RED_BITS=$0D58
  313. Const GL_ACCUM_GREEN_BITS=$0D59
  314. Const GL_ACCUM_BLUE_BITS=$0D5A
  315. Const GL_ACCUM_ALPHA_BITS=$0D5B
  316. Const GL_NAME_STACK_DEPTH=$0D70
  317. Const GL_AUTO_NORMAL=$0D80
  318. Const GL_MAP1_COLOR_4=$0D90
  319. Const GL_MAP1_INDEX=$0D91
  320. Const GL_MAP1_NORMAL=$0D92
  321. Const GL_MAP1_TEXTURE_COORD_1=$0D93
  322. Const GL_MAP1_TEXTURE_COORD_2=$0D94
  323. Const GL_MAP1_TEXTURE_COORD_3=$0D95
  324. Const GL_MAP1_TEXTURE_COORD_4=$0D96
  325. Const GL_MAP1_VERTEX_3=$0D97
  326. Const GL_MAP1_VERTEX_4=$0D98
  327. Const GL_MAP2_COLOR_4=$0DB0
  328. Const GL_MAP2_INDEX=$0DB1
  329. Const GL_MAP2_NORMAL=$0DB2
  330. Const GL_MAP2_TEXTURE_COORD_1=$0DB3
  331. Const GL_MAP2_TEXTURE_COORD_2=$0DB4
  332. Const GL_MAP2_TEXTURE_COORD_3=$0DB5
  333. Const GL_MAP2_TEXTURE_COORD_4=$0DB6
  334. Const GL_MAP2_VERTEX_3=$0DB7
  335. Const GL_MAP2_VERTEX_4=$0DB8
  336. Const GL_MAP1_GRID_DOMAIN=$0DD0
  337. Const GL_MAP1_GRID_SEGMENTS=$0DD1
  338. Const GL_MAP2_GRID_DOMAIN=$0DD2
  339. Const GL_MAP2_GRID_SEGMENTS=$0DD3
  340. Const GL_TEXTURE_1D=$0DE0
  341. Const GL_TEXTURE_2D=$0DE1
  342. Const GL_FEEDBACK_BUFFER_POINTER=$0DF0
  343. Const GL_FEEDBACK_BUFFER_SIZE=$0DF1
  344. Const GL_FEEDBACK_BUFFER_TYPE=$0DF2
  345. Const GL_SELECTION_BUFFER_POINTER=$0DF3
  346. Const GL_SELECTION_BUFFER_SIZE=$0DF4
  347. Const GL_TEXTURE_WIDTH=$1000
  348. Const GL_TEXTURE_HEIGHT=$1001
  349. Const GL_TEXTURE_INTERNAL_FORMAT=$1003
  350. Const GL_TEXTURE_BORDER_COLOR=$1004
  351. Const GL_TEXTURE_BORDER=$1005
  352. Const GL_DONT_CARE=$1100
  353. Const GL_FASTEST=$1101
  354. Const GL_NICEST=$1102
  355. Const GL_LIGHT0=$4000
  356. Const GL_LIGHT1=$4001
  357. Const GL_LIGHT2=$4002
  358. Const GL_LIGHT3=$4003
  359. Const GL_LIGHT4=$4004
  360. Const GL_LIGHT5=$4005
  361. Const GL_LIGHT6=$4006
  362. Const GL_LIGHT7=$4007
  363. Const GL_AMBIENT=$1200
  364. Const GL_DIFFUSE=$1201
  365. Const GL_SPECULAR=$1202
  366. Const GL_POSITION=$1203
  367. Const GL_SPOT_DIRECTION=$1204
  368. Const GL_SPOT_EXPONENT=$1205
  369. Const GL_SPOT_CUTOFF=$1206
  370. Const GL_CONSTANT_ATTENUATION=$1207
  371. Const GL_LINEAR_ATTENUATION=$1208
  372. Const GL_QUADRATIC_ATTENUATION=$1209
  373. Const GL_COMPILE=$1300
  374. Const GL_COMPILE_AND_EXECUTE=$1301
  375. Const GL_CLEAR=$1500
  376. Const GL_AND=$1501
  377. Const GL_AND_REVERSE=$1502
  378. Const GL_COPY=$1503
  379. Const GL_AND_INVERTED=$1504
  380. Const GL_NOOP=$1505
  381. Const GL_XOR=$1506
  382. Const GL_OR=$1507
  383. Const GL_NOR=$1508
  384. Const GL_EQUIV=$1509
  385. Const GL_INVERT=$150A
  386. Const GL_OR_REVERSE=$150B
  387. Const GL_COPY_INVERTED=$150C
  388. Const GL_OR_INVERTED=$150D
  389. Const GL_NAND=$150E
  390. Const GL_SET=$150F
  391. Const GL_EMISSION=$1600
  392. Const GL_SHININESS=$1601
  393. Const GL_AMBIENT_AND_DIFFUSE=$1602
  394. Const GL_COLOR_INDEXES=$1603
  395. Const GL_MODELVIEW=$1700
  396. Const GL_PROJECTION=$1701
  397. Const GL_TEXTURE=$1702
  398. Const GL_COLOR=$1800
  399. Const GL_DEPTH=$1801
  400. Const GL_STENCIL=$1802
  401. Const GL_COLOR_INDEX=$1900
  402. Const GL_STENCIL_INDEX=$1901
  403. Const GL_DEPTH_COMPONENT=$1902
  404. Const GL_RED=$1903
  405. Const GL_GREEN=$1904
  406. Const GL_BLUE=$1905
  407. Const GL_ALPHA=$1906
  408. Const GL_RGB=$1907
  409. Const GL_RGBA=$1908
  410. Const GL_LUMINANCE=$1909
  411. Const GL_LUMINANCE_ALPHA=$190A
  412. Const GL_BITMAP=$1A00
  413. Const GL_POINT=$1B00
  414. Const GL_LINE=$1B01
  415. Const GL_FILL=$1B02
  416. Const GL_RENDER=$1C00
  417. Const GL_FEEDBACK=$1C01
  418. Const GL_SELECT=$1C02
  419. Const GL_FLAT=$1D00
  420. Const GL_SMOOTH=$1D01
  421. Const GL_KEEP=$1E00
  422. Const GL_REPLACE=$1E01
  423. Const GL_INCR=$1E02
  424. Const GL_DECR=$1E03
  425. Const GL_VENDOR=$1F00
  426. Const GL_RENDERER=$1F01
  427. Const GL_VERSION=$1F02
  428. Const GL_EXTENSIONS=$1F03
  429. Const GL_S=$2000
  430. Const GL_T=$2001
  431. Const GL_R=$2002
  432. Const GL_Q=$2003
  433. Const GL_MODULATE=$2100
  434. Const GL_DECAL=$2101
  435. Const GL_TEXTURE_ENV_MODE=$2200
  436. Const GL_TEXTURE_ENV_COLOR=$2201
  437. Const GL_TEXTURE_ENV=$2300
  438. Const GL_EYE_LINEAR=$2400
  439. Const GL_OBJECT_LINEAR=$2401
  440. Const GL_SPHERE_MAP=$2402
  441. Const GL_TEXTURE_GEN_MODE=$2500
  442. Const GL_OBJECT_PLANE=$2501
  443. Const GL_EYE_PLANE=$2502
  444. Const GL_NEAREST=$2600
  445. Const GL_LINEAR=$2601
  446. Const GL_NEAREST_MIPMAP_NEAREST=$2700
  447. Const GL_LINEAR_MIPMAP_NEAREST=$2701
  448. Const GL_NEAREST_MIPMAP_LINEAR=$2702
  449. Const GL_LINEAR_MIPMAP_LINEAR=$2703
  450. Const GL_TEXTURE_MAG_FILTER=$2800
  451. Const GL_TEXTURE_MIN_FILTER=$2801
  452. Const GL_TEXTURE_WRAP_S=$2802
  453. Const GL_TEXTURE_WRAP_T=$2803
  454. Const GL_CLAMP=$2900
  455. Const GL_REPEAT=$2901
  456. Const GL_CLIENT_PIXEL_STORE_BIT=$00000001
  457. Const GL_CLIENT_VERTEX_ARRAY_BIT=$00000002
  458. Const GL_CLIENT_ALL_ATTRIB_BITS=$ffffffff
  459. Const GL_POLYGON_OFFSET_FACTOR=$8038
  460. Const GL_POLYGON_OFFSET_UNITS=$2A00
  461. Const GL_POLYGON_OFFSET_POINT=$2A01
  462. Const GL_POLYGON_OFFSET_LINE=$2A02
  463. Const GL_POLYGON_OFFSET_FILL=$8037
  464. Const GL_ALPHA4=$803B
  465. Const GL_ALPHA8=$803C
  466. Const GL_ALPHA12=$803D
  467. Const GL_ALPHA16=$803E
  468. Const GL_LUMINANCE4=$803F
  469. Const GL_LUMINANCE8=$8040
  470. Const GL_LUMINANCE12=$8041
  471. Const GL_LUMINANCE16=$8042
  472. Const GL_LUMINANCE4_ALPHA4=$8043
  473. Const GL_LUMINANCE6_ALPHA2=$8044
  474. Const GL_LUMINANCE8_ALPHA8=$8045
  475. Const GL_LUMINANCE12_ALPHA4=$8046
  476. Const GL_LUMINANCE12_ALPHA12=$8047
  477. Const GL_LUMINANCE16_ALPHA16=$8048
  478. Const GL_INTENSITY=$8049
  479. Const GL_INTENSITY4=$804A
  480. Const GL_INTENSITY8=$804B
  481. Const GL_INTENSITY12=$804C
  482. Const GL_INTENSITY16=$804D
  483. Const GL_R3_G3_B2=$2A10
  484. Const GL_RGB4=$804F
  485. Const GL_RGB5=$8050
  486. Const GL_RGB8=$8051
  487. Const GL_RGB10=$8052
  488. Const GL_RGB12=$8053
  489. Const GL_RGB16=$8054
  490. Const GL_RGBA2=$8055
  491. Const GL_RGBA4=$8056
  492. Const GL_RGB5_A1=$8057
  493. Const GL_RGBA8=$8058
  494. Const GL_RGB10_A2=$8059
  495. Const GL_RGBA12=$805A
  496. Const GL_RGBA16=$805B
  497. Const GL_TEXTURE_RED_SIZE=$805C
  498. Const GL_TEXTURE_GREEN_SIZE=$805D
  499. Const GL_TEXTURE_BLUE_SIZE=$805E
  500. Const GL_TEXTURE_ALPHA_SIZE=$805F
  501. Const GL_TEXTURE_LUMINANCE_SIZE=$8060
  502. Const GL_TEXTURE_INTENSITY_SIZE=$8061
  503. Const GL_PROXY_TEXTURE_1D=$8063
  504. Const GL_PROXY_TEXTURE_2D=$8064
  505. Const GL_TEXTURE_PRIORITY=$8066
  506. Const GL_TEXTURE_RESIDENT=$8067
  507. Const GL_TEXTURE_BINDING_1D=$8068
  508. Const GL_TEXTURE_BINDING_2D=$8069
  509. Const GL_VERTEX_ARRAY=$8074
  510. Const GL_NORMAL_ARRAY=$8075
  511. Const GL_COLOR_ARRAY=$8076
  512. Const GL_INDEX_ARRAY=$8077
  513. Const GL_TEXTURE_COORD_ARRAY=$8078
  514. Const GL_EDGE_FLAG_ARRAY=$8079
  515. Const GL_VERTEX_ARRAY_SIZE=$807A
  516. Const GL_VERTEX_ARRAY_TYPE=$807B
  517. Const GL_VERTEX_ARRAY_STRIDE=$807C
  518. Const GL_NORMAL_ARRAY_TYPE=$807E
  519. Const GL_NORMAL_ARRAY_STRIDE=$807F
  520. Const GL_COLOR_ARRAY_SIZE=$8081
  521. Const GL_COLOR_ARRAY_TYPE=$8082
  522. Const GL_COLOR_ARRAY_STRIDE=$8083
  523. Const GL_INDEX_ARRAY_TYPE=$8085
  524. Const GL_INDEX_ARRAY_STRIDE=$8086
  525. Const GL_TEXTURE_COORD_ARRAY_SIZE=$8088
  526. Const GL_TEXTURE_COORD_ARRAY_TYPE=$8089
  527. Const GL_TEXTURE_COORD_ARRAY_STRIDE=$808A
  528. Const GL_EDGE_FLAG_ARRAY_STRIDE=$808C
  529. Const GL_VERTEX_ARRAY_POINTER=$808E
  530. Const GL_NORMAL_ARRAY_POINTER=$808F
  531. Const GL_COLOR_ARRAY_POINTER=$8090
  532. Const GL_INDEX_ARRAY_POINTER=$8091
  533. Const GL_TEXTURE_COORD_ARRAY_POINTER=$8092
  534. Const GL_EDGE_FLAG_ARRAY_POINTER=$8093
  535. Const GL_V2F=$2A20
  536. Const GL_V3F=$2A21
  537. Const GL_C4UB_V2F=$2A22
  538. Const GL_C4UB_V3F=$2A23
  539. Const GL_C3F_V3F=$2A24
  540. Const GL_N3F_V3F=$2A25
  541. Const GL_C4F_N3F_V3F=$2A26
  542. Const GL_T2F_V3F=$2A27
  543. Const GL_T4F_V4F=$2A28
  544. Const GL_T2F_C4UB_V3F=$2A29
  545. Const GL_T2F_C3F_V3F=$2A2A
  546. Const GL_T2F_N3F_V3F=$2A2B
  547. Const GL_T2F_C4F_N3F_V3F=$2A2C
  548. Const GL_T4F_C4F_N3F_V4F=$2A2D
  549. Const GL_COLOR_INDEX1_EXT=$80E2
  550. Const GL_COLOR_INDEX2_EXT=$80E3
  551. Const GL_COLOR_INDEX4_EXT=$80E4
  552. Const GL_COLOR_INDEX8_EXT=$80E5
  553. Const GL_COLOR_INDEX12_EXT=$80E6
  554. Const GL_COLOR_INDEX16_EXT=$80E7
  555. Function glAccum(op_:Int,value_:Float)
  556. Function glAlphaFunc(func_:Int,ref_:Float)
  557. Function glAreTexturesResident:Byte(n_:Int,textures_:Int Ptr,residences_:Byte Ptr)
  558. Function glArrayElement(i_:Int)
  559. Function glBegin(mode_:Int)
  560. Function glBindTexture(target_:Int,texture_:Int)
  561. Function glBitmap(width_:Int,height_:Int,xorig_:Float,yorig_:Float,xmove_:Float,ymove_:Float,bitmap_:Byte Ptr)
  562. Function glBlendFunc(sfactor_:Int,dfactor_:Int)
  563. Function glCallList(list_:Int)
  564. Function glCallLists(n_:Int,type_:Int,lists_:Byte Ptr)
  565. Function glClear(mask_:Int)
  566. Function glClearAccum(red_:Float,green_:Float,blue_:Float,alpha_:Float)
  567. Function glClearColor(red_:Float,green_:Float,blue_:Float,alpha_:Float)
  568. Function glClearDepth(depth_:Double)
  569. Function glClearIndex(c_:Float)
  570. Function glClearStencil(s_:Int)
  571. Function glClipPlane(plane_:Int,equation_:Double Ptr)
  572. Function glColor3b(red_:Byte,green_:Byte,blue_:Byte)
  573. Function glColor3bv(v_:Byte Ptr)
  574. Function glColor3d(red_:Double,green_:Double,blue_:Double)
  575. Function glColor3dv(v_:Double Ptr)
  576. Function glColor3f(red_:Float,green_:Float,blue_:Float)
  577. Function glColor3fv(v_:Float Ptr)
  578. Function glColor3i(red_:Int,green_:Int,blue_:Int)
  579. Function glColor3iv(v_:Int Ptr)
  580. Function glColor3s(red_:Short,green_:Short,blue_:Short)
  581. Function glColor3sv(v_:Short Ptr)
  582. Function glColor3ub(red_:Byte,green_:Byte,blue_:Byte)
  583. Function glColor3ubv(v_:Byte Ptr)
  584. Function glColor3ui(red_:Int,green_:Int,blue_:Int)
  585. Function glColor3uiv(v_:Int Ptr)
  586. Function glColor3us(red_:Short,green_:Short,blue_:Short)
  587. Function glColor3usv(v_:Short Ptr)
  588. Function glColor4b(red_:Byte,green_:Byte,blue_:Byte,alpha_:Byte)
  589. Function glColor4bv(v_:Byte Ptr)
  590. Function glColor4d(red_:Double,green_:Double,blue_:Double,alpha_:Double)
  591. Function glColor4dv(v_:Double Ptr)
  592. Function glColor4f(red_:Float,green_:Float,blue_:Float,alpha_:Float)
  593. Function glColor4fv(v_:Float Ptr)
  594. Function glColor4i(red_:Int,green_:Int,blue_:Int,alpha_:Int)
  595. Function glColor4iv(v_:Int Ptr)
  596. Function glColor4s(red_:Short,green_:Short,blue_:Short,alpha_:Short)
  597. Function glColor4sv(v_:Short Ptr)
  598. Function glColor4ub(red_:Byte,green_:Byte,blue_:Byte,alpha_:Byte)
  599. Function glColor4ubv(v_:Byte Ptr)
  600. Function glColor4ui(red_:Int,green_:Int,blue_:Int,alpha_:Int)
  601. Function glColor4uiv(v_:Int Ptr)
  602. Function glColor4us(red_:Short,green_:Short,blue_:Short,alpha_:Short)
  603. Function glColor4usv(v_:Short Ptr)
  604. Function glColorMask(red_:Byte,green_:Byte,blue_:Byte,alpha_:Byte)
  605. Function glColorMaterial(face_:Int,mode_:Int)
  606. Function glColorPointer(size_:Int,type_:Int,stride_:Int,pointer_:Byte Ptr)
  607. Function glCopyPixels(x_:Int,y_:Int,width_:Int,height_:Int,type_:Int)
  608. Function glCopyTexImage1D(target_:Int,level_:Int,internalFormat_:Int,x_:Int,y_:Int,width_:Int,border_:Int)
  609. Function glCopyTexImage2D(target_:Int,level_:Int,internalFormat_:Int,x_:Int,y_:Int,width_:Int,height_:Int,border_:Int)
  610. Function glCopyTexSubImage1D(target_:Int,level_:Int,xoffset_:Int,x_:Int,y_:Int,width_:Int)
  611. Function glCopyTexSubImage2D(target_:Int,level_:Int,xoffset_:Int,yoffset_:Int,x_:Int,y_:Int,width_:Int,height_:Int)
  612. Function glCullFace(mode_:Int)
  613. Function glDeleteLists(list_:Int,range_:Int)
  614. Function glDeleteTextures(n_:Int,textures_:Int Ptr)
  615. Function glDepthFunc(func_:Int)
  616. Function glDepthMask(flag_:Byte)
  617. Function glDepthRange(zNear_:Double,zFar_:Double)
  618. Function glDisable(cap_:Int)
  619. Function glDisableClientState(array_:Int)
  620. Function glDrawArrays(mode_:Int,first_:Int,count_:Int)
  621. Function glDrawBuffer(mode_:Int)
  622. Function glDrawElements(mode_:Int,count_:Int,type_:Int,indices_:Byte Ptr)
  623. Function glDrawPixels(width_:Int,height_:Int,format_:Int,type_:Int,pixels_:Byte Ptr)
  624. Function glEdgeFlag(flag_:Byte)
  625. Function glEdgeFlagPointer(stride_:Int,pointer_:Byte Ptr)
  626. Function glEdgeFlagv(flag_:Byte Ptr)
  627. Function glEnable(cap_:Int)
  628. Function glEnableClientState(array_:Int)
  629. Function glEnd()
  630. Function glEndList()
  631. Function glEvalCoord1d(u_:Double)
  632. Function glEvalCoord1dv(u_:Double Ptr)
  633. Function glEvalCoord1f(u_:Float)
  634. Function glEvalCoord1fv(u_:Float Ptr)
  635. Function glEvalCoord2d(u_:Double,v_:Double)
  636. Function glEvalCoord2dv(u_:Double Ptr)
  637. Function glEvalCoord2f(u_:Float,v_:Float)
  638. Function glEvalCoord2fv(u_:Float Ptr)
  639. Function glEvalMesh1(mode_:Int,i1_:Int,i2_:Int)
  640. Function glEvalMesh2(mode_:Int,i1_:Int,i2_:Int,j1_:Int,j2_:Int)
  641. Function glEvalPoint1(i_:Int)
  642. Function glEvalPoint2(i_:Int,j_:Int)
  643. Function glFeedbackBuffer(size_:Int,type_:Int,buffer_:Float Ptr)
  644. Function glFinish()
  645. Function glFlush()
  646. Function glFogf(pname_:Int,param_:Float)
  647. Function glFogfv(pname_:Int,params_:Float Ptr)
  648. Function glFogi(pname_:Int,param_:Int)
  649. Function glFogiv(pname_:Int,params_:Int Ptr)
  650. Function glFrontFace(mode_:Int)
  651. Function glFrustum(left_:Double,right_:Double,bottom_:Double,top_:Double,zNear_:Double,zFar_:Double)
  652. Function glGenLists:Int(range_:Int)
  653. Function glGenTextures(n_:Int,textures_:Int Ptr)
  654. Function glGetBooleanv(pname_:Int,params_:Byte Ptr)
  655. Function glGetClipPlane(plane_:Int,equation_:Double Ptr)
  656. Function glGetDoublev(pname_:Int,params_:Double Ptr)
  657. Function glGetError:Int()
  658. Function glGetFloatv(pname_:Int,params_:Float Ptr)
  659. Function glGetIntegerv(pname_:Int,params_:Int Ptr)
  660. Function glGetLightfv(light_:Int,pname_:Int,params_:Float Ptr)
  661. Function glGetLightiv(light_:Int,pname_:Int,params_:Int Ptr)
  662. Function glGetMapdv(target_:Int,query_:Int,v_:Double Ptr)
  663. Function glGetMapfv(target_:Int,query_:Int,v_:Float Ptr)
  664. Function glGetMapiv(target_:Int,query_:Int,v_:Int Ptr)
  665. Function glGetMaterialfv(face_:Int,pname_:Int,params_:Float Ptr)
  666. Function glGetMaterialiv(face_:Int,pname_:Int,params_:Int Ptr)
  667. Function glGetPixelMapfv(map_:Int,values_:Float Ptr)
  668. Function glGetPixelMapuiv(map_:Int,values_:Int Ptr)
  669. Function glGetPixelMapusv(map_:Int,values_:Short Ptr)
  670. Function glGetPointerv(pname_:Int,params_:Byte Ptr Ptr)
  671. Function glGetPolygonStipple(mask_:Byte Ptr)
  672. Function glGetString:Byte Ptr(name_:Int)
  673. Function glGetTexEnvfv(target_:Int,pname_:Int,params_:Float Ptr)
  674. Function glGetTexEnviv(target_:Int,pname_:Int,params_:Int Ptr)
  675. Function glGetTexGendv(coord_:Int,pname_:Int,params_:Double Ptr)
  676. Function glGetTexGenfv(coord_:Int,pname_:Int,params_:Float Ptr)
  677. Function glGetTexGeniv(coord_:Int,pname_:Int,params_:Int Ptr)
  678. Function glGetTexImage(target_:Int,level_:Int,format_:Int,type_:Int,pixels_:Byte Ptr)
  679. Function glGetTexLevelParameterfv(target_:Int,level_:Int,pname_:Int,params_:Float Ptr)
  680. Function glGetTexLevelParameteriv(target_:Int,level_:Int,pname_:Int,params_:Int Ptr)
  681. Function glGetTexParameterfv(target_:Int,pname_:Int,params_:Float Ptr)
  682. Function glGetTexParameteriv(target_:Int,pname_:Int,params_:Int Ptr)
  683. Function glHint(target_:Int,mode_:Int)
  684. Function glIndexMask(mask_:Int)
  685. Function glIndexPointer(type_:Int,stride_:Int,pointer_:Byte Ptr)
  686. Function glIndexd(c_:Double)
  687. Function glIndexdv(c_:Double Ptr)
  688. Function glIndexf(c_:Float)
  689. Function glIndexfv(c_:Float Ptr)
  690. Function glIndexi(c_:Int)
  691. Function glIndexiv(c_:Int Ptr)
  692. Function glIndexs(c_:Short)
  693. Function glIndexsv(c_:Short Ptr)
  694. Function glIndexub(c_:Byte)
  695. Function glIndexubv(c_:Byte Ptr)
  696. Function glInitNames()
  697. Function glInterleavedArrays(format_:Int,stride_:Int,pointer_:Byte Ptr)
  698. Function glIsEnabled:Byte(cap_:Int)
  699. Function glIsList:Byte(list_:Int)
  700. Function glIsTexture:Byte(texture_:Int)
  701. Function glLightModelf(pname_:Int,param_:Float)
  702. Function glLightModelfv(pname_:Int,params_:Float Ptr)
  703. Function glLightModeli(pname_:Int,param_:Int)
  704. Function glLightModeliv(pname_:Int,params_:Int Ptr)
  705. Function glLightf(light_:Int,pname_:Int,param_:Float)
  706. Function glLightfv(light_:Int,pname_:Int,params_:Float Ptr)
  707. Function glLighti(light_:Int,pname_:Int,param_:Int)
  708. Function glLightiv(light_:Int,pname_:Int,params_:Int Ptr)
  709. Function glLineStipple(factor_:Int,pattern_:Short)
  710. Function glLineWidth(width_:Float)
  711. Function glListBase(base_:Int)
  712. Function glLoadIdentity()
  713. Function glLoadMatrixd(m_:Double Ptr)
  714. Function glLoadMatrixf(m_:Float Ptr)
  715. Function glLoadName(name_:Int)
  716. Function glLogicOp(opcode_:Int)
  717. Function glMap1d(target_:Int,u1_:Double,u2_:Double,stride_:Int,order_:Int,points_:Double Ptr)
  718. Function glMap1f(target_:Int,u1_:Float,u2_:Float,stride_:Int,order_:Int,points_:Float Ptr)
  719. Function glMap2d(target_:Int,u1_:Double,u2_:Double,ustride_:Int,uorder_:Int,v1_:Double,v2_:Double,vstride_:Int,vorder_:Int,points_:Double Ptr)
  720. Function glMap2f(target_:Int,u1_:Float,u2_:Float,ustride_:Int,uorder_:Int,v1_:Float,v2_:Float,vstride_:Int,vorder_:Int,points_:Float Ptr)
  721. Function glMapGrid1d(un_:Int,u1_:Double,u2_:Double)
  722. Function glMapGrid1f(un_:Int,u1_:Float,u2_:Float)
  723. Function glMapGrid2d(un_:Int,u1_:Double,u2_:Double,vn_:Int,v1_:Double,v2_:Double)
  724. Function glMapGrid2f(un_:Int,u1_:Float,u2_:Float,vn_:Int,v1_:Float,v2_:Float)
  725. Function glMaterialf(face_:Int,pname_:Int,param_:Float)
  726. Function glMaterialfv(face_:Int,pname_:Int,params_:Float Ptr)
  727. Function glMateriali(face_:Int,pname_:Int,param_:Int)
  728. Function glMaterialiv(face_:Int,pname_:Int,params_:Int Ptr)
  729. Function glMatrixMode(mode_:Int)
  730. Function glMultMatrixd(m_:Double Ptr)
  731. Function glMultMatrixf(m_:Float Ptr)
  732. Function glNewList(list_:Int,mode_:Int)
  733. Function glNormal3b(nx_:Byte,ny_:Byte,nz_:Byte)
  734. Function glNormal3bv(v_:Byte Ptr)
  735. Function glNormal3d(nx_:Double,ny_:Double,nz_:Double)
  736. Function glNormal3dv(v_:Double Ptr)
  737. Function glNormal3f(nx_:Float,ny_:Float,nz_:Float)
  738. Function glNormal3fv(v_:Float Ptr)
  739. Function glNormal3i(nx_:Int,ny_:Int,nz_:Int)
  740. Function glNormal3iv(v_:Int Ptr)
  741. Function glNormal3s(nx_:Short,ny_:Short,nz_:Short)
  742. Function glNormal3sv(v_:Short Ptr)
  743. Function glNormalPointer(type_:Int,stride_:Int,pointer_:Byte Ptr)
  744. Function glOrtho(left_:Double,right_:Double,bottom_:Double,top_:Double,zNear_:Double,zFar_:Double)
  745. Function glPassThrough(token_:Float)
  746. Function glPixelMapfv(map_:Int,mapsize_:Int,values_:Float Ptr)
  747. Function glPixelMapuiv(map_:Int,mapsize_:Int,values_:Int Ptr)
  748. Function glPixelMapusv(map_:Int,mapsize_:Int,values_:Short Ptr)
  749. Function glPixelStoref(pname_:Int,param_:Float)
  750. Function glPixelStorei(pname_:Int,param_:Int)
  751. Function glPixelTransferf(pname_:Int,param_:Float)
  752. Function glPixelTransferi(pname_:Int,param_:Int)
  753. Function glPixelZoom(xfactor_:Float,yfactor_:Float)
  754. Function glPointSize(size_:Float)
  755. Function glPolygonMode(face_:Int,mode_:Int)
  756. Function glPolygonOffset(factor_:Float,units_:Float)
  757. Function glPolygonStipple(mask_:Byte Ptr)
  758. Function glPopAttrib()
  759. Function glPopClientAttrib()
  760. Function glPopMatrix()
  761. Function glPopName()
  762. Function glPrioritizeTextures(n_:Int,textures_:Int Ptr,priorities_:Float Ptr)
  763. Function glPushAttrib(mask_:Int)
  764. Function glPushClientAttrib(mask_:Int)
  765. Function glPushMatrix()
  766. Function glPushName(name_:Int)
  767. Function glRasterPos2d(x_:Double,y_:Double)
  768. Function glRasterPos2dv(v_:Double Ptr)
  769. Function glRasterPos2f(x_:Float,y_:Float)
  770. Function glRasterPos2fv(v_:Float Ptr)
  771. Function glRasterPos2i(x_:Int,y_:Int)
  772. Function glRasterPos2iv(v_:Int Ptr)
  773. Function glRasterPos2s(x_:Short,y_:Short)
  774. Function glRasterPos2sv(v_:Short Ptr)
  775. Function glRasterPos3d(x_:Double,y_:Double,z_:Double)
  776. Function glRasterPos3dv(v_:Double Ptr)
  777. Function glRasterPos3f(x_:Float,y_:Float,z_:Float)
  778. Function glRasterPos3fv(v_:Float Ptr)
  779. Function glRasterPos3i(x_:Int,y_:Int,z_:Int)
  780. Function glRasterPos3iv(v_:Int Ptr)
  781. Function glRasterPos3s(x_:Short,y_:Short,z_:Short)
  782. Function glRasterPos3sv(v_:Short Ptr)
  783. Function glRasterPos4d(x_:Double,y_:Double,z_:Double,w_:Double)
  784. Function glRasterPos4dv(v_:Double Ptr)
  785. Function glRasterPos4f(x_:Float,y_:Float,z_:Float,w_:Float)
  786. Function glRasterPos4fv(v_:Float Ptr)
  787. Function glRasterPos4i(x_:Int,y_:Int,z_:Int,w_:Int)
  788. Function glRasterPos4iv(v_:Int Ptr)
  789. Function glRasterPos4s(x_:Short,y_:Short,z_:Short,w_:Short)
  790. Function glRasterPos4sv(v_:Short Ptr)
  791. Function glReadBuffer(mode_:Int)
  792. Function glReadPixels(x_:Int,y_:Int,width_:Int,height_:Int,format_:Int,type_:Int,pixels_:Byte Ptr)
  793. Function glRectd(x1_:Double,y1_:Double,x2_:Double,y2_:Double)
  794. Function glRectdv(v1_:Double Ptr,v2_:Double Ptr)
  795. Function glRectf(x1_:Float,y1_:Float,x2_:Float,y2_:Float)
  796. Function glRectfv(v1_:Float Ptr,v2_:Float Ptr)
  797. Function glRecti(x1_:Int,y1_:Int,x2_:Int,y2_:Int)
  798. Function glRectiv(v1_:Int Ptr,v2_:Int Ptr)
  799. Function glRects(x1_:Short,y1_:Short,x2_:Short,y2_:Short)
  800. Function glRectsv(v1_:Short Ptr,v2_:Short Ptr)
  801. Function glRenderMode:Int(mode_:Int)
  802. Function glRotated(angle_:Double,x_:Double,y_:Double,z_:Double)
  803. Function glRotatef(angle_:Float,x_:Float,y_:Float,z_:Float)
  804. Function glScaled(x_:Double,y_:Double,z_:Double)
  805. Function glScalef(x_:Float,y_:Float,z_:Float)
  806. Function glScissor(x_:Int,y_:Int,width_:Int,height_:Int)
  807. Function glSelectBuffer(size_:Int,buffer_:Int Ptr)
  808. Function glShadeModel(mode_:Int)
  809. Function glStencilFunc(func_:Int,ref_:Int,mask_:Int)
  810. Function glStencilMask(mask_:Int)
  811. Function glStencilOp(fail_:Int,zfail_:Int,zpass_:Int)
  812. Function glTexCoord1d(s_:Double)
  813. Function glTexCoord1dv(v_:Double Ptr)
  814. Function glTexCoord1f(s_:Float)
  815. Function glTexCoord1fv(v_:Float Ptr)
  816. Function glTexCoord1i(s_:Int)
  817. Function glTexCoord1iv(v_:Int Ptr)
  818. Function glTexCoord1s(s_:Short)
  819. Function glTexCoord1sv(v_:Short Ptr)
  820. Function glTexCoord2d(s_:Double,t_:Double)
  821. Function glTexCoord2dv(v_:Double Ptr)
  822. Function glTexCoord2f(s_:Float,t_:Float)
  823. Function glTexCoord2fv(v_:Float Ptr)
  824. Function glTexCoord2i(s_:Int,t_:Int)
  825. Function glTexCoord2iv(v_:Int Ptr)
  826. Function glTexCoord2s(s_:Short,t_:Short)
  827. Function glTexCoord2sv(v_:Short Ptr)
  828. Function glTexCoord3d(s_:Double,t_:Double,r_:Double)
  829. Function glTexCoord3dv(v_:Double Ptr)
  830. Function glTexCoord3f(s_:Float,t_:Float,r_:Float)
  831. Function glTexCoord3fv(v_:Float Ptr)
  832. Function glTexCoord3i(s_:Int,t_:Int,r_:Int)
  833. Function glTexCoord3iv(v_:Int Ptr)
  834. Function glTexCoord3s(s_:Short,t_:Short,r_:Short)
  835. Function glTexCoord3sv(v_:Short Ptr)
  836. Function glTexCoord4d(s_:Double,t_:Double,r_:Double,q_:Double)
  837. Function glTexCoord4dv(v_:Double Ptr)
  838. Function glTexCoord4f(s_:Float,t_:Float,r_:Float,q_:Float)
  839. Function glTexCoord4fv(v_:Float Ptr)
  840. Function glTexCoord4i(s_:Int,t_:Int,r_:Int,q_:Int)
  841. Function glTexCoord4iv(v_:Int Ptr)
  842. Function glTexCoord4s(s_:Short,t_:Short,r_:Short,q_:Short)
  843. Function glTexCoord4sv(v_:Short Ptr)
  844. Function glTexCoordPointer(size_:Int,type_:Int,stride_:Int,pointer_:Byte Ptr)
  845. Function glTexEnvf(target_:Int,pname_:Int,param_:Float)
  846. Function glTexEnvfv(target_:Int,pname_:Int,params_:Float Ptr)
  847. Function glTexEnvi(target_:Int,pname_:Int,param_:Int)
  848. Function glTexEnviv(target_:Int,pname_:Int,params_:Int Ptr)
  849. Function glTexGend(coord_:Int,pname_:Int,param_:Double)
  850. Function glTexGendv(coord_:Int,pname_:Int,params_:Double Ptr)
  851. Function glTexGenf(coord_:Int,pname_:Int,param_:Float)
  852. Function glTexGenfv(coord_:Int,pname_:Int,params_:Float Ptr)
  853. Function glTexGeni(coord_:Int,pname_:Int,param_:Int)
  854. Function glTexGeniv(coord_:Int,pname_:Int,params_:Int Ptr)
  855. Function glTexImage1D(target_:Int,level_:Int,internalformat_:Int,width_:Int,border_:Int,format_:Int,type_:Int,pixels_:Byte Ptr)
  856. Function glTexImage2D(target_:Int,level_:Int,internalformat_:Int,width_:Int,height_:Int,border_:Int,format_:Int,type_:Int,pixels_:Byte Ptr)
  857. Function glTexParameterf(target_:Int,pname_:Int,param_:Float)
  858. Function glTexParameterfv(target_:Int,pname_:Int,params_:Float Ptr)
  859. Function glTexParameteri(target_:Int,pname_:Int,param_:Int)
  860. Function glTexParameteriv(target_:Int,pname_:Int,params_:Int Ptr)
  861. Function glTexSubImage1D(target_:Int,level_:Int,xoffset_:Int,width_:Int,format_:Int,type_:Int,pixels_:Byte Ptr)
  862. Function glTexSubImage2D(target_:Int,level_:Int,xoffset_:Int,yoffset_:Int,width_:Int,height_:Int,format_:Int,type_:Int,pixels_:Byte Ptr)
  863. Function glTranslated(x_:Double,y_:Double,z_:Double)
  864. Function glTranslatef(x_:Float,y_:Float,z_:Float)
  865. Function glVertex2d(x_:Double,y_:Double)
  866. Function glVertex2dv(v_:Double Ptr)
  867. Function glVertex2f(x_:Float,y_:Float)
  868. Function glVertex2fv(v_:Float Ptr)
  869. Function glVertex2i(x_:Int,y_:Int)
  870. Function glVertex2iv(v_:Int Ptr)
  871. Function glVertex2s(x_:Short,y_:Short)
  872. Function glVertex2sv(v_:Short Ptr)
  873. Function glVertex3d(x_:Double,y_:Double,z_:Double)
  874. Function glVertex3dv(v_:Double Ptr)
  875. Function glVertex3f(x_:Float,y_:Float,z_:Float)
  876. Function glVertex3fv(v_:Float Ptr)
  877. Function glVertex3i(x_:Int,y_:Int,z_:Int)
  878. Function glVertex3iv(v_:Int Ptr)
  879. Function glVertex3s(x_:Short,y_:Short,z_:Short)
  880. Function glVertex3sv(v_:Short Ptr)
  881. Function glVertex4d(x_:Double,y_:Double,z_:Double,w_:Double)
  882. Function glVertex4dv(v_:Double Ptr)
  883. Function glVertex4f(x_:Float,y_:Float,z_:Float,w_:Float)
  884. Function glVertex4fv(v_:Float Ptr)
  885. Function glVertex4i(x_:Int,y_:Int,z_:Int,w_:Int)
  886. Function glVertex4iv(v_:Int Ptr)
  887. Function glVertex4s(x_:Short,y_:Short,z_:Short,w_:Short)
  888. Function glVertex4sv(v_:Short Ptr)
  889. Function glVertexPointer(size_:Int,type_:Int,stride_:Int,pointer_:Byte Ptr)
  890. Function glViewport(x_:Int,y_:Int,width_:Int,height_:Int)
  891. End Extern