'' 
'' 
'' gl -- OpenGL include file (header translated with help of SWIG FB wrapper) 
'' 
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't 
''         be included in other distributions without authorization. 
'' 
'' 
''      RapidQ port by JohnK, 2/2006, now a word from our sponsor 

'** Copyright 1996 Silicon Graphics, Inc. 
'** All Rights Reserved. 
'** 
'** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.; 
'** the contents of this file may not be disclosed to third parties, copied or 
'** duplicated in LONG form, in whole or in part, without the prior written 
'** permission of Silicon Graphics, Inc. 
'** 
'** RESTRICTED RIGHTS LEGEND 
'** Use, duplication or disclosure by the Government is subject to restrictions 
'** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data 
'** and Computer Software clause at DFARS 252.227-7013, and/or in similar or 
'** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished - 
'** rights reserved under the Copyright Laws of the United States. 
'*/ 

$ifndef __gl_bi
$DEFINE __gl_bi


$DEFINE GL_VERSION_1_1 1
$DEFINE GL_VERSION_1_2 1
$DEFINE GL_VERSION_1_3 1
'$DEFINE GL_ARB_imaging 1       'ARB won't be supported in RapidQ 

$DEFINE GLenum integer
$DEFINE GLboolean byte
$DEFINE GLbitfield integer
$DEFINE GLvoid LONG 'normally as any,but usually wants an address 
$DEFINE GLbyte byte  'not signed! 
$DEFINE GLshort short
$DEFINE GLint integer
$DEFINE GLubyte byte
$DEFINE GLushort word
$DEFINE GLuint dword
$DEFINE GLsizei integer
$DEFINE GLfloat single
$DEFINE GLclampf single
$DEFINE GLdouble double
$DEFINE GLclampd double

$DEFINE GL_FALSE &h0
$DEFINE GL_TRUE &h1
$DEFINE GL_BYTE &h1400
$DEFINE GL_UNSIGNED_BYTE &h1401
$DEFINE GL_SHORT &h1402
$DEFINE GL_UNSIGNED_SHORT &h1403
$DEFINE GL_INT &h1404
$DEFINE GL_UNSIGNED_INT &h1405
$DEFINE GL_FLOAT &h1406
$DEFINE GL_DOUBLE &h140A
$DEFINE GL_2_BYTES &h1407
$DEFINE GL_3_BYTES &h1408
$DEFINE GL_4_BYTES &h1409
$DEFINE GL_POINTS &h0000
$DEFINE GL_LINES &h0001
$DEFINE GL_LINE_LOOP &h0002
$DEFINE GL_LINE_STRIP &h0003
$DEFINE GL_TRIANGLES &h0004
$DEFINE GL_TRIANGLE_STRIP &h0005
$DEFINE GL_TRIANGLE_FAN &h0006
$DEFINE GL_QUADS &h0007
$DEFINE GL_QUAD_STRIP &h0008
$DEFINE GL_POLYGON &h0009
$DEFINE GL_VERTEX_ARRAY &h8074
$DEFINE GL_NORMAL_ARRAY &h8075
$DEFINE GL_COLOR_ARRAY &h8076
$DEFINE GL_INDEX_ARRAY &h8077
$DEFINE GL_TEXTURE_COORD_ARRAY &h8078
$DEFINE GL_EDGE_FLAG_ARRAY &h8079
$DEFINE GL_VERTEX_ARRAY_SIZE &h807A
$DEFINE GL_VERTEX_ARRAY_TYPE &h807B
$DEFINE GL_VERTEX_ARRAY_STRIDE &h807C
$DEFINE GL_NORMAL_ARRAY_TYPE &h807E
$DEFINE GL_NORMAL_ARRAY_STRIDE &h807F
$DEFINE GL_COLOR_ARRAY_SIZE &h8081
$DEFINE GL_COLOR_ARRAY_TYPE &h8082
$DEFINE GL_COLOR_ARRAY_STRIDE &h8083
$DEFINE GL_INDEX_ARRAY_TYPE &h8085
$DEFINE GL_INDEX_ARRAY_STRIDE &h8086
$DEFINE GL_TEXTURE_COORD_ARRAY_SIZE &h8088
$DEFINE GL_TEXTURE_COORD_ARRAY_TYPE &h8089
$DEFINE GL_TEXTURE_COORD_ARRAY_STRIDE &h808A
$DEFINE GL_EDGE_FLAG_ARRAY_STRIDE &h808C
$DEFINE GL_VERTEX_ARRAY_POINTER &h808E
$DEFINE GL_NORMAL_ARRAY_POINTER &h808F
$DEFINE GL_COLOR_ARRAY_POINTER &h8090
$DEFINE GL_INDEX_ARRAY_POINTER &h8091
$DEFINE GL_TEXTURE_COORD_ARRAY_POINTER &h8092
$DEFINE GL_EDGE_FLAG_ARRAY_POINTER &h8093
$DEFINE GL_V2F &h2A20
$DEFINE GL_V3F &h2A21
$DEFINE GL_C4UB_V2F &h2A22
$DEFINE GL_C4UB_V3F &h2A23
$DEFINE GL_C3F_V3F &h2A24
$DEFINE GL_N3F_V3F &h2A25
$DEFINE GL_C4F_N3F_V3F &h2A26
$DEFINE GL_T2F_V3F &h2A27
$DEFINE GL_T4F_V4F &h2A28
$DEFINE GL_T2F_C4UB_V3F &h2A29
$DEFINE GL_T2F_C3F_V3F &h2A2A
$DEFINE GL_T2F_N3F_V3F &h2A2B
$DEFINE GL_T2F_C4F_N3F_V3F &h2A2C
$DEFINE GL_T4F_C4F_N3F_V4F &h2A2D
$DEFINE GL_MATRIX_MODE &h0BA0
$DEFINE GL_MODELVIEW &h1700
$DEFINE GL_PROJECTION &h1701
$DEFINE GL_TEXTURE &h1702
$DEFINE GL_POINT_SMOOTH &h0B10
$DEFINE GL_POINT_SIZE &h0B11
$DEFINE GL_POINT_SIZE_GRANULARITY &h0B13
$DEFINE GL_POINT_SIZE_RANGE &h0B12
$DEFINE GL_LINE_SMOOTH &h0B20
$DEFINE GL_LINE_STIPPLE &h0B24
$DEFINE GL_LINE_STIPPLE_PATTERN &h0B25
$DEFINE GL_LINE_STIPPLE_REPEAT &h0B26
$DEFINE GL_LINE_WIDTH &h0B21
$DEFINE GL_LINE_WIDTH_GRANULARITY &h0B23
$DEFINE GL_LINE_WIDTH_RANGE &h0B22
$DEFINE GL_POINT &h1B00
$DEFINE GL_LINE &h1B01
$DEFINE GL_FILL &h1B02
$DEFINE GL_CW &h0900
$DEFINE GL_CCW &h0901
$DEFINE GL_FRONT &h0404
$DEFINE GL_BACK &h0405
$DEFINE GL_POLYGON_MODE &h0B40
$DEFINE GL_POLYGON_SMOOTH &h0B41
$DEFINE GL_POLYGON_STIPPLE &h0B42
$DEFINE GL_EDGE_FLAG &h0B43
$DEFINE GL_CULL_FACE &h0B44
$DEFINE GL_CULL_FACE_MODE &h0B45
$DEFINE GL_FRONT_FACE &h0B46
$DEFINE GL_POLYGON_OFFSET_FACTOR &h8038
$DEFINE GL_POLYGON_OFFSET_UNITS &h2A00
$DEFINE GL_POLYGON_OFFSET_POINT &h2A01
$DEFINE GL_POLYGON_OFFSET_LINE &h2A02
$DEFINE GL_POLYGON_OFFSET_FILL &h8037
$DEFINE GL_COMPILE &h1300
$DEFINE GL_COMPILE_AND_EXECUTE &h1301
$DEFINE GL_LIST_BASE &h0B32
$DEFINE GL_LIST_INDEX &h0B33
$DEFINE GL_LIST_MODE &h0B30
$DEFINE GL_NEVER &h0200
$DEFINE GL_LESS &h0201
$DEFINE GL_EQUAL &h0202
$DEFINE GL_LEQUAL &h0203
$DEFINE GL_GREATER &h0204
$DEFINE GL_NOTEQUAL &h0205
$DEFINE GL_GEQUAL &h0206
$DEFINE GL_ALWAYS &h0207
$DEFINE GL_DEPTH_TEST &h0B71
$DEFINE GL_DEPTH_BITS &h0D56
$DEFINE GL_DEPTH_CLEAR_VALUE &h0B73
$DEFINE GL_DEPTH_FUNC &h0B74
$DEFINE GL_DEPTH_RANGE &h0B70
$DEFINE GL_DEPTH_WRITEMASK &h0B72
$DEFINE GL_DEPTH_COMPONENT &h1902
$DEFINE GL_LIGHTING &h0B50
$DEFINE GL_LIGHT0 &h4000
$DEFINE GL_LIGHT1 &h4001
$DEFINE GL_LIGHT2 &h4002
$DEFINE GL_LIGHT3 &h4003
$DEFINE GL_LIGHT4 &h4004
$DEFINE GL_LIGHT5 &h4005
$DEFINE GL_LIGHT6 &h4006
$DEFINE GL_LIGHT7 &h4007
$DEFINE GL_SPOT_EXPONENT &h1205
$DEFINE GL_SPOT_CUTOFF &h1206
$DEFINE GL_CONSTANT_ATTENUATION &h1207
$DEFINE GL_LINEAR_ATTENUATION &h1208
$DEFINE GL_QUADRATIC_ATTENUATION &h1209
$DEFINE GL_AMBIENT &h1200
$DEFINE GL_DIFFUSE &h1201
$DEFINE GL_SPECULAR &h1202
$DEFINE GL_SHININESS &h1601
$DEFINE GL_EMISSION &h1600
$DEFINE GL_POSITION &h1203
$DEFINE GL_SPOT_DIRECTION &h1204
$DEFINE GL_AMBIENT_AND_DIFFUSE &h1602
$DEFINE GL_COLOR_INDEXES &h1603
$DEFINE GL_LIGHT_MODEL_TWO_SIDE &h0B52
$DEFINE GL_LIGHT_MODEL_LOCAL_VIEWER &h0B51
$DEFINE GL_LIGHT_MODEL_AMBIENT &h0B53
$DEFINE GL_FRONT_AND_BACK &h0408
$DEFINE GL_SHADE_MODEL &h0B54
$DEFINE GL_FLAT &h1D00
$DEFINE GL_SMOOTH &h1D01
$DEFINE GL_COLOR_MATERIAL &h0B57
$DEFINE GL_COLOR_MATERIAL_FACE &h0B55
$DEFINE GL_COLOR_MATERIAL_PARAMETER &h0B56
$DEFINE GL_NORMALIZE &h0BA1
$DEFINE GL_CLIP_PLANE0 &h3000
$DEFINE GL_CLIP_PLANE1 &h3001
$DEFINE GL_CLIP_PLANE2 &h3002
$DEFINE GL_CLIP_PLANE3 &h3003
$DEFINE GL_CLIP_PLANE4 &h3004
$DEFINE GL_CLIP_PLANE5 &h3005
$DEFINE GL_ACCUM_RED_BITS &h0D58
$DEFINE GL_ACCUM_GREEN_BITS &h0D59
$DEFINE GL_ACCUM_BLUE_BITS &h0D5A
$DEFINE GL_ACCUM_ALPHA_BITS &h0D5B
$DEFINE GL_ACCUM_CLEAR_VALUE &h0B80
$DEFINE GL_ACCUM &h0100
$DEFINE GL_ADD &h0104
$DEFINE GL_LOAD &h0101
$DEFINE GL_MULT &h0103
$DEFINE GL_RETURN &h0102
$DEFINE GL_ALPHA_TEST &h0BC0
$DEFINE GL_ALPHA_TEST_REF &h0BC2
$DEFINE GL_ALPHA_TEST_FUNC &h0BC1
$DEFINE GL_BLEND &h0BE2
$DEFINE GL_BLEND_SRC &h0BE1
$DEFINE GL_BLEND_DST &h0BE0
$DEFINE GL_ZERO &h0
$DEFINE GL_ONE &h1
$DEFINE GL_SRC_COLOR &h0300
$DEFINE GL_ONE_MINUS_SRC_COLOR &h0301
$DEFINE GL_SRC_ALPHA &h0302
$DEFINE GL_ONE_MINUS_SRC_ALPHA &h0303
$DEFINE GL_DST_ALPHA &h0304
$DEFINE GL_ONE_MINUS_DST_ALPHA &h0305
$DEFINE GL_DST_COLOR &h0306
$DEFINE GL_ONE_MINUS_DST_COLOR &h0307
$DEFINE GL_SRC_ALPHA_SATURATE &h0308
$DEFINE GL_CONSTANT_COLOR &h8001
$DEFINE GL_ONE_MINUS_CONSTANT_COLOR &h8002
$DEFINE GL_CONSTANT_ALPHA &h8003
$DEFINE GL_ONE_MINUS_CONSTANT_ALPHA &h8004
$DEFINE GL_FEEDBACK &h1C01
$DEFINE GL_RENDER &h1C00
$DEFINE GL_SELECT &h1C02
$DEFINE GL_2D &h0600
$DEFINE GL_3D &h0601
$DEFINE GL_3D_COLOR &h0602
$DEFINE GL_3D_COLOR_TEXTURE &h0603
$DEFINE GL_4D_COLOR_TEXTURE &h0604
$DEFINE GL_POINT_TOKEN &h0701
$DEFINE GL_LINE_TOKEN &h0702
$DEFINE GL_LINE_RESET_TOKEN &h0707
$DEFINE GL_POLYGON_TOKEN &h0703
$DEFINE GL_BITMAP_TOKEN &h0704
$DEFINE GL_DRAW_PIXEL_TOKEN &h0705
$DEFINE GL_COPY_PIXEL_TOKEN &h0706
$DEFINE GL_PASS_THROUGH_TOKEN &h0700
$DEFINE GL_FEEDBACK_BUFFER_POINTER &h0DF0
$DEFINE GL_FEEDBACK_BUFFER_SIZE &h0DF1
$DEFINE GL_FEEDBACK_BUFFER_TYPE &h0DF2
$DEFINE GL_SELECTION_BUFFER_POINTER &h0DF3
$DEFINE GL_SELECTION_BUFFER_SIZE &h0DF4
$DEFINE GL_FOG &h0B60
$DEFINE GL_FOG_MODE &h0B65
$DEFINE GL_FOG_DENSITY &h0B62
$DEFINE GL_FOG_COLOR &h0B66
$DEFINE GL_FOG_INDEX &h0B61
$DEFINE GL_FOG_START &h0B63
$DEFINE GL_FOG_END &h0B64
$DEFINE GL_LINEAR &h2601
$DEFINE GL_EXP &h0800
$DEFINE GL_EXP2 &h0801
$DEFINE GL_LOGIC_OP &h0BF1
$DEFINE GL_INDEX_LOGIC_OP &h0BF1
$DEFINE GL_COLOR_LOGIC_OP &h0BF2
$DEFINE GL_LOGIC_OP_MODE &h0BF0
$DEFINE GL_CLEAR &h1500
$DEFINE GL_SET &h150F
$DEFINE GL_COPY &h1503
$DEFINE GL_COPY_INVERTED &h150C
$DEFINE GL_NOOP &h1505
$DEFINE GL_INVERT &h150A
$DEFINE GL_AND &h1501
$DEFINE GL_NAND &h150E
$DEFINE GL_OR &h1507
$DEFINE GL_NOR &h1508
$DEFINE GL_XOR &h1506
$DEFINE GL_EQUIV &h1509
$DEFINE GL_AND_REVERSE &h1502
$DEFINE GL_AND_INVERTED &h1504
$DEFINE GL_OR_REVERSE &h150B
$DEFINE GL_OR_INVERTED &h150D
$DEFINE GL_STENCIL_TEST &h0B90
$DEFINE GL_STENCIL_WRITEMASK &h0B98
$DEFINE GL_STENCIL_BITS &h0D57
$DEFINE GL_STENCIL_FUNC &h0B92
$DEFINE GL_STENCIL_VALUE_MASK &h0B93
$DEFINE GL_STENCIL_REF &h0B97
$DEFINE GL_STENCIL_FAIL &h0B94
$DEFINE GL_STENCIL_PASS_DEPTH_PASS &h0B96
$DEFINE GL_STENCIL_PASS_DEPTH_FAIL &h0B95
$DEFINE GL_STENCIL_CLEAR_VALUE &h0B91
$DEFINE GL_STENCIL_INDEX &h1901
$DEFINE GL_KEEP &h1E00
$DEFINE GL_REPLACE &h1E01
$DEFINE GL_INCR &h1E02
$DEFINE GL_DECR &h1E03
$DEFINE GL_NONE &h0
$DEFINE GL_LEFT &h0406
$DEFINE GL_RIGHT &h0407
$DEFINE GL_FRONT_LEFT &h0400
$DEFINE GL_FRONT_RIGHT &h0401
$DEFINE GL_BACK_LEFT &h0402
$DEFINE GL_BACK_RIGHT &h0403
$DEFINE GL_AUX0 &h0409
$DEFINE GL_AUX1 &h040A
$DEFINE GL_AUX2 &h040B
$DEFINE GL_AUX3 &h040C
$DEFINE GL_COLOR_INDEX &h1900
$DEFINE GL_RED &h1903
$DEFINE GL_GREEN &h1904
$DEFINE GL_BLUE &h1905
$DEFINE GL_ALPHA &h1906
$DEFINE GL_LUMINANCE &h1909
$DEFINE GL_LUMINANCE_ALPHA &h190A
$DEFINE GL_ALPHA_BITS &h0D55
$DEFINE GL_RED_BITS &h0D52
$DEFINE GL_GREEN_BITS &h0D53
$DEFINE GL_BLUE_BITS &h0D54
$DEFINE GL_INDEX_BITS &h0D51
$DEFINE GL_SUBPIXEL_BITS &h0D50
$DEFINE GL_AUX_BUFFERS &h0C00
$DEFINE GL_READ_BUFFER &h0C02
$DEFINE GL_DRAW_BUFFER &h0C01
$DEFINE GL_DOUBLEBUFFER &h0C32
$DEFINE GL_STEREO &h0C33
$DEFINE GL_BITMAP &h1A00
$DEFINE GL_COLOR &h1800
$DEFINE GL_DEPTH &h1801
$DEFINE GL_STENCIL &h1802
$DEFINE GL_DITHER &h0BD0
$DEFINE GL_RGB &h1907
$DEFINE GL_RGBA &h1908
$DEFINE GL_MAX_LIST_NESTING &h0B31
$DEFINE GL_MAX_ATTRIB_STACK_DEPTH &h0D35
$DEFINE GL_MAX_MODELVIEW_STACK_DEPTH &h0D36
$DEFINE GL_MAX_NAME_STACK_DEPTH &h0D37
$DEFINE GL_MAX_PROJECTION_STACK_DEPTH &h0D38
$DEFINE GL_MAX_TEXTURE_STACK_DEPTH &h0D39
$DEFINE GL_MAX_EVAL_ORDER &h0D30
$DEFINE GL_MAX_LIGHTS &h0D31
$DEFINE GL_MAX_CLIP_PLANES &h0D32
$DEFINE GL_MAX_TEXTURE_SIZE &h0D33
$DEFINE GL_MAX_PIXEL_MAP_TABLE &h0D34
$DEFINE GL_MAX_VIEWPORT_DIMS &h0D3A
$DEFINE GL_MAX_CLIENT_ATTRIB_STACK_DEPTH &h0D3B
$DEFINE GL_ATTRIB_STACK_DEPTH &h0BB0
$DEFINE GL_CLIENT_ATTRIB_STACK_DEPTH &h0BB1
$DEFINE GL_COLOR_CLEAR_VALUE &h0C22
$DEFINE GL_COLOR_WRITEMASK &h0C23
$DEFINE GL_CURRENT_INDEX &h0B01
$DEFINE GL_CURRENT_COLOR &h0B00
$DEFINE GL_CURRENT_NORMAL &h0B02
$DEFINE GL_CURRENT_RASTER_COLOR &h0B04
$DEFINE GL_CURRENT_RASTER_DISTANCE &h0B09
$DEFINE GL_CURRENT_RASTER_INDEX &h0B05
$DEFINE GL_CURRENT_RASTER_POSITION &h0B07
$DEFINE GL_CURRENT_RASTER_TEXTURE_COORDS &h0B06
$DEFINE GL_CURRENT_RASTER_POSITION_VALID &h0B08
$DEFINE GL_CURRENT_TEXTURE_COORDS &h0B03
$DEFINE GL_INDEX_CLEAR_VALUE &h0C20
$DEFINE GL_INDEX_MODE &h0C30
$DEFINE GL_INDEX_WRITEMASK &h0C21
$DEFINE GL_MODELVIEW_MATRIX &h0BA6
$DEFINE GL_MODELVIEW_STACK_DEPTH &h0BA3
$DEFINE GL_NAME_STACK_DEPTH &h0D70
$DEFINE GL_PROJECTION_MATRIX &h0BA7
$DEFINE GL_PROJECTION_STACK_DEPTH &h0BA4
$DEFINE GL_RENDER_MODE &h0C40
$DEFINE GL_RGBA_MODE &h0C31
$DEFINE GL_TEXTURE_MATRIX &h0BA8
$DEFINE GL_TEXTURE_STACK_DEPTH &h0BA5
$DEFINE GL_VIEWPORT &h0BA2
$DEFINE GL_AUTO_NORMAL &h0D80
$DEFINE GL_MAP1_COLOR_4 &h0D90
$DEFINE GL_MAP1_GRID_DOMAIN &h0DD0
$DEFINE GL_MAP1_GRID_SEGMENTS &h0DD1
$DEFINE GL_MAP1_INDEX &h0D91
$DEFINE GL_MAP1_NORMAL &h0D92
$DEFINE GL_MAP1_TEXTURE_COORD_1 &h0D93
$DEFINE GL_MAP1_TEXTURE_COORD_2 &h0D94
$DEFINE GL_MAP1_TEXTURE_COORD_3 &h0D95
$DEFINE GL_MAP1_TEXTURE_COORD_4 &h0D96
$DEFINE GL_MAP1_VERTEX_3 &h0D97
$DEFINE GL_MAP1_VERTEX_4 &h0D98
$DEFINE GL_MAP2_COLOR_4 &h0DB0
$DEFINE GL_MAP2_GRID_DOMAIN &h0DD2
$DEFINE GL_MAP2_GRID_SEGMENTS &h0DD3
$DEFINE GL_MAP2_INDEX &h0DB1
$DEFINE GL_MAP2_NORMAL &h0DB2
$DEFINE GL_MAP2_TEXTURE_COORD_1 &h0DB3
$DEFINE GL_MAP2_TEXTURE_COORD_2 &h0DB4
$DEFINE GL_MAP2_TEXTURE_COORD_3 &h0DB5
$DEFINE GL_MAP2_TEXTURE_COORD_4 &h0DB6
$DEFINE GL_MAP2_VERTEX_3 &h0DB7
$DEFINE GL_MAP2_VERTEX_4 &h0DB8
$DEFINE GL_COEFF &h0A00
$DEFINE GL_DOMAIN &h0A02
$DEFINE GL_ORDER &h0A01
$DEFINE GL_FOG_HINT &h0C54
$DEFINE GL_LINE_SMOOTH_HINT &h0C52
$DEFINE GL_PERSPECTIVE_CORRECTION_HINT &h0C50
$DEFINE GL_POINT_SMOOTH_HINT &h0C51
$DEFINE GL_POLYGON_SMOOTH_HINT &h0C53
$DEFINE GL_DONT_CARE &h1100
$DEFINE GL_FASTEST &h1101
$DEFINE GL_NICEST &h1102
$DEFINE GL_SCISSOR_TEST &h0C11
$DEFINE GL_SCISSOR_BOX &h0C10
$DEFINE GL_MAP_COLOR &h0D10
$DEFINE GL_MAP_STENCIL &h0D11
$DEFINE GL_INDEX_SHIFT &h0D12
$DEFINE GL_INDEX_OFFSET &h0D13
$DEFINE GL_RED_SCALE &h0D14
$DEFINE GL_RED_BIAS &h0D15
$DEFINE GL_GREEN_SCALE &h0D18
$DEFINE GL_GREEN_BIAS &h0D19
$DEFINE GL_BLUE_SCALE &h0D1A
$DEFINE GL_BLUE_BIAS &h0D1B
$DEFINE GL_ALPHA_SCALE &h0D1C
$DEFINE GL_ALPHA_BIAS &h0D1D
$DEFINE GL_DEPTH_SCALE &h0D1E
$DEFINE GL_DEPTH_BIAS &h0D1F
$DEFINE GL_PIXEL_MAP_S_TO_S_SIZE &h0CB1
$DEFINE GL_PIXEL_MAP_I_TO_I_SIZE &h0CB0
$DEFINE GL_PIXEL_MAP_I_TO_R_SIZE &h0CB2
$DEFINE GL_PIXEL_MAP_I_TO_G_SIZE &h0CB3
$DEFINE GL_PIXEL_MAP_I_TO_B_SIZE &h0CB4
$DEFINE GL_PIXEL_MAP_I_TO_A_SIZE &h0CB5
$DEFINE GL_PIXEL_MAP_R_TO_R_SIZE &h0CB6
$DEFINE GL_PIXEL_MAP_G_TO_G_SIZE &h0CB7
$DEFINE GL_PIXEL_MAP_B_TO_B_SIZE &h0CB8
$DEFINE GL_PIXEL_MAP_A_TO_A_SIZE &h0CB9
$DEFINE GL_PIXEL_MAP_S_TO_S &h0C71
$DEFINE GL_PIXEL_MAP_I_TO_I &h0C70
$DEFINE GL_PIXEL_MAP_I_TO_R &h0C72
$DEFINE GL_PIXEL_MAP_I_TO_G &h0C73
$DEFINE GL_PIXEL_MAP_I_TO_B &h0C74
$DEFINE GL_PIXEL_MAP_I_TO_A &h0C75
$DEFINE GL_PIXEL_MAP_R_TO_R &h0C76
$DEFINE GL_PIXEL_MAP_G_TO_G &h0C77
$DEFINE GL_PIXEL_MAP_B_TO_B &h0C78
$DEFINE GL_PIXEL_MAP_A_TO_A &h0C79
$DEFINE GL_PACK_ALIGNMENT &h0D05
$DEFINE GL_PACK_LSB_FIRST &h0D01
$DEFINE GL_PACK_ROW_LENGTH &h0D02
$DEFINE GL_PACK_SKIP_PIXELS &h0D04
$DEFINE GL_PACK_SKIP_ROWS &h0D03
$DEFINE GL_PACK_SWAP_BYTES &h0D00
$DEFINE GL_UNPACK_ALIGNMENT &h0CF5
$DEFINE GL_UNPACK_LSB_FIRST &h0CF1
$DEFINE GL_UNPACK_ROW_LENGTH &h0CF2
$DEFINE GL_UNPACK_SKIP_PIXELS &h0CF4
$DEFINE GL_UNPACK_SKIP_ROWS &h0CF3
$DEFINE GL_UNPACK_SWAP_BYTES &h0CF0
$DEFINE GL_ZOOM_X &h0D16
$DEFINE GL_ZOOM_Y &h0D17
$DEFINE GL_TEXTURE_ENV &h2300
$DEFINE GL_TEXTURE_ENV_MODE &h2200
$DEFINE GL_TEXTURE_1D &h0DE0
$DEFINE GL_TEXTURE_2D &h0DE1
$DEFINE GL_TEXTURE_WRAP_S &h2802
$DEFINE GL_TEXTURE_WRAP_T &h2803
$DEFINE GL_TEXTURE_MAG_FILTER &h2800
$DEFINE GL_TEXTURE_MIN_FILTER &h2801
$DEFINE GL_TEXTURE_ENV_COLOR &h2201
$DEFINE GL_TEXTURE_GEN_S &h0C60
$DEFINE GL_TEXTURE_GEN_T &h0C61
$DEFINE GL_TEXTURE_GEN_MODE &h2500
$DEFINE GL_TEXTURE_BORDER_COLOR &h1004
$DEFINE GL_TEXTURE_WIDTH &h1000
$DEFINE GL_TEXTURE_HEIGHT &h1001
$DEFINE GL_TEXTURE_BORDER &h1005
$DEFINE GL_TEXTURE_COMPONENTS &h1003
$DEFINE GL_TEXTURE_RED_SIZE &h805C
$DEFINE GL_TEXTURE_GREEN_SIZE &h805D
$DEFINE GL_TEXTURE_BLUE_SIZE &h805E
$DEFINE GL_TEXTURE_ALPHA_SIZE &h805F
$DEFINE GL_TEXTURE_LUMINANCE_SIZE &h8060
$DEFINE GL_TEXTURE_INTENSITY_SIZE &h8061
$DEFINE GL_NEAREST_MIPMAP_NEAREST &h2700
$DEFINE GL_NEAREST_MIPMAP_LINEAR &h2702
$DEFINE GL_LINEAR_MIPMAP_NEAREST &h2701
$DEFINE GL_LINEAR_MIPMAP_LINEAR &h2703
$DEFINE GL_OBJECT_LINEAR &h2401
$DEFINE GL_OBJECT_PLANE &h2501
$DEFINE GL_EYE_LINEAR &h2400
$DEFINE GL_EYE_PLANE &h2502
$DEFINE GL_SPHERE_MAP &h2402
$DEFINE GL_DECAL &h2101
$DEFINE GL_MODULATE &h2100
$DEFINE GL_NEAREST &h2600
$DEFINE GL_REPEAT &h2901
$DEFINE GL_CLAMP &h2900
$DEFINE GL_S &h2000
$DEFINE GL_T &h2001
$DEFINE GL_R &h2002
$DEFINE GL_Q &h2003
$DEFINE GL_TEXTURE_GEN_R &h0C62
$DEFINE GL_TEXTURE_GEN_Q &h0C63
$DEFINE GL_VENDOR &h1F00
$DEFINE GL_RENDERER &h1F01
$DEFINE GL_VERSION &h1F02
$DEFINE GL_EXTENSIONS &h1F03
$DEFINE GL_NO_ERROR &h0
$DEFINE GL_INVALID_VALUE &h0501
$DEFINE GL_INVALID_ENUM &h0500
$DEFINE GL_INVALID_OPERATION &h0502
$DEFINE GL_STACK_OVERFLOW &h0503
$DEFINE GL_STACK_UNDERFLOW &h0504
$DEFINE GL_OUT_OF_MEMORY &h0505
$DEFINE GL_CURRENT_BIT &h00000001
$DEFINE GL_POINT_BIT &h00000002
$DEFINE GL_LINE_BIT &h00000004
$DEFINE GL_POLYGON_BIT &h00000008
$DEFINE GL_POLYGON_STIPPLE_BIT &h00000010
$DEFINE GL_PIXEL_MODE_BIT &h00000020
$DEFINE GL_LIGHTING_BIT &h00000040
$DEFINE GL_FOG_BIT &h00000080
$DEFINE GL_DEPTH_BUFFER_BIT &h00000100
$DEFINE GL_ACCUM_BUFFER_BIT &h00000200
$DEFINE GL_STENCIL_BUFFER_BIT &h00000400
$DEFINE GL_VIEWPORT_BIT &h00000800
$DEFINE GL_TRANSFORM_BIT &h00001000
$DEFINE GL_ENABLE_BIT &h00002000
$DEFINE GL_COLOR_BUFFER_BIT &h00004000
$DEFINE GL_HINT_BIT &h00008000
$DEFINE GL_EVAL_BIT &h00010000
$DEFINE GL_LIST_BIT &h00020000
$DEFINE GL_TEXTURE_BIT &h00040000
$DEFINE GL_SCISSOR_BIT &h00080000
$DEFINE GL_ALL_ATTRIB_BITS &h000FFFFF
$DEFINE GL_PROXY_TEXTURE_1D &h8063
$DEFINE GL_PROXY_TEXTURE_2D &h8064
$DEFINE GL_TEXTURE_PRIORITY &h8066
$DEFINE GL_TEXTURE_RESIDENT &h8067
$DEFINE GL_TEXTURE_BINDING_1D &h8068
$DEFINE GL_TEXTURE_BINDING_2D &h8069
$DEFINE GL_TEXTURE_INTERNAL_FORMAT &h1003
$DEFINE GL_ALPHA4 &h803B
$DEFINE GL_ALPHA8 &h803C
$DEFINE GL_ALPHA12 &h803D
$DEFINE GL_ALPHA16 &h803E
$DEFINE GL_LUMINANCE4 &h803F
$DEFINE GL_LUMINANCE8 &h8040
$DEFINE GL_LUMINANCE12 &h8041
$DEFINE GL_LUMINANCE16 &h8042
$DEFINE GL_LUMINANCE4_ALPHA4 &h8043
$DEFINE GL_LUMINANCE6_ALPHA2 &h8044
$DEFINE GL_LUMINANCE8_ALPHA8 &h8045
$DEFINE GL_LUMINANCE12_ALPHA4 &h8046
$DEFINE GL_LUMINANCE12_ALPHA12 &h8047
$DEFINE GL_LUMINANCE16_ALPHA16 &h8048
$DEFINE GL_INTENSITY &h8049
$DEFINE GL_INTENSITY4 &h804A
$DEFINE GL_INTENSITY8 &h804B
$DEFINE GL_INTENSITY12 &h804C
$DEFINE GL_INTENSITY16 &h804D
$DEFINE GL_R3_G3_B2 &h2A10
$DEFINE GL_RGB4 &h804F
$DEFINE GL_RGB5 &h8050
$DEFINE GL_RGB8 &h8051
$DEFINE GL_RGB10 &h8052
$DEFINE GL_RGB12 &h8053
$DEFINE GL_RGB16 &h8054
$DEFINE GL_RGBA2 &h8055
$DEFINE GL_RGBA4 &h8056
$DEFINE GL_RGB5_A1 &h8057
$DEFINE GL_RGBA8 &h8058
$DEFINE GL_RGB10_A2 &h8059
$DEFINE GL_RGBA12 &h805A
$DEFINE GL_RGBA16 &h805B
$DEFINE GL_CLIENT_PIXEL_STORE_BIT &h00000001
$DEFINE GL_CLIENT_VERTEX_ARRAY_BIT &h00000002
$DEFINE GL_ALL_CLIENT_ATTRIB_BITS &hFFFFFFFF
$DEFINE GL_CLIENT_ALL_ATTRIB_BITS &hFFFFFFFF
$DEFINE GL_RESCALE_NORMAL &h803A
$DEFINE GL_CLAMP_TO_EDGE &h812F
$DEFINE GL_MAX_ELEMENTS_VERTICES &h80E8
$DEFINE GL_MAX_ELEMENTS_INDICES &h80E9
$DEFINE GL_BGR &h80E0
$DEFINE GL_BGRA &h80E1
$DEFINE GL_UNSIGNED_BYTE_3_3_2 &h8032
$DEFINE GL_UNSIGNED_BYTE_2_3_3_REV &h8362
$DEFINE GL_UNSIGNED_SHORT_5_6_5 &h8363
$DEFINE GL_UNSIGNED_SHORT_5_6_5_REV &h8364
$DEFINE GL_UNSIGNED_SHORT_4_4_4_4 &h8033
$DEFINE GL_UNSIGNED_SHORT_4_4_4_4_REV &h8365
$DEFINE GL_UNSIGNED_SHORT_5_5_5_1 &h8034
$DEFINE GL_UNSIGNED_SHORT_1_5_5_5_REV &h8366
$DEFINE GL_UNSIGNED_INT_8_8_8_8 &h8035
$DEFINE GL_UNSIGNED_INT_8_8_8_8_REV &h8367
$DEFINE GL_UNSIGNED_INT_10_10_10_2 &h8036
$DEFINE GL_UNSIGNED_INT_2_10_10_10_REV &h8368
$DEFINE GL_LIGHT_MODEL_COLOR_CONTROL &h81F8
$DEFINE GL_SINGLE_COLOR &h81F9
$DEFINE GL_SEPARATE_SPECULAR_COLOR &h81FA
$DEFINE GL_TEXTURE_MIN_LOD &h813A
$DEFINE GL_TEXTURE_MAX_LOD &h813B
$DEFINE GL_TEXTURE_BASE_LEVEL &h813C
$DEFINE GL_TEXTURE_MAX_LEVEL &h813D
$DEFINE GL_SMOOTH_POINT_SIZE_RANGE &h0B12
$DEFINE GL_SMOOTH_POINT_SIZE_GRANULARITY &h0B13
$DEFINE GL_SMOOTH_LINE_WIDTH_RANGE &h0B22
$DEFINE GL_SMOOTH_LINE_WIDTH_GRANULARITY &h0B23
$DEFINE GL_ALIASED_POINT_SIZE_RANGE &h846D
$DEFINE GL_ALIASED_LINE_WIDTH_RANGE &h846E
$DEFINE GL_PACK_SKIP_IMAGES &h806B
$DEFINE GL_PACK_IMAGE_HEIGHT &h806C
$DEFINE GL_UNPACK_SKIP_IMAGES &h806D
$DEFINE GL_UNPACK_IMAGE_HEIGHT &h806E
$DEFINE GL_TEXTURE_3D &h806F
$DEFINE GL_PROXY_TEXTURE_3D &h8070
$DEFINE GL_TEXTURE_DEPTH &h8071
$DEFINE GL_TEXTURE_WRAP_R &h8072
$DEFINE GL_MAX_3D_TEXTURE_SIZE &h8073
$DEFINE GL_TEXTURE_BINDING_3D &h806A
$DEFINE GL_COLOR_TABLE &h80D0
$DEFINE GL_POST_CONVOLUTION_COLOR_TABLE &h80D1
$DEFINE GL_POST_COLOR_MATRIX_COLOR_TABLE &h80D2
$DEFINE GL_PROXY_COLOR_TABLE &h80D3
$DEFINE GL_PROXY_POST_CONVOLUTION_COLOR_TABLE &h80D4
$DEFINE GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE &h80D5
$DEFINE GL_COLOR_TABLE_SCALE &h80D6
$DEFINE GL_COLOR_TABLE_BIAS &h80D7
$DEFINE GL_COLOR_TABLE_FORMAT &h80D8
$DEFINE GL_COLOR_TABLE_WIDTH &h80D9
$DEFINE GL_COLOR_TABLE_RED_SIZE &h80DA
$DEFINE GL_COLOR_TABLE_GREEN_SIZE &h80DB
$DEFINE GL_COLOR_TABLE_BLUE_SIZE &h80DC
$DEFINE GL_COLOR_TABLE_ALPHA_SIZE &h80DD
$DEFINE GL_COLOR_TABLE_LUMINANCE_SIZE &h80DE
$DEFINE GL_COLOR_TABLE_INTENSITY_SIZE &h80DF
$DEFINE GL_CONVOLUTION_1D &h8010
$DEFINE GL_CONVOLUTION_2D &h8011
$DEFINE GL_SEPARABLE_2D &h8012
$DEFINE GL_CONVOLUTION_BORDER_MODE &h8013
$DEFINE GL_CONVOLUTION_FILTER_SCALE &h8014
$DEFINE GL_CONVOLUTION_FILTER_BIAS &h8015
$DEFINE GL_REDUCE &h8016
$DEFINE GL_CONVOLUTION_FORMAT &h8017
$DEFINE GL_CONVOLUTION_WIDTH &h8018
$DEFINE GL_CONVOLUTION_HEIGHT &h8019
$DEFINE GL_MAX_CONVOLUTION_WIDTH &h801A
$DEFINE GL_MAX_CONVOLUTION_HEIGHT &h801B
$DEFINE GL_POST_CONVOLUTION_RED_SCALE &h801C
$DEFINE GL_POST_CONVOLUTION_GREEN_SCALE &h801D
$DEFINE GL_POST_CONVOLUTION_BLUE_SCALE &h801E
$DEFINE GL_POST_CONVOLUTION_ALPHA_SCALE &h801F
$DEFINE GL_POST_CONVOLUTION_RED_BIAS &h8020
$DEFINE GL_POST_CONVOLUTION_GREEN_BIAS &h8021
$DEFINE GL_POST_CONVOLUTION_BLUE_BIAS &h8022
$DEFINE GL_POST_CONVOLUTION_ALPHA_BIAS &h8023
$DEFINE GL_CONSTANT_BORDER &h8151
$DEFINE GL_REPLICATE_BORDER &h8153
$DEFINE GL_CONVOLUTION_BORDER_COLOR &h8154
$DEFINE GL_COLOR_MATRIX &h80B1
$DEFINE GL_COLOR_MATRIX_STACK_DEPTH &h80B2
$DEFINE GL_MAX_COLOR_MATRIX_STACK_DEPTH &h80B3
$DEFINE GL_POST_COLOR_MATRIX_RED_SCALE &h80B4
$DEFINE GL_POST_COLOR_MATRIX_GREEN_SCALE &h80B5
$DEFINE GL_POST_COLOR_MATRIX_BLUE_SCALE &h80B6
$DEFINE GL_POST_COLOR_MATRIX_ALPHA_SCALE &h80B7
$DEFINE GL_POST_COLOR_MATRIX_RED_BIAS &h80B8
$DEFINE GL_POST_COLOR_MATRIX_GREEN_BIAS &h80B9
$DEFINE GL_POST_COLOR_MATRIX_BLUE_BIAS &h80BA
$DEFINE GL_POST_COLOR_MATRIX_ALPHA_BIAS &h80BB
$DEFINE GL_HISTOGRAM &h8024
$DEFINE GL_PROXY_HISTOGRAM &h8025
$DEFINE GL_HISTOGRAM_WIDTH &h8026
$DEFINE GL_HISTOGRAM_FORMAT &h8027
$DEFINE GL_HISTOGRAM_RED_SIZE &h8028
$DEFINE GL_HISTOGRAM_GREEN_SIZE &h8029
$DEFINE GL_HISTOGRAM_BLUE_SIZE &h802A
$DEFINE GL_HISTOGRAM_ALPHA_SIZE &h802B
$DEFINE GL_HISTOGRAM_LUMINANCE_SIZE &h802C
$DEFINE GL_HISTOGRAM_SINK &h802D
$DEFINE GL_MINMAX &h802E
$DEFINE GL_MINMAX_FORMAT &h802F
$DEFINE GL_MINMAX_SINK &h8030
$DEFINE GL_TABLE_TOO_LARGE &h8031
$DEFINE GL_BLEND_EQUATION &h8009
$DEFINE GL_MIN &h8007
$DEFINE GL_MAX &h8008
$DEFINE GL_FUNC_ADD &h8006
$DEFINE GL_FUNC_SUBTRACT &h800A
$DEFINE GL_FUNC_REVERSE_SUBTRACT &h800B
$DEFINE GL_BLEND_COLOR &h8005
$DEFINE GL_TEXTURE0 &h84C0
$DEFINE GL_TEXTURE1 &h84C1
$DEFINE GL_TEXTURE2 &h84C2
$DEFINE GL_TEXTURE3 &h84C3
$DEFINE GL_TEXTURE4 &h84C4
$DEFINE GL_TEXTURE5 &h84C5
$DEFINE GL_TEXTURE6 &h84C6
$DEFINE GL_TEXTURE7 &h84C7
$DEFINE GL_TEXTURE8 &h84C8
$DEFINE GL_TEXTURE9 &h84C9
$DEFINE GL_TEXTURE10 &h84CA
$DEFINE GL_TEXTURE11 &h84CB
$DEFINE GL_TEXTURE12 &h84CC
$DEFINE GL_TEXTURE13 &h84CD
$DEFINE GL_TEXTURE14 &h84CE
$DEFINE GL_TEXTURE15 &h84CF
$DEFINE GL_TEXTURE16 &h84D0
$DEFINE GL_TEXTURE17 &h84D1
$DEFINE GL_TEXTURE18 &h84D2
$DEFINE GL_TEXTURE19 &h84D3
$DEFINE GL_TEXTURE20 &h84D4
$DEFINE GL_TEXTURE21 &h84D5
$DEFINE GL_TEXTURE22 &h84D6
$DEFINE GL_TEXTURE23 &h84D7
$DEFINE GL_TEXTURE24 &h84D8
$DEFINE GL_TEXTURE25 &h84D9
$DEFINE GL_TEXTURE26 &h84DA
$DEFINE GL_TEXTURE27 &h84DB
$DEFINE GL_TEXTURE28 &h84DC
$DEFINE GL_TEXTURE29 &h84DD
$DEFINE GL_TEXTURE30 &h84DE
$DEFINE GL_TEXTURE31 &h84DF
$DEFINE GL_ACTIVE_TEXTURE &h84E0
$DEFINE GL_CLIENT_ACTIVE_TEXTURE &h84E1
$DEFINE GL_MAX_TEXTURE_UNITS &h84E2
$DEFINE GL_NORMAL_MAP &h8511
$DEFINE GL_REFLECTION_MAP &h8512
$DEFINE GL_TEXTURE_CUBE_MAP &h8513
$DEFINE GL_TEXTURE_BINDING_CUBE_MAP &h8514
$DEFINE GL_TEXTURE_CUBE_MAP_POSITIVE_X &h8515
$DEFINE GL_TEXTURE_CUBE_MAP_NEGATIVE_X &h8516
$DEFINE GL_TEXTURE_CUBE_MAP_POSITIVE_Y &h8517
$DEFINE GL_TEXTURE_CUBE_MAP_NEGATIVE_Y &h8518
$DEFINE GL_TEXTURE_CUBE_MAP_POSITIVE_Z &h8519
$DEFINE GL_TEXTURE_CUBE_MAP_NEGATIVE_Z &h851A
$DEFINE GL_PROXY_TEXTURE_CUBE_MAP &h851B
$DEFINE GL_MAX_CUBE_MAP_TEXTURE_SIZE &h851C
$DEFINE GL_COMPRESSED_ALPHA &h84E9
$DEFINE GL_COMPRESSED_LUMINANCE &h84EA
$DEFINE GL_COMPRESSED_LUMINANCE_ALPHA &h84EB
$DEFINE GL_COMPRESSED_INTENSITY &h84EC
$DEFINE GL_COMPRESSED_RGB &h84ED
$DEFINE GL_COMPRESSED_RGBA &h84EE
$DEFINE GL_TEXTURE_COMPRESSION_HINT &h84EF
$DEFINE GL_TEXTURE_COMPRESSED_IMAGE_SIZE &h86A0
$DEFINE GL_TEXTURE_COMPRESSED &h86A1
$DEFINE GL_NUM_COMPRESSED_TEXTURE_FORMATS &h86A2
$DEFINE GL_COMPRESSED_TEXTURE_FORMATS &h86A3
$DEFINE GL_MULTISAMPLE &h809D
$DEFINE GL_SAMPLE_ALPHA_TO_COVERAGE &h809E
$DEFINE GL_SAMPLE_ALPHA_TO_ONE &h809F
$DEFINE GL_SAMPLE_COVERAGE &h80A0
$DEFINE GL_SAMPLE_BUFFERS &h80A8
$DEFINE GL_SAMPLES &h80A9
$DEFINE GL_SAMPLE_COVERAGE_VALUE &h80AA
$DEFINE GL_SAMPLE_COVERAGE_INVERT &h80AB
$DEFINE GL_MULTISAMPLE_BIT &h20000000
$DEFINE GL_TRANSPOSE_MODELVIEW_MATRIX &h84E3
$DEFINE GL_TRANSPOSE_PROJECTION_MATRIX &h84E4
$DEFINE GL_TRANSPOSE_TEXTURE_MATRIX &h84E5
$DEFINE GL_TRANSPOSE_COLOR_MATRIX &h84E6
$DEFINE GL_COMBINE &h8570
$DEFINE GL_COMBINE_RGB &h8571
$DEFINE GL_COMBINE_ALPHA &h8572
$DEFINE GL_SOURCE0_RGB &h8580
$DEFINE GL_SOURCE1_RGB &h8581
$DEFINE GL_SOURCE2_RGB &h8582
$DEFINE GL_SOURCE0_ALPHA &h8588
$DEFINE GL_SOURCE1_ALPHA &h8589
$DEFINE GL_SOURCE2_ALPHA &h858A
$DEFINE GL_OPERAND0_RGB &h8590
$DEFINE GL_OPERAND1_RGB &h8591
$DEFINE GL_OPERAND2_RGB &h8592
$DEFINE GL_OPERAND0_ALPHA &h8598
$DEFINE GL_OPERAND1_ALPHA &h8599
$DEFINE GL_OPERAND2_ALPHA &h859A
$DEFINE GL_RGB_SCALE &h8573
$DEFINE GL_ADD_SIGNED &h8574
$DEFINE GL_INTERPOLATE &h8575
$DEFINE GL_SUBTRACT &h84E7
$DEFINE GL_CONSTANT &h8576
$DEFINE GL_PRIMARY_COLOR &h8577
$DEFINE GL_PREVIOUS &h8578
$DEFINE GL_DOT3_RGB &h86AE
$DEFINE GL_DOT3_RGBA &h86AF
$DEFINE GL_CLAMP_TO_BORDER &h812D

declare sub glClearIndex Lib "opengl32.dll" ALIAS "glClearIndex" (byval c as GLfloat)
declare sub glClearColor Lib "opengl32.dll" ALIAS "glClearColor" (byval red as GLclampf, byval green as GLclampf, byval blue as GLclampf, byval alpha as GLclampf)
declare sub glClear Lib "opengl32.dll" ALIAS "glClear" (byval mask as GLbitfield)
declare sub glIndexMask Lib "opengl32.dll" ALIAS "glIndexMask" (byval mask as GLuint)
declare sub glColorMask Lib "opengl32.dll" ALIAS "glColorMask" (byval red as GLboolean, byval green as GLboolean, byval blue as GLboolean, byval alpha as GLboolean)
declare sub glAlphaFunc Lib "opengl32.dll" ALIAS "glAlphaFunc" (byval func as GLenum, byval ref as GLclampf)
declare sub glBlendFunc Lib "opengl32.dll" ALIAS "glBlendFunc" (byval sfactor as GLenum, byval dfactor as GLenum)
declare sub glLogicOp Lib "opengl32.dll" ALIAS "glLogicOp" (byval opcode as GLenum)
declare sub glCullFace Lib "opengl32.dll" ALIAS "glCullFace" (byval mode as GLenum)
declare sub glFrontFace Lib "opengl32.dll" ALIAS "glFrontFace" (byval mode as GLenum)
declare sub glPointSize Lib "opengl32.dll" ALIAS "glPointSize" (byval size as GLfloat)
declare sub glLineWidth Lib "opengl32.dll" ALIAS "glLineWidth" (byval width as GLfloat)
declare sub glLineStipple Lib "opengl32.dll" ALIAS "glLineStipple" (byval factor as GLint, byval pattern as GLushort)
declare sub glPolygonMode Lib "opengl32.dll" ALIAS "glPolygonMode" (byval face as GLenum, byval mode as GLenum)
declare sub glPolygonOffset Lib "opengl32.dll" ALIAS "glPolygonOffset" (byval factor as GLfloat, byval units as GLfloat)
declare sub glPolygonStipple Lib "opengl32.dll" ALIAS "glPolygonStipple" (byref mask as GLubyte)
declare sub glGetPolygonStipple Lib "opengl32.dll" ALIAS "glGetPolygonStipple" (byref mask as GLubyte)
declare sub glEdgeFlag Lib "opengl32.dll" ALIAS "glEdgeFlag" (byval flag as GLboolean)
declare sub glEdgeFlagv Lib "opengl32.dll" ALIAS "glEdgeFlagv" (byref flag as GLboolean)
declare sub glScissor Lib "opengl32.dll" ALIAS "glScissor" (byval x as GLint, byval y as GLint, byval width as GLsizei, byval height as GLsizei)
declare sub glClipPlane Lib "opengl32.dll" ALIAS "glClipPlane" (byval plane as GLenum, lpEquation as long)
declare sub glGetClipPlane Lib "opengl32.dll" ALIAS "glGetClipPlane" (byval plane as GLenum, byval lpEquation as long)
declare sub glDrawBuffer Lib "opengl32.dll" ALIAS "glDrawBuffer" (byval mode as GLenum)
declare sub glReadBuffer Lib "opengl32.dll" ALIAS "glReadBuffer" (byval mode as GLenum)
declare sub glEnable Lib "opengl32.dll" ALIAS "glEnable" (byval cap as GLenum)
declare sub glDisable Lib "opengl32.dll" ALIAS "glDisable" (byval cap as GLenum)
declare function glIsEnabled Lib "opengl32.dll" ALIAS "glIsEnabled" (byval cap as GLenum) as GLboolean
declare sub glEnableClientState Lib "opengl32.dll" ALIAS "glEnableClientState" (byval cap as GLenum)
declare sub glDisableClientState Lib "opengl32.dll" ALIAS "glDisableClientState" (byval cap as GLenum)
declare sub glGetBooleanv Lib "opengl32.dll" ALIAS "glGetBooleanv" (byval pname as GLenum, byref params as GLboolean)
declare sub glGetDoublev Lib "opengl32.dll" ALIAS "glGetDoublev" (byval pname as GLenum, byval lpParams as long)
declare sub glGetFloatv Lib "opengl32.dll" ALIAS "glGetFloatv" (byval pname as GLenum, byref params as GLfloat)
declare sub glGetIntegerv Lib "opengl32.dll" ALIAS "glGetIntegerv" (byval pname as GLenum, byref params as GLint)
declare sub glPushAttrib Lib "opengl32.dll" ALIAS "glPushAttrib" (byval mask as GLbitfield)
declare sub glPopAttrib Lib "opengl32.dll" ALIAS "glPopAttrib" ()
declare sub glPushClientAttrib Lib "opengl32.dll" ALIAS "glPushClientAttrib" (byval mask as GLbitfield)
declare sub glPopClientAttrib Lib "opengl32.dll" ALIAS "glPopClientAttrib" ()
declare function glRenderMode Lib "opengl32.dll" ALIAS "glRenderMode" (byval mode as GLenum) as GLint
declare function glGetError Lib "opengl32.dll" ALIAS "glGetError" () as GLenum
declare function glGetString Lib "opengl32.dll" ALIAS "glGetString" (byval name as GLenum) as long  'zstring ptr 
declare sub glFinish Lib "opengl32.dll" ALIAS "glFinish" ()
declare sub glFlush Lib "opengl32.dll" ALIAS "glFlush" ()
declare sub glHint Lib "opengl32.dll" ALIAS "glHint" (byval target as GLenum, byval mode as GLenum)
declare sub glClearDepth Lib "opengl32.dll" ALIAS "glClearDepth" (byval depth as GLclampd)
declare sub glDepthFunc Lib "opengl32.dll" ALIAS "glDepthFunc" (byval func as GLenum)
declare sub glDepthMask Lib "opengl32.dll" ALIAS "glDepthMask" (byval flag as GLboolean)
declare sub glDepthRange Lib "opengl32.dll" ALIAS "glDepthRange" (byval near_val as GLclampd, byval far_val as GLclampd)
declare sub glClearAccum Lib "opengl32.dll" ALIAS "glClearAccum" (byval red as GLfloat, byval green as GLfloat, byval blue as GLfloat, byval alpha as GLfloat)
declare sub glAccum Lib "opengl32.dll" ALIAS "glAccum" (byval op as GLenum, byval value as GLfloat)
declare sub glMatrixMode Lib "opengl32.dll" ALIAS "glMatrixMode" (byval mode as GLenum)
declare sub glOrtho_API Lib "opengl32.dll" ALIAS "glOrtho"(left as long, l2 as long, right as long, r2 as long, bottom as long, b2 as long, top as long, t2 as long, near_val as long, n2 as long, far_val as long, f2 as long)
    SUB glOrtho (byval left as GLdouble, byval right as GLdouble,_
     byval bottom as GLdouble, byval top as GLdouble, _
     byval near_val as GLdouble, byval far_val as GLdouble)
        DEFDBL d:   DEFINT i(11)
        d = left: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = right: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = bottom: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        d = top: MemCpy (VarPtr(i(6)), VarPtr(d), 8)
        d = near_val: MemCpy (VarPtr(i(8)), VarPtr(d), 8)
        d = far_val: MemCpy (VarPtr(i(10)), VarPtr(d), 8)
    glOrtho_API(i(0), i(1), i(2), i(3), i(4), i(5), i(6), i(7), i(8), i(9), i(10), i(11))
    END SUB

declare sub glFrustum_API Lib "opengl32.dll" ALIAS "glFrustum" (left as long, l2 as long, right as long, r2 as long, bottom as long, b2 as long, top as long, t2 as long, near_val as long, n2 as long, far_val as long, f2 as long)
    SUB glFrustum (left as GLdouble, right as GLdouble, bottom as GLdouble, top as GLdouble, near_val as GLdouble, far_val as GLdouble)
        DEFDBL d:   DEFINT i(11)
        d = left: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = right: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = bottom: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        d = top: MemCpy (VarPtr(i(6)), VarPtr(d), 8)
        d = near_val: MemCpy (VarPtr(i(8)), VarPtr(d), 8)
        d = far_val: MemCpy (VarPtr(i(10)), VarPtr(d), 8)
    glFrustum_API(i(0), i(1), i(2), i(3), i(4), i(5), i(6), i(7), i(8), i(9), i(10), i(11))
    END SUB

declare sub glViewport Lib "opengl32.dll" ALIAS "glViewport" (byval x as GLint, byval y as GLint, byval width as GLsizei, byval height as GLsizei)
declare sub glPushMatrix Lib "opengl32.dll" ALIAS "glPushMatrix" ()
declare sub glPopMatrix Lib "opengl32.dll" ALIAS "glPopMatrix" ()
declare sub glLoadIdentity Lib "opengl32.dll" ALIAS "glLoadIdentity" ()
declare sub glLoadMatrixd Lib "opengl32.dll" ALIAS "glLoadMatrixd" (byref m as GLdouble)
declare sub glLoadMatrixf Lib "opengl32.dll" ALIAS "glLoadMatrixf" (byref m as GLfloat)
declare sub glMultMatrixd Lib "opengl32.dll" ALIAS "glMultMatrixd" (byref m as GLdouble)
declare sub glMultMatrixf Lib "opengl32.dll" ALIAS "glMultMatrixf" (byref m as GLfloat)
'doubles (more than 2, need to be split into 2 longs) 
declare sub glRotated_API Lib "opengl32.dll" ALIAS "glRotated" (angle as long, a2 as long, x as long, x2 as long, y as long, y2 as long, z as long, z2 as long)
    SUB glRotated(angle as GLdouble, x as GLdouble, y as GLdouble, z as GLdouble)
        DEFDBL d:   DEFINT i(7)
        d = angle: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = x: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = y: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        d = z: MemCpy (VarPtr(i(6)), VarPtr(d), 8)
        glRotated_API(i(0), i(1), i(2), i(3), i(4), i(5), i(6), i(7))
    END SUB
'most common ones 
declare sub glScaled_API Lib "opengl32.dll" ALIAS "glScaled" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long)
    SUB glScaled (byval x as GLdouble, byval y as GLdouble, byval z as GLdouble)
        DEFDBL d:   DEFINT i(5)
        d = x: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = y: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = z: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        glScaled_API(i(0), i(1), i(2), i(3), i(4), i(5))
    END SUB

declare sub glTranslated_API Lib "opengl32.dll" ALIAS "glTranslated" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long)
    SUB glTranslated (byval x as GLdouble, byval y as GLdouble, byval z as GLdouble)
        DEFDBL d:   DEFINT i(5)
        d = x: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = y: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = z: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        glTranslated_API(i(0), i(1), i(2), i(3), i(4), i(5))
    END SUB

declare sub glVertex3d_API Lib "opengl32.dll" ALIAS "glVertex3d" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long)
    SUB glVertex3d (byval x as GLdouble, byval y as GLdouble, byval z as GLdouble)
        DEFDBL d:   DEFINT i(5)
        d = x: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = y: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = z: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        glVertex3d_API(i(0), i(1), i(2), i(3), i(4), i(5))
    END SUB

declare sub glNormal3d_API Lib "opengl32.dll" ALIAS "glNormal3d" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long)
    SUB glNormal3d (byval nx as GLdouble, byval ny as GLdouble, byval nz as GLdouble)
        DEFDBL d:   DEFINT i(5)
        d = nx: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = ny: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = nz: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        glNormal3d_API(i(0), i(1), i(2), i(3), i(4), i(5))
    END SUB

declare sub glColor3d_API Lib "opengl32.dll" ALIAS "glColor3d" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long)
    SUB glColor3d (byval red as GLdouble, byval green as GLdouble, byval blue as GLdouble)
        DEFDBL d:   DEFINT i(5)
        d = red: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = green: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = blue: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        glColor3d_API(i(0), i(1), i(2), i(3), i(4), i(5))
    END SUB

declare sub glTexCoord3d_API Lib "opengl32.dll" ALIAS "glTexCoord3d" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long)
    SUB glTexCoord3d (byval s as GLdouble, byval t as GLdouble, byval r as GLdouble)
        DEFDBL d:   DEFINT i(5)
        d = s: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = t: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = r: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        glTexCoord3d_API(i(0), i(1), i(2), i(3), i(4), i(5))
    END SUB

declare sub glVertex4d_API Lib "opengl32.dll" ALIAS "glVertex4d" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long, w as long, w2 as long)
    SUB glVertex4d (byval x as GLdouble, byval y as GLdouble, byval z as GLdouble, byval w as GLdouble)
        DEFDBL d:   DEFINT i(7)
        d = x: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = y: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = z: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        d = w: MemCpy (VarPtr(i(6)), VarPtr(d), 8)
        glVertex4d_API(i(0), i(1), i(2), i(3), i(4), i(5), i(6), i(7))
    END SUB

declare sub glColor4d_API Lib "opengl32.dll" ALIAS "glColor4d" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long, w as long, w2 as long)
    SUB glColor4d (byval red as GLdouble, byval green as GLdouble, byval blue as GLdouble, byval alpha as GLdouble)
        DEFDBL d:   DEFINT i(7)
        d = red: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = green: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = blue: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        d = alpha: MemCpy (VarPtr(i(6)), VarPtr(d), 8)
        glColor4d_API(i(0), i(1), i(2), i(3), i(4), i(5), i(6), i(7))
    END SUB

declare sub glTexCoord4d_API Lib "opengl32.dll" ALIAS "glTexCoord4d" (x as long, x2 as long, y as long,y2 as long, z as long, z2 as long, w as long, w2 as long)
    SUB glTexCoord4d (byval s as GLdouble, byval t as GLdouble, byval r as GLdouble, byval q as GLdouble)
        DEFDBL d:   DEFINT i(7)
        d = s: MemCpy (VarPtr(i(0)), VarPtr(d), 8)
        d = t: MemCpy (VarPtr(i(2)), VarPtr(d), 8)
        d = r: MemCpy (VarPtr(i(4)), VarPtr(d), 8)
        d = q: MemCpy (VarPtr(i(6)), VarPtr(d), 8)
        glTexCoord4d_API(i(0), i(1), i(2), i(3), i(4), i(5), i(6), i(7))
    END SUB


'floats are ok, singles (3 or more, are passed ok) 
declare sub glRotatef Lib "opengl32.dll" ALIAS "glRotatef" (byval angle as GLfloat, byval x as GLfloat, byval y as GLfloat, byval z as GLfloat)
declare sub glScalef Lib "opengl32.dll" ALIAS "glScalef" (byval x as GLfloat, byval y as GLfloat, byval z as GLfloat)
declare sub glTranslatef Lib "opengl32.dll" ALIAS "glTranslatef" (byval x as GLfloat, byval y as GLfloat, byval z as GLfloat)
declare function glIsList Lib "opengl32.dll" ALIAS "glIsList" (byval list as GLuint) as GLboolean
declare sub glDeleteLists Lib "opengl32.dll" ALIAS "glDeleteLists" (byval list as GLuint, byval range as GLsizei)
declare function glGenLists Lib "opengl32.dll" ALIAS "glGenLists" (byval range as GLsizei) as DWORD 'GLuint 
declare sub glNewList Lib "opengl32.dll" ALIAS "glNewList" (byval list as GLuint, byval mode as GLenum)
declare sub glEndList Lib "opengl32.dll" ALIAS "glEndList"()
declare sub glCallList Lib "opengl32.dll" ALIAS "glCallList" (byval list as GLuint)
declare sub glCallLists Lib "opengl32.dll" ALIAS "glCallLists" (byval n as GLsizei, byval type as GLenum, byref lists as GLvoid)
declare sub glListBase Lib "opengl32.dll" ALIAS "glListBase" (byval base as GLuint)
declare sub glBegin Lib "opengl32.dll" ALIAS "glBegin" (byval mode as GLenum)
declare sub glEnd Lib "opengl32.dll" ALIAS "glEnd" ()
declare sub glVertex2d Lib "opengl32.dll" ALIAS "glVertex2d" (byval x as GLdouble, byval y as GLdouble)
declare sub glVertex2f_API Lib "opengl32.dll" ALIAS "glVertex2f" (byval x as Long, byval y as Long)
    sub glVertex2f (byval x as GLfloat, byval y as GLfloat)
        DEFLNG a, b
        DEFSNG a1 = x, b1 = y
        memcpy(VarPtr(a), VarPtr(a1), 4): memcpy(VarPtr(b), VarPtr(b1), 4)
        glVertex2f_API(a, b)
    end sub

declare sub glVertex2i Lib "opengl32.dll" ALIAS "glVertex2i" (byval x as GLint, byval y as GLint)
declare sub glVertex2s Lib "opengl32.dll" ALIAS "glVertex2s" (byval x as GLshort, byval y as GLshort)
declare sub glVertex3f Lib "opengl32.dll" ALIAS "glVertex3f" (byval x as GLfloat, byval y as GLfloat, byval z as GLfloat)
declare sub glVertex3i Lib "opengl32.dll" ALIAS "glVertex3i" (byval x as GLint, byval y as GLint, byval z as GLint)
declare sub glVertex3s Lib "opengl32.dll" ALIAS "glVertex3s" (byval x as GLshort, byval y as GLshort, byval z as GLshort)
declare sub glVertex4f Lib "opengl32.dll" ALIAS "glVertex4f" (byval x as GLfloat, byval y as GLfloat, byval z as GLfloat, byval w as GLfloat)
declare sub glVertex4i Lib "opengl32.dll" ALIAS "glVertex4i" (byval x as GLint, byval y as GLint, byval z as GLint, byval w as GLint)
declare sub glVertex4s Lib "opengl32.dll" ALIAS "glVertex4s" (byval x as GLshort, byval y as GLshort, byval z as GLshort, byval w as GLshort)
declare sub glVertex2dv Lib "opengl32.dll" ALIAS "glVertex2dv" (byref v as GLdouble)
declare sub glVertex2fv Lib "opengl32.dll" ALIAS "glVertex2fv" (byref v as GLfloat)
declare sub glVertex2iv Lib "opengl32.dll" ALIAS "glVertex2iv" (byref v as GLint)
declare sub glVertex2sv Lib "opengl32.dll" ALIAS "glVertex2sv" (byref v as GLshort)
declare sub glVertex3dv Lib "opengl32.dll" ALIAS "glVertex3dv" (byref v as GLdouble)
declare sub glVertex3fv Lib "opengl32.dll" ALIAS "glVertex3fv" (byref v as GLfloat)
declare sub glVertex3iv Lib "opengl32.dll" ALIAS "glVertex3iv" (byref v as GLint)
declare sub glVertex3sv Lib "opengl32.dll" ALIAS "glVertex3sv" (byref v as GLshort)
declare sub glVertex4dv Lib "opengl32.dll" ALIAS "glVertex4dv" (byref v as GLdouble)
declare sub glVertex4fv Lib "opengl32.dll" ALIAS "glVertex4fv" (byref v as GLfloat)
declare sub glVertex4iv Lib "opengl32.dll" ALIAS "glVertex4iv" (byref v as GLint)
declare sub glVertex4sv Lib "opengl32.dll" ALIAS "glVertex4sv" (byref v as GLshort)
declare sub glNormal3b Lib "opengl32.dll" ALIAS "glNormal3b" (byval nx as GLbyte, byval ny as GLbyte, byval nz as GLbyte)
declare sub glNormal3f Lib "opengl32.dll" ALIAS "glNormal3f" (byval nx as GLfloat, byval ny as GLfloat, byval nz as GLfloat)
declare sub glNormal3i Lib "opengl32.dll" ALIAS "glNormal3i" (byval nx as GLint, byval ny as GLint, byval nz as GLint)
declare sub glNormal3s Lib "opengl32.dll" ALIAS "glNormal3s" (byval nx as GLshort, byval ny as GLshort, byval nz as GLshort)
declare sub glNormal3bv Lib "opengl32.dll" ALIAS "glNormal3bv" (byref v as GLbyte)
declare sub glNormal3dv Lib "opengl32.dll" ALIAS "glNormal3dv" (byref v as GLdouble)
declare sub glNormal3fv Lib "opengl32.dll" ALIAS "glNormal3fv" (byref v as GLfloat)
declare sub glNormal3iv Lib "opengl32.dll" ALIAS "glNormal3iv" (byref v as GLint)
declare sub glNormal3sv Lib "opengl32.dll" ALIAS "glNormal3sv" (byref v as GLshort)
declare sub glIndexd Lib "opengl32.dll" ALIAS "glIndexd" (byval c as GLdouble)
declare sub glIndexf Lib "opengl32.dll" ALIAS "glIndexf" (byval c as GLfloat)
declare sub glIndexi Lib "opengl32.dll" ALIAS "glIndexi" (byval c as GLint)
declare sub glIndexs Lib "opengl32.dll" ALIAS "glIndexs" (byval c as GLshort)
declare sub glIndexub Lib "opengl32.dll" ALIAS "glIndexub" (byval c as GLubyte)
declare sub glIndexdv Lib "opengl32.dll" ALIAS "glIndexdv" (byref c as GLdouble)
declare sub glIndexfv Lib "opengl32.dll" ALIAS "glIndexfv" (byref c as GLfloat)
declare sub glIndexiv Lib "opengl32.dll" ALIAS "glIndexiv" (byref c as GLint)
declare sub glIndexsv Lib "opengl32.dll" ALIAS "glIndexsv" (byref c as GLshort)
declare sub glIndexubv Lib "opengl32.dll" ALIAS "glIndexubv" (byref c as GLubyte)
declare sub glColor3b Lib "opengl32.dll" ALIAS "glColor3b" (byval red as GLbyte, byval green as GLbyte, byval blue as GLbyte)
declare sub glColor3f Lib "opengl32.dll" ALIAS "glColor3f" (byval red as GLfloat, byval green as GLfloat, byval blue as GLfloat)
declare sub glColor3i Lib "opengl32.dll" ALIAS "glColor3i" (byval red as GLint, byval green as GLint, byval blue as GLint)
declare sub glColor3s Lib "opengl32.dll" ALIAS "glColor3s" (byval red as GLshort, byval green as GLshort, byval blue as GLshort)
declare sub glColor3ub Lib "opengl32.dll" ALIAS "glColor3ub" (byval red as GLubyte, byval green as GLubyte, byval blue as GLubyte)
declare sub glColor3ui Lib "opengl32.dll" ALIAS "glColor3ui" (byval red as GLuint, byval green as GLuint, byval blue as GLuint)
declare sub glColor3us Lib "opengl32.dll" ALIAS "glColor3us" (byval red as GLushort, byval green as GLushort, byval blue as GLushort)
declare sub glColor4b Lib "opengl32.dll" ALIAS "glColor4b" (byval red as GLbyte, byval green as GLbyte, byval blue as GLbyte, byval alpha as GLbyte)
declare sub glColor4f Lib "opengl32.dll" ALIAS "glColor4f" (byval red as GLfloat, byval green as GLfloat, byval blue as GLfloat, byval alpha as GLfloat)
declare sub glColor4i Lib "opengl32.dll" ALIAS "glColor4i" (byval red as GLint, byval green as GLint, byval blue as GLint, byval alpha as GLint)
declare sub glColor4s Lib "opengl32.dll" ALIAS "glColor4s" (byval red as GLshort, byval green as GLshort, byval blue as GLshort, byval alpha as GLshort)
declare sub glColor4ub Lib "opengl32.dll" ALIAS "glColor4ub" (byval red as GLubyte, byval green as GLubyte, byval blue as GLubyte, byval alpha as GLubyte)
declare sub glColor4ui Lib "opengl32.dll" ALIAS "glColor4ui" (byval red as GLuint, byval green as GLuint, byval blue as GLuint, byval alpha as GLuint)
declare sub glColor4us Lib "opengl32.dll" ALIAS "glColor4us" (byval red as GLushort, byval green as GLushort, byval blue as GLushort, byval alpha as GLushort)
declare sub glColor3bv Lib "opengl32.dll" ALIAS "glColor3bv" (byref v as GLbyte)
declare sub glColor3dv Lib "opengl32.dll" ALIAS "glColor3dv" (byref v as GLdouble)
declare sub glColor3fv Lib "opengl32.dll" ALIAS "glColor3fv" (byref v as GLfloat)
declare sub glColor3iv Lib "opengl32.dll" ALIAS "glColor3iv" (byref v as GLint)
declare sub glColor3sv Lib "opengl32.dll" ALIAS "glColor3sv" (byref v as GLshort)
declare sub glColor3ubv Lib "opengl32.dll" ALIAS "glColor3ubv" (byref v as GLubyte)
declare sub glColor3uiv Lib "opengl32.dll" ALIAS "glColor3uiv" (byref v as GLuint)
declare sub glColor3usv Lib "opengl32.dll" ALIAS "glColor3usv" (byref v as GLushort)
declare sub glColor4bv Lib "opengl32.dll" ALIAS "glColor4bv" (byref v as GLbyte)
declare sub glColor4dv Lib "opengl32.dll" ALIAS "glColor4dv" (byref v as GLdouble)
declare sub glColor4fv Lib "opengl32.dll" ALIAS "glColor4fv" (byref v as GLfloat)
declare sub glColor4iv Lib "opengl32.dll" ALIAS "glColor4iv" (byref v as GLint)
declare sub glColor4sv Lib "opengl32.dll" ALIAS "glColor4sv" (byref v as GLshort)
declare sub glColor4ubv Lib "opengl32.dll" ALIAS "glColor4ubv" (byref v as GLubyte)
declare sub glColor4uiv Lib "opengl32.dll" ALIAS "glColor4uiv" (byref v as GLuint)
declare sub glColor4usv Lib "opengl32.dll" ALIAS "glColor4usv" (byref v as GLushort)
declare sub glTexCoord1d Lib "opengl32.dll" ALIAS "glTexCoord1d" (byval s as GLdouble)
declare sub glTexCoord1f Lib "opengl32.dll" ALIAS "glTexCoord1f" (byval s as GLfloat)
declare sub glTexCoord1i Lib "opengl32.dll" ALIAS "glTexCoord1i" (byval s as GLint)
declare sub glTexCoord1s Lib "opengl32.dll" ALIAS "glTexCoord1s" (byval s as GLshort)
declare sub glTexCoord2d Lib "opengl32.dll" ALIAS "glTexCoord2d" (byval s as GLdouble, byval t as GLdouble)
declare sub glTexCoord2f_API Lib "opengl32.dll" ALIAS "glTexCoord2f" (s as Long, t as Long)
    sub glTexCoord2f(s as SINGLE, t as SINGLE)
        DEFLNG a, b
        DEFSNG s1 = s, t1 = t
        memcpy(VarPtr(a), VarPtr(s1), 4): memcpy(VarPtr(b), VarPtr(t1), 4)
        glTexCoord2f_API(a, b)
    end sub

declare sub glTexCoord2i Lib "opengl32.dll" ALIAS "glTexCoord2i" (byval s as GLint, byval t as GLint)
declare sub glTexCoord2s Lib "opengl32.dll" ALIAS "glTexCoord2s" (byval s as GLshort, byval t as GLshort)
declare sub glTexCoord3f Lib "opengl32.dll" ALIAS "glTexCoord3f" (byval s as GLfloat, byval t as GLfloat, byval r as GLfloat)
declare sub glTexCoord3i Lib "opengl32.dll" ALIAS "glTexCoord3i" (byval s as GLint, byval t as GLint, byval r as GLint)
declare sub glTexCoord3s Lib "opengl32.dll" ALIAS "glTexCoord3s" (byval s as GLshort, byval t as GLshort, byval r as GLshort)
declare sub glTexCoord4f Lib "opengl32.dll" ALIAS "glTexCoord4f" (byval s as GLfloat, byval t as GLfloat, byval r as GLfloat, byval q as GLfloat)
declare sub glTexCoord4i Lib "opengl32.dll" ALIAS "glTexCoord4i" (byval s as GLint, byval t as GLint, byval r as GLint, byval q as GLint)
declare sub glTexCoord4s Lib "opengl32.dll" ALIAS "glTexCoord4s" (byval s as GLshort, byval t as GLshort, byval r as GLshort, byval q as GLshort)
declare sub glTexCoord1dv Lib "opengl32.dll" ALIAS "glTexCoord1dv" (byref v as GLdouble)
declare sub glTexCoord1fv Lib "opengl32.dll" ALIAS "glTexCoord1fv" (byref v as GLfloat)
declare sub glTexCoord1iv Lib "opengl32.dll" ALIAS "glTexCoord1iv" (byref v as GLint)
declare sub glTexCoord1sv Lib "opengl32.dll" ALIAS "glTexCoord1sv" (byref v as GLshort)
declare sub glTexCoord2dv Lib "opengl32.dll" ALIAS "glTexCoord2dv" (byref v as GLdouble)
declare sub glTexCoord2fv Lib "opengl32.dll" ALIAS "glTexCoord2fv" (byref v as GLfloat)
declare sub glTexCoord2iv Lib "opengl32.dll" ALIAS "glTexCoord2iv" (byref v as GLint)
declare sub glTexCoord2sv Lib "opengl32.dll" ALIAS "glTexCoord2sv" (byref v as GLshort)
declare sub glTexCoord3dv Lib "opengl32.dll" ALIAS "glTexCoord3dv" (byref v as GLdouble)
declare sub glTexCoord3fv Lib "opengl32.dll" ALIAS "glTexCoord3fv" (byref v as GLfloat)
declare sub glTexCoord3iv Lib "opengl32.dll" ALIAS "glTexCoord3iv" (byref v as GLint)
declare sub glTexCoord3sv Lib "opengl32.dll" ALIAS "glTexCoord3sv" (byref v as GLshort)
declare sub glTexCoord4dv Lib "opengl32.dll" ALIAS "glTexCoord4dv" (byref v as GLdouble)
declare sub glTexCoord4fv Lib "opengl32.dll" ALIAS "glTexCoord4fv" (byref v as GLfloat)
declare sub glTexCoord4iv Lib "opengl32.dll" ALIAS "glTexCoord4iv" (byref v as GLint)
declare sub glTexCoord4sv Lib "opengl32.dll" ALIAS "glTexCoord4sv" (byref v as GLshort)
declare sub glRasterPos2d Lib "opengl32.dll" ALIAS "glRasterPos2d" (byval x as GLdouble, byval y as GLdouble)
declare sub glRasterPos2f_API Lib "opengl32.dll" ALIAS "glRasterPos2f" (x as Long, y as Long)
    sub glRasterPos2f (byval x as GLfloat, byval y as GLfloat)
        DEFLNG a, b
        DEFSNG a1 = x, b1 = y
        memcpy(VarPtr(a), VarPtr(a1), 4): memcpy(VarPtr(b), VarPtr(b1), 4)
        glRasterPos2f_API(a, b)
    end sub

declare sub glRasterPos2i Lib "opengl32.dll" ALIAS "glRasterPos2i" (byval x as GLint, byval y as GLint)
declare sub glRasterPos2s Lib "opengl32.dll" ALIAS "glRasterPos2s" (byval x as GLshort, byval y as GLshort)
declare sub glRasterPos3d Lib "opengl32.dll" ALIAS "glRasterPos3d" (byval x as GLdouble, byval y as GLdouble, byval z as GLdouble)
declare sub glRasterPos3f Lib "opengl32.dll" ALIAS "glRasterPos3f" (byval x as GLfloat, byval y as GLfloat, byval z as GLfloat)
declare sub glRasterPos3i Lib "opengl32.dll" ALIAS "glRasterPos3i" (byval x as GLint, byval y as GLint, byval z as GLint)
declare sub glRasterPos3s Lib "opengl32.dll" ALIAS "glRasterPos3s" (byval x as GLshort, byval y as GLshort, byval z as GLshort)
declare sub glRasterPos4d Lib "opengl32.dll" ALIAS "glRasterPos4d" (byval x as GLdouble, byval y as GLdouble, byval z as GLdouble, byval w as GLdouble)
declare sub glRasterPos4f Lib "opengl32.dll" ALIAS "glRasterPos4f" (byval x as GLfloat, byval y as GLfloat, byval z as GLfloat, byval w as GLfloat)
declare sub glRasterPos4i Lib "opengl32.dll" ALIAS "glRasterPos4i" (byval x as GLint, byval y as GLint, byval z as GLint, byval w as GLint)
declare sub glRasterPos4s Lib "opengl32.dll" ALIAS "glRasterPos4s" (byval x as GLshort, byval y as GLshort, byval z as GLshort, byval w as GLshort)
declare sub glRasterPos2dv Lib "opengl32.dll" ALIAS "glRasterPos2dv" (byref v as GLdouble)
declare sub glRasterPos2fv Lib "opengl32.dll" ALIAS "glRasterPos2fv" (byref v as GLfloat)
declare sub glRasterPos2iv Lib "opengl32.dll" ALIAS "glRasterPos2iv" (byref v as GLint)
declare sub glRasterPos2sv Lib "opengl32.dll" ALIAS "glRasterPos2sv" (byref v as GLshort)
declare sub glRasterPos3dv Lib "opengl32.dll" ALIAS "glRasterPos3dv" (byref v as GLdouble)
declare sub glRasterPos3fv Lib "opengl32.dll" ALIAS "glRasterPos3fv" (byref v as GLfloat)
declare sub glRasterPos3iv Lib "opengl32.dll" ALIAS "glRasterPos3iv" (byref v as GLint)
declare sub glRasterPos3sv Lib "opengl32.dll" ALIAS "glRasterPos3sv" (byref v as GLshort)
declare sub glRasterPos4dv Lib "opengl32.dll" ALIAS "glRasterPos4dv" (byref v as GLdouble)
declare sub glRasterPos4fv Lib "opengl32.dll" ALIAS "glRasterPos4fv" (byref v as GLfloat)
declare sub glRasterPos4iv Lib "opengl32.dll" ALIAS "glRasterPos4iv" (byref v as GLint)
declare sub glRasterPos4sv Lib "opengl32.dll" ALIAS "glRasterPos4sv" (byref v as GLshort)
declare sub glRectd Lib "opengl32.dll" ALIAS "glRectd" (byval x1 as GLdouble, byval y1 as GLdouble, byval x2 as GLdouble, byval y2 as GLdouble)
declare sub glRectf Lib "opengl32.dll" ALIAS "glRectf" (byval x1 as GLfloat, byval y1 as GLfloat, byval x2 as GLfloat, byval y2 as GLfloat)
declare sub glRecti Lib "opengl32.dll" ALIAS "glRecti" (byval x1 as GLint, byval y1 as GLint, byval x2 as GLint, byval y2 as GLint)
declare sub glRects Lib "opengl32.dll" ALIAS "glRects" (byval x1 as GLshort, byval y1 as GLshort, byval x2 as GLshort, byval y2 as GLshort)
declare sub glRectdv Lib "opengl32.dll" ALIAS "glRectdv" (byref v1 as GLdouble, byref v2 as GLdouble)
declare sub glRectfv Lib "opengl32.dll" ALIAS "glRectfv" (byref v1 as GLfloat, byref v2 as GLfloat)
declare sub glRectiv Lib "opengl32.dll" ALIAS "glRectiv" (byref v1 as GLint, byref v2 as GLint)
declare sub glRectsv Lib "opengl32.dll" ALIAS "glRectsv" (byref v1 as GLshort, byref v2 as GLshort)
declare sub glShadeModel Lib "opengl32.dll" ALIAS "glShadeModel" (byval mode as GLenum)
declare sub glLightf Lib "opengl32.dll" ALIAS "glLightf" (byval light as GLenum, byval pname as GLenum, byval param as GLfloat)
declare sub glLighti Lib "opengl32.dll" ALIAS "glLighti" (byval light as GLenum, byval pname as GLenum, byval param as GLint)
declare sub glLightfv Lib "opengl32.dll" ALIAS "glLightfv" (byval light as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glLightiv Lib "opengl32.dll" ALIAS "glLightiv" (byval light as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glGetLightfv Lib "opengl32.dll" ALIAS "glGetLightfv" (byval light as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetLightiv Lib "opengl32.dll" ALIAS "glGetLightiv" (byval light as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glLightModelf Lib "opengl32.dll" ALIAS "glLightModelf" (byval pname as GLenum, byval param as GLfloat)
declare sub glLightModeli Lib "opengl32.dll" ALIAS "glLightModeli" (byval pname as GLenum, byval param as GLint)
declare sub glLightModelfv Lib "opengl32.dll" ALIAS "glLightModelfv" (byval pname as GLenum, byref params as GLfloat)
declare sub glLightModeliv Lib "opengl32.dll" ALIAS "glLightModeliv" (byval pname as GLenum, byref params as GLint)
declare sub glMaterialf Lib "opengl32.dll" ALIAS "glMaterialf" (byval face as GLenum, byval pname as GLenum, byval param as GLfloat)
declare sub glMateriali Lib "opengl32.dll" ALIAS "glMateriali" (byval face as GLenum, byval pname as GLenum, byval param as GLint)
declare sub glMaterialfv Lib "opengl32.dll" ALIAS "glMaterialfv" (byval face as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glMaterialiv Lib "opengl32.dll" ALIAS "glMaterialiv" (byval face as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glGetMaterialfv Lib "opengl32.dll" ALIAS "glGetMaterialfv" (byval face as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetMaterialiv Lib "opengl32.dll" ALIAS "glGetMaterialiv" (byval face as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glColorMaterial Lib "opengl32.dll" ALIAS "glColorMaterial" (byval face as GLenum, byval mode as GLenum)
declare sub glPixelZoom Lib "opengl32.dll" ALIAS "glPixelZoom" (byval xfactor as GLfloat, byval yfactor as GLfloat)
declare sub glPixelStoref Lib "opengl32.dll" ALIAS "glPixelStoref" (byval pname as GLenum, byval param as GLfloat)
declare sub glPixelStorei Lib "opengl32.dll" ALIAS "glPixelStorei" (byval pname as GLenum, byval param as GLint)
declare sub glPixelTransferf Lib "opengl32.dll" ALIAS "glPixelTransferf" (byval pname as GLenum, byval param as GLfloat)
declare sub glPixelTransferi Lib "opengl32.dll" ALIAS "glPixelTransferi" (byval pname as GLenum, byval param as GLint)
declare sub glPixelMapfv Lib "opengl32.dll" ALIAS "glPixelMapfv" (byval map as GLenum, byval mapsize as GLint, byref values as GLfloat)
declare sub glPixelMapuiv Lib "opengl32.dll" ALIAS "glPixelMapuiv" (byval map as GLenum, byval mapsize as GLint, byref values as GLuint)
declare sub glPixelMapusv Lib "opengl32.dll" ALIAS "glPixelMapusv" (byval map as GLenum, byval mapsize as GLint, byref values as GLushort)
declare sub glGetPixelMapfv Lib "opengl32.dll" ALIAS "glGetPixelMapfv" (byval map as GLenum, byref values as GLfloat)
declare sub glGetPixelMapuiv Lib "opengl32.dll" ALIAS "glGetPixelMapuiv" (byval map as GLenum, byref values as GLuint)
declare sub glGetPixelMapusv Lib "opengl32.dll" ALIAS "glGetPixelMapusv" (byval map as GLenum, byref values as GLushort)
declare sub glBitmap Lib "opengl32.dll" ALIAS "glBitmap" (byval width as GLsizei, byval height as GLsizei, byval xorig as GLfloat, byval yorig as GLfloat, byval xmove as GLfloat, byval ymove as GLfloat, byref bitmap as GLubyte)
declare sub glReadPixels Lib "opengl32.dll" ALIAS "glReadPixels" (byval x as GLint, byval y as GLint, byval width as GLsizei, byval height as GLsizei, byval format as GLenum, byval type as GLenum, byref pixels as GLvoid)
declare sub glDrawPixels Lib "opengl32.dll" ALIAS "glDrawPixels" (byval width as GLsizei, byval height as GLsizei, byval format as GLenum, byval type as GLenum, byref pixels as GLvoid)
declare sub glCopyPixels Lib "opengl32.dll" ALIAS "glCopyPixels" (byval x as GLint, byval y as GLint, byval width as GLsizei, byval height as GLsizei, byval type as GLenum)
declare sub glStencilFunc Lib "opengl32.dll" ALIAS "glStencilFunc" (byval func as GLenum, byval ref as GLint, byval mask as GLuint)
declare sub glStencilMask Lib "opengl32.dll" ALIAS "glStencilMask" (byval mask as GLuint)
declare sub glStencilOp Lib "opengl32.dll" ALIAS "glStencilOp" (byval fail as GLenum, byval zfail as GLenum, byval zpass as GLenum)
declare sub glClearStencil Lib "opengl32.dll" ALIAS "glClearStencil" (byval s as GLint)
declare sub glTexGend Lib "opengl32.dll" ALIAS "glTexGend" (byval coord as GLenum, byval pname as GLenum, byval param as GLdouble)
declare sub glTexGenf Lib "opengl32.dll" ALIAS "glTexGenf" (byval coord as GLenum, byval pname as GLenum, byval param as GLfloat)
declare sub glTexGeni Lib "opengl32.dll" ALIAS "glTexGeni" (byval coord as GLenum, byval pname as GLenum, byval param as GLint)
declare sub glTexGendv Lib "opengl32.dll" ALIAS "glTexGendv" (byval coord as GLenum, byval pname as GLenum, byref params as GLdouble)
declare sub glTexGenfv Lib "opengl32.dll" ALIAS "glTexGenfv" (byval coord as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glTexGeniv Lib "opengl32.dll" ALIAS "glTexGeniv" (byval coord as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glGetTexGendv Lib "opengl32.dll" ALIAS "glGetTexGendv" (byval coord as GLenum, byval pname as GLenum, byref params as GLdouble)
declare sub glGetTexGenfv Lib "opengl32.dll" ALIAS "glGetTexGenfv" (byval coord as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetTexGeniv Lib "opengl32.dll" ALIAS "glGetTexGeniv" (byval coord as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glTexEnvf Lib "opengl32.dll" ALIAS "glTexEnvf" (byval target as GLenum, byval pname as GLenum, byval param as GLfloat)
declare sub glTexEnvi Lib "opengl32.dll" ALIAS "glTexEnvi" (byval target as GLenum, byval pname as GLenum, byval param as GLint)
declare sub glTexEnvfv Lib "opengl32.dll" ALIAS "glTexEnvfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glTexEnviv Lib "opengl32.dll" ALIAS "glTexEnviv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glGetTexEnvfv Lib "opengl32.dll" ALIAS "glGetTexEnvfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetTexEnviv Lib "opengl32.dll" ALIAS "glGetTexEnviv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glTexParameterf Lib "opengl32.dll" ALIAS "glTexParameterf" (byval target as GLenum, byval pname as GLenum, byval param as GLfloat)
declare sub glTexParameteri Lib "opengl32.dll" ALIAS "glTexParameteri" (byval target as GLenum, byval pname as GLenum, byval param as GLint)
declare sub glTexParameterfv Lib "opengl32.dll" ALIAS "glTexParameterfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glTexParameteriv Lib "opengl32.dll" ALIAS "glTexParameteriv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glGetTexParameterfv Lib "opengl32.dll" ALIAS "glGetTexParameterfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetTexParameteriv Lib "opengl32.dll" ALIAS "glGetTexParameteriv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glGetTexLevelParameterfv Lib "opengl32.dll" ALIAS "glGetTexLevelParameterfv" (byval target as GLenum, byval level as GLint, byval pname as GLenum, byref params as GLfloat)
declare sub glGetTexLevelParameteriv Lib "opengl32.dll" ALIAS "glGetTexLevelParameteriv" (byval target as GLenum, byval level as GLint, byval pname as GLenum, byref params as GLint)
declare sub glTexImage1D Lib "opengl32.dll" ALIAS "glTexImage1D" (byval target as GLenum, byval level as GLint, byval internalFormat as GLint, byval width as GLsizei, byval border as GLint, byval format as GLenum, byval type as GLenum, byref pixels as GLvoid)
declare sub glTexImage2D Lib "opengl32.dll" ALIAS "glTexImage2D" (byval target as GLenum, byval level as GLint, byval internalFormat as GLint, byval width as GLsizei, byval height as GLsizei, byval border as GLint, byval format as GLenum, byval type as GLenum, byval lpPixels AS GLvoid)
declare sub glGetTexImage Lib "opengl32.dll" ALIAS "glGetTexImage" (byval target as GLenum, byval level as GLint, byval format as GLenum, byval type as GLenum, byval lpPixels as GLvoid)
declare sub glMap1d Lib "opengl32.dll" ALIAS "glMap1d" (byval target as GLenum, byval u1 as GLdouble, byval u2 as GLdouble, byval stride as GLint, byval order as GLint, byref points as GLdouble)
declare sub glMap1f Lib "opengl32.dll" ALIAS "glMap1f" (byval target as GLenum, byval u1 as GLfloat, byval u2 as GLfloat, byval stride as GLint, byval order as GLint, byref points as GLfloat)
declare sub glMap2d Lib "opengl32.dll" ALIAS "glMap2d" (byval target as GLenum, byval u1 as GLdouble, byval u2 as GLdouble, byval ustride as GLint, byval uorder as GLint, byval v1 as GLdouble, byval v2 as GLdouble, byval vstride as GLint, byval vorder as GLint, byref points as GLdouble)
declare sub glMap2f_API Lib "opengl32.dll" ALIAS "glMap2f" (target as GLenum, u as long, u1 as long, ustride as GLint, uorder as GLint, v1 as long, v2 as long, vstride as GLint, byval vorder as GLint, lppoints as long) 'byref points as GLfloat) 
    sub glMap2f (byval target as GLenum, byval u1 as GLfloat, byval u2 as GLfloat, byval ustride as GLint, byval uorder as GLint, byval v1 as GLfloat, byval v2 as GLfloat, byval vstride as GLint, byval vorder as GLint, lppoints as long)
        DEFLNG a, b, c, d
        DEFSNG a1 = u1, b1 = u2, c1 = v1, d1 = v2
        memcpy(VarPtr(a), VarPtr(a1), 4)
        memcpy(VarPtr(b), VarPtr(b1), 4)
        memcpy(VarPtr(c), VarPtr(c1), 4)
        memcpy(VarPtr(d), VarPtr(d1), 4)
        glMap2f_API(target, a, b, ustride, uorder, c, d, vstride, vorder, lppoints)
    end sub

declare sub glGetMapdv Lib "opengl32.dll" ALIAS "glGetMapdv" (byval target as GLenum, byval query as GLenum, byref v as GLdouble)
declare sub glGetMapfv Lib "opengl32.dll" ALIAS "glGetMapfv" (byval target as GLenum, byval query as GLenum, byref v as GLfloat)
declare sub glGetMapiv Lib "opengl32.dll" ALIAS "glGetMapiv" (byval target as GLenum, byval query as GLenum, byref v as GLint)
declare sub glEvalCoord1d Lib "opengl32.dll" ALIAS "glEvalCoord1d" (byval u as GLdouble)
declare sub glEvalCoord1f Lib "opengl32.dll" ALIAS "glEvalCoord1f" (byval u as GLfloat)
declare sub glEvalCoord1dv Lib "opengl32.dll" ALIAS "glEvalCoord1dv" (byref u as GLdouble)
declare sub glEvalCoord1fv Lib "opengl32.dll" ALIAS "glEvalCoord1fv" (byref u as GLfloat)
declare sub glEvalCoord2d Lib "opengl32.dll" ALIAS "glEvalCoord2d" (byval u as GLdouble, byval v as GLdouble)
declare sub glEvalCoord2f_API Lib "opengl32.dll" ALIAS "glEvalCoord2f" (byval u as long, byval v as long)
    sub glEvalCoord2f (byval x as GLfloat, byval y as GLfloat)
        DEFLNG a, b
        DEFSNG a1 = x, b1 = y
        memcpy(VarPtr(a), VarPtr(a1), 4): memcpy(VarPtr(b), VarPtr(b1), 4)
        glEvalCoord2f_API(a, b)
    end sub

declare sub glEvalCoord2dv Lib "opengl32.dll" ALIAS "glEvalCoord2dv" (byref u as GLdouble)
declare sub glEvalCoord2fv Lib "opengl32.dll" ALIAS "glEvalCoord2fv" (byref u as GLfloat)
declare sub glMapGrid1d Lib "opengl32.dll" ALIAS "glMapGrid1d" (byval un as GLint, byval u1 as GLdouble, byval u2 as GLdouble)
declare sub glMapGrid1f Lib "opengl32.dll" ALIAS "glMapGrid1f" (byval un as GLint, byval u1 as GLfloat, byval u2 as GLfloat)
declare sub glMapGrid2d Lib "opengl32.dll" ALIAS "glMapGrid2d" (byval un as GLint, byval u1 as GLdouble, byval u2 as GLdouble, byval vn as GLint, byval v1 as GLdouble, byval v2 as GLdouble)
declare sub glMapGrid2f Lib "opengl32.dll" ALIAS "glMapGrid2f" (byval un as GLint, byval u1 as GLfloat, byval u2 as GLfloat, byval vn as GLint, byval v1 as GLfloat, byval v2 as GLfloat)
declare sub glEvalPoint1 Lib "opengl32.dll" ALIAS "glEvalPoint1" (byval i as GLint)
declare sub glEvalPoint2 Lib "opengl32.dll" ALIAS "glEvalPoint2" (byval i as GLint, byval j as GLint)
declare sub glEvalMesh1 Lib "opengl32.dll" ALIAS "glEvalMesh1" (byval mode as GLenum, byval i1 as GLint, byval i2 as GLint)
declare sub glEvalMesh2 Lib "opengl32.dll" ALIAS "glEvalMesh2" (byval mode as GLenum, byval i1 as GLint, byval i2 as GLint, byval j1 as GLint, byval j2 as GLint)
declare sub glFogf_API Lib "opengl32.dll" ALIAS "glFogf" (byval pname as GLenum, param as Long)
    sub glFogf (pname as GLenum, param as GLfloat)
        DEFLNG a
        DEFSNG a1 = param
        memcpy(VarPtr(a), VarPtr(a1), 4)
        glFogf_API(pname, a)
    end sub
declare sub glFogi Lib "opengl32.dll" ALIAS "glFogi" (byval pname as GLenum, byval param as GLint)
declare sub glFogfv Lib "opengl32.dll" ALIAS "glFogfv" (byval pname as GLenum, byref params as GLfloat)
declare sub glFogiv Lib "opengl32.dll" ALIAS "glFogiv" (byval pname as GLenum, byref params as GLint)
declare sub glFeedbackBuffer Lib "opengl32.dll" ALIAS "glFeedbackBuffer" (byval size as GLsizei, byval type as GLenum, byref buffer as GLfloat)
declare sub glPassThrough Lib "opengl32.dll" ALIAS "glPassThrough" (byval token as GLfloat)
declare sub glSelectBuffer Lib "opengl32.dll" ALIAS "glSelectBuffer" (byval size as GLsizei, byref buffer as GLuint)
declare sub glInitNames Lib "opengl32.dll" ALIAS "glInitNames" ()
declare sub glLoadName Lib "opengl32.dll" ALIAS "glLoadName" (byval name as GLuint)
declare sub glPushName Lib "opengl32.dll" ALIAS "glPushName" (byval name as GLuint)
declare sub glPopName Lib "opengl32.dll" ALIAS "glPopName" ()
declare sub glGenTextures Lib "opengl32.dll" ALIAS "glGenTextures" (byval n as GLsizei, byref textures as GLuint)
declare sub glDeleteTextures Lib "opengl32.dll" ALIAS "glDeleteTextures" (byval n as GLsizei, byref textures as GLuint)
declare sub glBindTexture Lib "opengl32.dll" ALIAS "glBindTexture" (byval target as GLenum, byval texture as GLuint)
declare sub glPrioritizeTextures Lib "opengl32.dll" ALIAS "glPrioritizeTextures" (byval n as GLsizei, byref textures as GLuint, byref priorities as GLclampf)
declare function glAreTexturesResident Lib "opengl32.dll" ALIAS "glAreTexturesResident" (byval n as GLsizei, byref textures as GLuint, byref residences as GLboolean) as GLboolean
declare function glIsTexture Lib "opengl32.dll" ALIAS "glIsTexture" (byval texture as GLuint) as GLboolean
declare sub glTexSubImage1D Lib "opengl32.dll" ALIAS "glTexSubImage1D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval width as GLsizei, byval format as GLenum, byval type as GLenum, byref pixels as GLvoid)
declare sub glTexSubImage2D Lib "opengl32.dll" ALIAS "glTexSubImage2D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval yoffset as GLint, byval width as GLsizei, byval height as GLsizei, byval format as GLenum, byval type as GLenum, byref pixels as GLvoid)
declare sub glCopyTexImage1D Lib "opengl32.dll" ALIAS "glCopyTexImage1D" (byval target as GLenum, byval level as GLint, byval internalformat as GLenum, byval x as GLint, byval y as GLint, byval width as GLsizei, byval border as GLint)
declare sub glCopyTexImage2D Lib "opengl32.dll" ALIAS "glCopyTexImage2D" (byval target as GLenum, byval level as GLint, byval internalformat as GLenum, byval x as GLint, byval y as GLint, byval width as GLsizei, byval height as GLsizei, byval border as GLint)
declare sub glCopyTexSubImage1D Lib "opengl32.dll" ALIAS "glCopyTexSubImage1D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval x as GLint, byval y as GLint, byval width as GLsizei)
declare sub glCopyTexSubImage2D Lib "opengl32.dll" ALIAS "glCopyTexSubImage2D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval yoffset as GLint, byval x as GLint, byval y as GLint, byval width as GLsizei, byval height as GLsizei)
declare sub glVertexPointer Lib "opengl32.dll" ALIAS "glVertexPointer" (byval size as GLint, byval type as GLenum, byval stride as GLsizei, byref ptr as GLvoid)
declare sub glNormalPointer Lib "opengl32.dll" ALIAS "glNormalPointer" (byval type as GLenum, byval stride as GLsizei, byref ptr as GLvoid)
declare sub glColorPointer Lib "opengl32.dll" ALIAS "glColorPointer" (byval size as GLint, byval type as GLenum, byval stride as GLsizei, byref ptr as GLvoid)
declare sub glIndexPointer Lib "opengl32.dll" ALIAS "glIndexPointer" (byval type as GLenum, byval stride as GLsizei, byref ptr as GLvoid)
declare sub glTexCoordPointer Lib "opengl32.dll" ALIAS "glTexCoordPointer" (byval size as GLint, byval type as GLenum, byval stride as GLsizei, byref ptr as GLvoid)
declare sub glEdgeFlagPointer Lib "opengl32.dll" ALIAS "glEdgeFlagPointer" (byval stride as GLsizei, byref ptr as GLvoid)
declare sub glGetPointerv Lib "opengl32.dll" ALIAS "glGetPointerv" (byval pname as GLenum, Byref lplpParams as GLvoid)
declare sub glArrayElement Lib "opengl32.dll" ALIAS "glArrayElement" (byval i as GLint)
declare sub glDrawArrays Lib "opengl32.dll" ALIAS "glDrawArrays" (byval mode as GLenum, byval first as GLint, byval count as GLsizei)
declare sub glDrawElements Lib "opengl32.dll" ALIAS "glDrawElements" (byval mode as GLenum, byval count as GLsizei, byval type as GLenum, byref indices as GLvoid)
declare sub glInterleavedArrays Lib "opengl32.dll" ALIAS "glInterleavedArrays" (byval format as GLenum, byval stride as GLsizei, byref pointer as GLvoid)
declare sub glDrawRangeElements Lib "opengl32.dll" ALIAS "glDrawRangeElements" (byval mode as GLenum, byval start as GLuint, byval end as GLuint, byval count as GLsizei, byval type as GLenum, byref indices as GLvoid)
declare sub glTexImage3D Lib "opengl32.dll" ALIAS "glTexImage3D" (byval target as GLenum, byval level as GLint, byval internalFormat as GLenum, byval width as GLsizei, byval height as GLsizei, byval depth as GLsizei, byval border as GLint, byval format as GLenum, byval type as GLenum, byref pixels as GLvoid)
declare sub glTexSubImage3D Lib "opengl32.dll" ALIAS "glTexSubImage3D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval yoffset as GLint, byval zoffset as GLint, byval width as GLsizei, byval height as GLsizei, byval depth as GLsizei, byval format as GLenum, byval type as GLenum, byref pixels as GLvoid)
declare sub glCopyTexSubImage3D Lib "opengl32.dll" ALIAS "glCopyTexSubImage3D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval yoffset as GLint, byval zoffset as GLint, byval x as GLint, byval y as GLint, byval width as GLsizei, byval height as GLsizei)
declare sub glColorTable Lib "opengl32.dll" ALIAS "glColorTable" (byval target as GLenum, byval internalformat as GLenum, byval width as GLsizei, byval format as GLenum, byval type as GLenum, byref table as GLvoid)
declare sub glColorSubTable Lib "opengl32.dll" ALIAS "glColorSubTable" (byval target as GLenum, byval start as GLsizei, byval count as GLsizei, byval format as GLenum, byval type as GLenum, byref data as GLvoid)
declare sub glColorTableParameteriv Lib "opengl32.dll" ALIAS "glColorTableParameteriv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glColorTableParameterfv Lib "opengl32.dll" ALIAS "glColorTableParameterfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glCopyColorSubTable Lib "opengl32.dll" ALIAS "glCopyColorSubTable" (byval target as GLenum, byval start as GLsizei, byval x as GLint, byval y as GLint, byval width as GLsizei)
declare sub glCopyColorTable Lib "opengl32.dll" ALIAS "glCopyColorTable" (byval target as GLenum, byval internalformat as GLenum, byval x as GLint, byval y as GLint, byval width as GLsizei)
declare sub glGetColorTable Lib "opengl32.dll" ALIAS "glGetColorTable" (byval target as GLenum, byval format as GLenum, byval type as GLenum, byref table as GLvoid)
declare sub glGetColorTableParameterfv Lib "opengl32.dll" ALIAS "glGetColorTableParameterfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetColorTableParameteriv Lib "opengl32.dll" ALIAS "glGetColorTableParameteriv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glBlendEquation Lib "opengl32.dll" ALIAS "glBlendEquation" (byval mode as GLenum)
declare sub glBlendColor Lib "opengl32.dll" ALIAS "glBlendColor" (byval red as GLclampf, byval green as GLclampf, byval blue as GLclampf, byval alpha as GLclampf)
declare sub glHistogram Lib "opengl32.dll" ALIAS "glHistogram" (byval target as GLenum, byval width as GLsizei, byval internalformat as GLenum, byval sink as GLboolean)
declare sub glResetHistogram Lib "opengl32.dll" ALIAS "glResetHistogram" (byval target as GLenum)
declare sub glGetHistogram Lib "opengl32.dll" ALIAS "glGetHistogram" (byval target as GLenum, byval reset as GLboolean, byval format as GLenum, byval type as GLenum, byref values as GLvoid)
declare sub glGetHistogramParameterfv Lib "opengl32.dll" ALIAS "glGetHistogramParameterfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetHistogramParameteriv Lib "opengl32.dll" ALIAS "glGetHistogramParameteriv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glMinmax Lib "opengl32.dll" ALIAS "glMinmax" (byval target as GLenum, byval internalformat as GLenum, byval sink as GLboolean)
declare sub glResetMinmax Lib "opengl32.dll" ALIAS "glResetMinmax" (byval target as GLenum)
declare sub glGetMinmax Lib "opengl32.dll" ALIAS "glGetMinmax" (byval target as GLenum, byval reset as GLboolean, byval format as GLenum, byval types as GLenum, byref values as GLvoid)
declare sub glGetMinmaxParameterfv Lib "opengl32.dll" ALIAS "glGetMinmaxParameterfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetMinmaxParameteriv Lib "opengl32.dll" ALIAS "glGetMinmaxParameteriv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glConvolutionFilter1D Lib "opengl32.dll" ALIAS "glConvolutionFilter1D" (byval target as GLenum, byval internalformat as GLenum, byval width as GLsizei, byval format as GLenum, byval type as GLenum, byref image as GLvoid)
declare sub glConvolutionFilter2D Lib "opengl32.dll" ALIAS "glConvolutionFilter2D" (byval target as GLenum, byval internalformat as GLenum, byval width as GLsizei, byval height as GLsizei, byval format as GLenum, byval type as GLenum, byref image as GLvoid)
declare sub glConvolutionParameterf Lib "opengl32.dll" ALIAS "glConvolutionParameterf" (byval target as GLenum, byval pname as GLenum, byval params as GLfloat)
declare sub glConvolutionParameterfv Lib "opengl32.dll" ALIAS "glConvolutionParameterfv"  (byval target as GLenum, byval pname as GLenum, byval params as GLfloat)
declare sub glConvolutionParameteri Lib "opengl32.dll" ALIAS "glConvolutionParameteri" (byval target as GLenum, byval pname as GLenum, byval params as GLint)
declare sub glConvolutionParameteriv Lib "opengl32.dll" ALIAS "glConvolutionParameteriv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glCopyConvolutionFilter1D Lib "opengl32.dll" ALIAS "glCopyConvolutionFilter1D" (byval target as GLenum, byval internalformat as GLenum, byval x as GLint, byval y as GLint, byval width as GLsizei)
declare sub glCopyConvolutionFilter2D Lib "opengl32.dll" ALIAS "glCopyConvolutionFilter2D" (byval target as GLenum, byval internalformat as GLenum, byval x as GLint, byval y as GLint, byval width as GLsizei, byval height as GLsizei)
declare sub glGetConvolutionFilter Lib "opengl32.dll" ALIAS "glGetConvolutionFilter" (byval target as GLenum, byval format as GLenum, byval type as GLenum, byref image as GLvoid)
declare sub glGetConvolutionParameterfv Lib "opengl32.dll" ALIAS "glGetConvolutionParameterfv" (byval target as GLenum, byval pname as GLenum, byref params as GLfloat)
declare sub glGetConvolutionParameteriv Lib "opengl32.dll" ALIAS "glGetConvolutionParameteriv" (byval target as GLenum, byval pname as GLenum, byref params as GLint)
declare sub glSeparableFilter2D Lib "opengl32.dll" ALIAS "glSeparableFilter2D" (byval target as GLenum, byval internalformat as GLenum, byval width as GLsizei, byval height as GLsizei, byval format as GLenum, byval type as GLenum, byref row as GLvoid, byref column as GLvoid)
declare sub glGetSeparableFilter Lib "opengl32.dll" ALIAS "glGetSeparableFilter" (byval target as GLenum, byval format as GLenum, byval type as GLenum, byref row as GLvoid, byref column as GLvoid, byref span as GLvoid)
declare sub glActiveTexture Lib "opengl32.dll" ALIAS "glActiveTexture" (byval texture as GLenum)
declare sub glClientActiveTexture Lib "opengl32.dll" ALIAS "glClientActiveTexture" (byval texture as GLenum)
declare sub glCompressedTexImage1D Lib "opengl32.dll" ALIAS "glCompressedTexImage1D" (byval target as GLenum, byval level as GLint, byval internalformat as GLenum, byval width as GLsizei, byval border as GLint, byval imageSize as GLsizei, byref data as GLvoid)
declare sub glCompressedTexImage2D Lib "opengl32.dll" ALIAS "glCompressedTexImage2D" (byval target as GLenum, byval level as GLint, byval internalformat as GLenum, byval width as GLsizei, byval height as GLsizei, byval border as GLint, byval imageSize as GLsizei, byref data as GLvoid)
declare sub glCompressedTexImage3D Lib "opengl32.dll" ALIAS "glCompressedTexImage3D" (byval target as GLenum, byval level as GLint, byval internalformat as GLenum, byval width as GLsizei, byval height as GLsizei, byval depth as GLsizei, byval border as GLint, byval imageSize as GLsizei, byref data as GLvoid)
declare sub glCompressedTexSubImage1D Lib "opengl32.dll" ALIAS "glCompressedTexSubImage1D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval width as GLsizei, byval format as GLenum, byval imageSize as GLsizei, byref data as GLvoid)
declare sub glCompressedTexSubImage2D Lib "opengl32.dll" ALIAS "glCompressedTexSubImage2D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval yoffset as GLint, byval width as GLsizei, byval height as GLsizei, byval format as GLenum, byval imageSize as GLsizei, byref data as GLvoid)
declare sub glCompressedTexSubImage3D Lib "opengl32.dll" ALIAS "glCompressedTexSubImage3D" (byval target as GLenum, byval level as GLint, byval xoffset as GLint, byval yoffset as GLint, byval zoffset as GLint, byval width as GLsizei, byval height as GLsizei, byval depth as GLsizei, byval format as GLenum, byval imageSize as GLsizei, byref data as GLvoid)
declare sub glGetCompressedTexImage Lib "opengl32.dll" ALIAS "glGetCompressedTexImage" (byval target as GLenum, byval lod as GLint, byref img as GLvoid)
declare sub glMultiTexCoord1d Lib "opengl32.dll" ALIAS "glMultiTexCoord1d" (byval target as GLenum, byval s as GLdouble)
declare sub glMultiTexCoord1dv Lib "opengl32.dll" ALIAS "glMultiTexCoord1dv" (byval target as GLenum, byref v as GLdouble)
declare sub glMultiTexCoord1f Lib "opengl32.dll" ALIAS "glMultiTexCoord1f" (byval target as GLenum, byval s as GLfloat)
declare sub glMultiTexCoord1fv Lib "opengl32.dll" ALIAS "glMultiTexCoord1fv" (byval target as GLenum, byref v as GLfloat)
declare sub glMultiTexCoord1i Lib "opengl32.dll" ALIAS "glMultiTexCoord1i" (byval target as GLenum, byval s as GLint)
declare sub glMultiTexCoord1iv Lib "opengl32.dll" ALIAS "glMultiTexCoord1iv" (byval target as GLenum, byref v as GLint)
declare sub glMultiTexCoord1s Lib "opengl32.dll" ALIAS "glMultiTexCoord1s" (byval target as GLenum, byval s as GLshort)
declare sub glMultiTexCoord1sv Lib "opengl32.dll" ALIAS "glMultiTexCoord1sv" (byval target as GLenum, byref v as GLshort)
declare sub glMultiTexCoord2d Lib "opengl32.dll" ALIAS "glMultiTexCoord2d" (byval target as GLenum, byval s as GLdouble, byval t as GLdouble)
declare sub glMultiTexCoord2dv Lib "opengl32.dll" ALIAS "glMultiTexCoord2dv" (byval target as GLenum, byref v as GLdouble)
declare sub glMultiTexCoord2f_API Lib "opengl32.dll" ALIAS "glMultiTexCoord2f" (target as GLenum, s as long, t as long)
    sub glMultiTexCoord2f (byval target as GLenum, byval s as GLfloat, byval t as GLfloat)
        DEFLNG a, b
        DEFSNG a1 = s, b1 = t
        memcpy(VarPtr(a), VarPtr(a1), 4): memcpy(VarPtr(b), VarPtr(b1), 4)
        glMultiTexCoord2f_API(target, a, b)
    end sub
declare sub glMultiTexCoord2fv Lib "opengl32.dll" ALIAS "glMultiTexCoord2fv" (byval target as GLenum, byref v as GLfloat)
declare sub glMultiTexCoord2i Lib "opengl32.dll" ALIAS "glMultiTexCoord2i" (byval target as GLenum, byval s as GLint, byval t as GLint)
declare sub glMultiTexCoord2iv Lib "opengl32.dll" ALIAS "glMultiTexCoord2iv" (byval target as GLenum, byref v as GLint)
declare sub glMultiTexCoord2s Lib "opengl32.dll" ALIAS "glMultiTexCoord2s" (byval target as GLenum, byval s as GLshort, byval t as GLshort)
declare sub glMultiTexCoord2sv Lib "opengl32.dll" ALIAS "glMultiTexCoord2sv" (byval target as GLenum, byref v as GLshort)
declare sub glMultiTexCoord3d Lib "opengl32.dll" ALIAS "glMultiTexCoord3d" (byval target as GLenum, byval s as GLdouble, byval t as GLdouble, byval r as GLdouble)
declare sub glMultiTexCoord3dv Lib "opengl32.dll" ALIAS "glMultiTexCoord3dv" (byval target as GLenum, byref v as GLdouble)
declare sub glMultiTexCoord3f Lib "opengl32.dll" ALIAS "glMultiTexCoord3f" (byval target as GLenum, byval s as GLfloat, byval t as GLfloat, byval r as GLfloat)
declare sub glMultiTexCoord3fv Lib "opengl32.dll" ALIAS "glMultiTexCoord3fv" (byval target as GLenum, byref v as GLfloat)
declare sub glMultiTexCoord3i Lib "opengl32.dll" ALIAS "glMultiTexCoord3i" (byval target as GLenum, byval s as GLint, byval t as GLint, byval r as GLint)
declare sub glMultiTexCoord3iv Lib "opengl32.dll" ALIAS "glMultiTexCoord3iv" (byval target as GLenum, byref v as GLint)
declare sub glMultiTexCoord3s Lib "opengl32.dll" ALIAS "glMultiTexCoord3s" (byval target as GLenum, byval s as GLshort, byval t as GLshort, byval r as GLshort)
declare sub glMultiTexCoord3sv Lib "opengl32.dll" ALIAS "glMultiTexCoord3sv" (byval target as GLenum, byref v as GLshort)
declare sub glMultiTexCoord4d Lib "opengl32.dll" ALIAS "glMultiTexCoord4d" (byval target as GLenum, byval s as GLdouble, byval t as GLdouble, byval r as GLdouble, byval q as GLdouble)
declare sub glMultiTexCoord4dv Lib "opengl32.dll" ALIAS "glMultiTexCoord4dv" (byval target as GLenum, byref v as GLdouble)
declare sub glMultiTexCoord4f Lib "opengl32.dll" ALIAS "glMultiTexCoord4f" (byval target as GLenum, byval s as GLfloat, byval t as GLfloat, byval r as GLfloat, byval q as GLfloat)
declare sub glMultiTexCoord4fv Lib "opengl32.dll" ALIAS "glMultiTexCoord4fv" (byval target as GLenum, byref v as GLfloat)
declare sub glMultiTexCoord4i Lib "opengl32.dll" ALIAS "glMultiTexCoord4i" (byval target as GLenum, byval s as GLint, byval t as GLint, byval r as GLint, byval q as GLint)
declare sub glMultiTexCoord4iv Lib "opengl32.dll" ALIAS "glMultiTexCoord4iv" (byval target as GLenum, byref v as GLint)
declare sub glMultiTexCoord4s Lib "opengl32.dll" ALIAS "glMultiTexCoord4s" (byval target as GLenum, byval s as GLshort, byval t as GLshort, byval r as GLshort, byval q as GLshort)
declare sub glMultiTexCoord4sv Lib "opengl32.dll" ALIAS "glMultiTexCoord4sv" (byval target as GLenum, byref v as GLshort)
declare sub glLoadTransposeMatrixd Lib "opengl32.dll" ALIAS "glLoadTransposeMatrixd" (byref m as GLdouble)
declare sub glLoadTransposeMatrixf Lib "opengl32.dll" ALIAS "glLoadTransposeMatrixf" (byref m as GLfloat)
declare sub glMultTransposeMatrixd Lib "opengl32.dll" ALIAS "glMultTransposeMatrixd" (byref m as GLdouble)
declare sub glMultTransposeMatrixf Lib "opengl32.dll" ALIAS "glMultTransposeMatrixf" (byref m as GLfloat)
declare sub glSampleCoverage Lib "opengl32.dll" ALIAS "glSampleCoverage" (byval value as GLclampf, byval invert as GLboolean)
declare sub glSamplePass Lib "opengl32.dll" ALIAS "glSamplePass" (byval pass as GLenum)

$EndIf