#include-once ;most functions untested... #Region - vars ;/* Boolean values */ Global Const $GL_FALSE = 0x0 Global Const $GL_TRUE = 0x1 ;/* Data types */ Global Const $GL_BYTE = 0x1400 Global Const $GL_UNSIGNED_BYTE = 0x1401 Global Const $GL_SHORT = 0x1402 Global Const $GL_UNSIGNED_SHORT = 0x1403 Global Const $GL_INT = 0x1404 Global Const $GL_UNSIGNED_INT = 0x1405 Global Const $GL_FLOAT = 0x1406 Global Const $GL_DOUBLE = 0x140A Global Const $GL_2_BYTES = 0x1407 Global Const $GL_3_BYTES = 0x1408 Global Const $GL_4_BYTES = 0x1409 ;/* Primitives */ Global Const $GL_POINTS = 0x0000 Global Const $GL_LINES = 0x0001 Global Const $GL_LINE_LOOP = 0x0002 Global Const $GL_LINE_STRIP = 0x0003 Global Const $GL_TRIANGLES = 0x0004 Global Const $GL_TRIANGLE_STRIP = 0x0005 Global Const $GL_TRIANGLE_FAN = 0x0006 Global Const $GL_QUADS = 0x0007 Global Const $GL_QUAD_STRIP = 0x0008 Global Const $GL_POLYGON = 0x0009 ;/* Vertex Arrays */ Global Const $GL_VERTEX_ARRAY = 0x8074 Global Const $GL_NORMAL_ARRAY = 0x8075 Global Const $GL_COLOR_ARRAY = 0x8076 Global Const $GL_INDEX_ARRAY = 0x8077 Global Const $GL_TEXTURE_COORD_ARRAY = 0x8078 Global Const $GL_EDGE_FLAG_ARRAY = 0x8079 Global Const $GL_VERTEX_ARRAY_SIZE = 0x807A Global Const $GL_VERTEX_ARRAY_TYPE = 0x807B Global Const $GL_VERTEX_ARRAY_STRIDE = 0x807C Global Const $GL_NORMAL_ARRAY_TYPE = 0x807E Global Const $GL_NORMAL_ARRAY_STRIDE = 0x807F Global Const $GL_COLOR_ARRAY_SIZE = 0x8081 Global Const $GL_COLOR_ARRAY_TYPE = 0x8082 Global Const $GL_COLOR_ARRAY_STRIDE = 0x8083 Global Const $GL_INDEX_ARRAY_TYPE = 0x8085 Global Const $GL_INDEX_ARRAY_STRIDE = 0x8086 Global Const $GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088 Global Const $GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089 Global Const $GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A Global Const $GL_EDGE_FLAG_ARRAY_STRIDE = 0x808C Global Const $GL_VERTEX_ARRAY_POINTER = 0x808E Global Const $GL_NORMAL_ARRAY_POINTER = 0x808F Global Const $GL_COLOR_ARRAY_POINTER = 0x8090 Global Const $GL_INDEX_ARRAY_POINTER = 0x8091 Global Const $GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092 Global Const $GL_EDGE_FLAG_ARRAY_POINTER = 0x8093 Global Const $GL_V2F = 0x2A20 Global Const $GL_V3F = 0x2A21 Global Const $GL_C4UB_V2F = 0x2A22 Global Const $GL_C4UB_V3F = 0x2A23 Global Const $GL_C3F_V3F = 0x2A24 Global Const $GL_N3F_V3F = 0x2A25 Global Const $GL_C4F_N3F_V3F = 0x2A26 Global Const $GL_T2F_V3F = 0x2A27 Global Const $GL_T4F_V4F = 0x2A28 Global Const $GL_T2F_C4UB_V3F = 0x2A29 Global Const $GL_T2F_C3F_V3F = 0x2A2A Global Const $GL_T2F_N3F_V3F = 0x2A2B Global Const $GL_T2F_C4F_N3F_V3F = 0x2A2C Global Const $GL_T4F_C4F_N3F_V4F = 0x2A2D ;/* Matrix Mode */ Global Const $GL_MATRIX_MODE = 0x0BA0 Global Const $GL_MODELVIEW = 0x1700 Global Const $GL_PROJECTION = 0x1701 Global Const $GL_TEXTURE = 0x1702 ;/* Points */ Global Const $GL_POINT_SMOOTH = 0x0B10 Global Const $GL_POINT_SIZE = 0x0B11 Global Const $GL_POINT_SIZE_GRANULARITY = 0x0B13 Global Const $GL_POINT_SIZE_RANGE = 0x0B12 ;/* Lines */ Global Const $GL_LINE_SMOOTH = 0x0B20 Global Const $GL_LINE_STIPPLE = 0x0B24 Global Const $GL_LINE_STIPPLE_PATTERN = 0x0B25 Global Const $GL_LINE_STIPPLE_REPEAT = 0x0B26 Global Const $GL_LINE_WIDTH = 0x0B21 Global Const $GL_LINE_WIDTH_GRANULARITY = 0x0B23 Global Const $GL_LINE_WIDTH_RANGE = 0x0B22 ;/* Polygons */ Global Const $GL_POINT = 0x1B00 Global Const $GL_LINE = 0x1B01 Global Const $GL_FILL = 0x1B02 Global Const $GL_CW = 0x0900 Global Const $GL_CCW = 0x0901 Global Const $GL_FRONT = 0x0404 Global Const $GL_BACK = 0x0405 Global Const $GL_POLYGON_MODE = 0x0B40 Global Const $GL_POLYGON_SMOOTH = 0x0B41 Global Const $GL_POLYGON_STIPPLE = 0x0B42 Global Const $GL_EDGE_FLAG = 0x0B43 Global Const $GL_CULL_FACE = 0x0B44 Global Const $GL_CULL_FACE_MODE = 0x0B45 Global Const $GL_FRONT_FACE = 0x0B46 Global Const $GL_POLYGON_OFFSET_FACTOR = 0x8038 Global Const $GL_POLYGON_OFFSET_UNITS = 0x2A00 Global Const $GL_POLYGON_OFFSET_POINT = 0x2A01 Global Const $GL_POLYGON_OFFSET_LINE = 0x2A02 Global Const $GL_POLYGON_OFFSET_FILL = 0x8037 ;/* Display Lists */ Global Const $GL_COMPILE = 0x1300 Global Const $GL_COMPILE_AND_EXECUTE = 0x1301 Global Const $GL_LIST_BASE = 0x0B32 Global Const $GL_LIST_INDEX = 0x0B33 Global Const $GL_LIST_MODE = 0x0B30 ;/* Depth buffer */ Global Const $GL_NEVER = 0x0200 Global Const $GL_LESS = 0x0201 Global Const $GL_EQUAL = 0x0202 Global Const $GL_LEQUAL = 0x0203 Global Const $GL_GREATER = 0x0204 Global Const $GL_NOTEQUAL = 0x0205 Global Const $GL_GEQUAL = 0x0206 Global Const $GL_ALWAYS = 0x0207 Global Const $GL_DEPTH_TEST = 0x0B71 Global Const $GL_DEPTH_BITS = 0x0D56 Global Const $GL_DEPTH_CLEAR_VALUE = 0x0B73 Global Const $GL_DEPTH_FUNC = 0x0B74 Global Const $GL_DEPTH_RANGE = 0x0B70 Global Const $GL_DEPTH_WRITEMASK = 0x0B72 Global Const $GL_DEPTH_COMPONENT = 0x1902 ;/* Lighting */ Global Const $GL_LIGHTING = 0x0B50 Global Const $GL_LIGHT0 = 0x4000 Global Const $GL_LIGHT1 = 0x4001 Global Const $GL_LIGHT2 = 0x4002 Global Const $GL_LIGHT3 = 0x4003 Global Const $GL_LIGHT4 = 0x4004 Global Const $GL_LIGHT5 = 0x4005 Global Const $GL_LIGHT6 = 0x4006 Global Const $GL_LIGHT7 = 0x4007 Global Const $GL_SPOT_EXPONENT = 0x1205 Global Const $GL_SPOT_CUTOFF = 0x1206 Global Const $GL_CONSTANT_ATTENUATION = 0x1207 Global Const $GL_LINEAR_ATTENUATION = 0x1208 Global Const $GL_QUADRATIC_ATTENUATION = 0x1209 Global Const $GL_AMBIENT = 0x1200 Global Const $GL_DIFFUSE = 0x1201 Global Const $GL_SPECULAR = 0x1202 Global Const $GL_SHININESS = 0x1601 Global Const $GL_EMISSION = 0x1600 Global Const $GL_POSITION = 0x1203 Global Const $GL_SPOT_DIRECTION = 0x1204 Global Const $GL_AMBIENT_AND_DIFFUSE = 0x1602 Global Const $GL_COLOR_INDEXES = 0x1603 Global Const $GL_LIGHT_MODEL_TWO_SIDE = 0x0B52 Global Const $GL_LIGHT_MODEL_LOCAL_VIEWER = 0x0B51 Global Const $GL_LIGHT_MODEL_AMBIENT = 0x0B53 Global Const $GL_FRONT_AND_BACK = 0x0408 Global Const $GL_SHADE_MODEL = 0x0B54 Global Const $GL_FLAT = 0x1D00 Global Const $GL_SMOOTH = 0x1D01 Global Const $GL_COLOR_MATERIAL = 0x0B57 Global Const $GL_COLOR_MATERIAL_FACE = 0x0B55 Global Const $GL_COLOR_MATERIAL_PARAMETER = 0x0B56 Global Const $GL_NORMALIZE = 0x0BA1 ;/* User clipping planes */ Global Const $GL_CLIP_PLANE0 = 0x3000 Global Const $GL_CLIP_PLANE1 = 0x3001 Global Const $GL_CLIP_PLANE2 = 0x3002 Global Const $GL_CLIP_PLANE3 = 0x3003 Global Const $GL_CLIP_PLANE4 = 0x3004 Global Const $GL_CLIP_PLANE5 = 0x3005 ;/* Accumulation buffer */ Global Const $GL_ACCUM_RED_BITS = 0x0D58 Global Const $GL_ACCUM_GREEN_BITS = 0x0D59 Global Const $GL_ACCUM_BLUE_BITS = 0x0D5A Global Const $GL_ACCUM_ALPHA_BITS = 0x0D5B Global Const $GL_ACCUM_CLEAR_VALUE = 0x0B80 Global Const $GL_ACCUM = 0x0100 Global Const $GL_ADD = 0x0104 Global Const $GL_LOAD = 0x0101 Global Const $GL_MULT = 0x0103 Global Const $GL_RETURN = 0x0102 ;/* Alpha testing */ Global Const $GL_ALPHA_TEST = 0x0BC0 Global Const $GL_ALPHA_TEST_REF = 0x0BC2 Global Const $GL_ALPHA_TEST_FUNC = 0x0BC1 ;/* Blending */ Global Const $GL_BLEND = 0x0BE2 Global Const $GL_BLEND_SRC = 0x0BE1 Global Const $GL_BLEND_DST = 0x0BE0 Global Const $GL_ZERO = 0x0 Global Const $GL_ONE = 0x1 Global Const $GL_SRC_COLOR = 0x0300 Global Const $GL_ONE_MINUS_SRC_COLOR = 0x0301 Global Const $GL_SRC_ALPHA = 0x0302 Global Const $GL_ONE_MINUS_SRC_ALPHA = 0x0303 Global Const $GL_DST_ALPHA = 0x0304 Global Const $GL_ONE_MINUS_DST_ALPHA = 0x0305 Global Const $GL_DST_COLOR = 0x0306 Global Const $GL_ONE_MINUS_DST_COLOR = 0x0307 Global Const $GL_SRC_ALPHA_SATURATE = 0x0308 Global Const $GL_CONSTANT_COLOR = 0x8001 Global Const $GL_ONE_MINUS_CONSTANT_COLOR = 0x8002 Global Const $GL_CONSTANT_ALPHA = 0x8003 Global Const $GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004 ;/* Render Mode */ Global Const $GL_FEEDBACK = 0x1C01 Global Const $GL_RENDER = 0x1C00 Global Const $GL_SELECT = 0x1C02 ;/* Feedback */ Global Const $GL_2D = 0x0600 Global Const $GL_3D = 0x0601 Global Const $GL_3D_COLOR = 0x0602 Global Const $GL_3D_COLOR_TEXTURE = 0x0603 Global Const $GL_4D_COLOR_TEXTURE = 0x0604 Global Const $GL_POINT_TOKEN = 0x0701 Global Const $GL_LINE_TOKEN = 0x0702 Global Const $GL_LINE_RESET_TOKEN = 0x0707 Global Const $GL_POLYGON_TOKEN = 0x0703 Global Const $GL_BITMAP_TOKEN = 0x0704 Global Const $GL_DRAW_PIXEL_TOKEN = 0x0705 Global Const $GL_COPY_PIXEL_TOKEN = 0x0706 Global Const $GL_PASS_THROUGH_TOKEN = 0x0700 Global Const $GL_FEEDBACK_BUFFER_POINTER = 0x0DF0 Global Const $GL_FEEDBACK_BUFFER_SIZE = 0x0DF1 Global Const $GL_FEEDBACK_BUFFER_TYPE = 0x0DF2 ;/* Selection */ Global Const $GL_SELECTION_BUFFER_POINTER = 0x0DF3 Global Const $GL_SELECTION_BUFFER_SIZE = 0x0DF4 ;/* Fog */ Global Const $GL_FOG = 0x0B60 Global Const $GL_FOG_MODE = 0x0B65 Global Const $GL_FOG_DENSITY = 0x0B62 Global Const $GL_FOG_COLOR = 0x0B66 Global Const $GL_FOG_INDEX = 0x0B61 Global Const $GL_FOG_START = 0x0B63 Global Const $GL_FOG_END = 0x0B64 Global Const $GL_LINEAR = 0x2601 Global Const $GL_EXP = 0x0800 Global Const $GL_EXP2 = 0x0801 ;/* Logic Ops */ Global Const $GL_LOGIC_OP = 0x0BF1 Global Const $GL_INDEX_LOGIC_OP = 0x0BF1 Global Const $GL_COLOR_LOGIC_OP = 0x0BF2 Global Const $GL_LOGIC_OP_MODE = 0x0BF0 Global Const $GL_CLEAR = 0x1500 Global Const $GL_SET = 0x150F Global Const $GL_COPY = 0x1503 Global Const $GL_COPY_INVERTED = 0x150C Global Const $GL_NOOP = 0x1505 Global Const $GL_INVERT = 0x150A Global Const $GL_AND = 0x1501 Global Const $GL_NAND = 0x150E Global Const $GL_OR = 0x1507 Global Const $GL_NOR = 0x1508 Global Const $GL_XOR = 0x1506 Global Const $GL_EQUIV = 0x1509 Global Const $GL_AND_REVERSE = 0x1502 Global Const $GL_AND_INVERTED = 0x1504 Global Const $GL_OR_REVERSE = 0x150B Global Const $GL_OR_INVERTED = 0x150D ;/* Stencil */ Global Const $GL_STENCIL_TEST = 0x0B90 Global Const $GL_STENCIL_WRITEMASK = 0x0B98 Global Const $GL_STENCIL_BITS = 0x0D57 Global Const $GL_STENCIL_FUNC = 0x0B92 Global Const $GL_STENCIL_VALUE_MASK = 0x0B93 Global Const $GL_STENCIL_REF = 0x0B97 Global Const $GL_STENCIL_FAIL = 0x0B94 Global Const $GL_STENCIL_PASS_DEPTH_PASS = 0x0B96 Global Const $GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95 Global Const $GL_STENCIL_CLEAR_VALUE = 0x0B91 Global Const $GL_STENCIL_INDEX = 0x1901 Global Const $GL_KEEP = 0x1E00 Global Const $GL_REPLACE = 0x1E01 Global Const $GL_INCR = 0x1E02 Global Const $GL_DECR = 0x1E03 ;/* Buffers, Pixel Drawing/Reading */ Global Const $GL_NONE = 0x0 Global Const $GL_LEFT = 0x0406 Global Const $GL_RIGHT = 0x0407 ;/*GL_FRONT = 0x0404 */ ;/*GL_BACK = 0x0405 */ ;/*GL_FRONT_AND_BACK = 0x0408 */ Global Const $GL_FRONT_LEFT = 0x0400 Global Const $GL_FRONT_RIGHT = 0x0401 Global Const $GL_BACK_LEFT = 0x0402 Global Const $GL_BACK_RIGHT = 0x0403 Global Const $GL_AUX0 = 0x0409 Global Const $GL_AUX1 = 0x040A Global Const $GL_AUX2 = 0x040B Global Const $GL_AUX3 = 0x040C Global Const $GL_COLOR_INDEX = 0x1900 Global Const $GL_RED = 0x1903 Global Const $GL_GREEN = 0x1904 Global Const $GL_BLUE = 0x1905 Global Const $GL_ALPHA = 0x1906 Global Const $GL_LUMINANCE = 0x1909 Global Const $GL_LUMINANCE_ALPHA = 0x190A Global Const $GL_ALPHA_BITS = 0x0D55 Global Const $GL_RED_BITS = 0x0D52 Global Const $GL_GREEN_BITS = 0x0D53 Global Const $GL_BLUE_BITS = 0x0D54 Global Const $GL_INDEX_BITS = 0x0D51 Global Const $GL_SUBPIXEL_BITS = 0x0D50 Global Const $GL_AUX_BUFFERS = 0x0C00 Global Const $GL_READ_BUFFER = 0x0C02 Global Const $GL_DRAW_BUFFER = 0x0C01 Global Const $GL_DOUBLEBUFFER = 0x0C32 Global Const $GL_STEREO = 0x0C33 Global Const $GL_BITMAP = 0x1A00 Global Const $GL_COLOR = 0x1800 Global Const $GL_DEPTH = 0x1801 Global Const $GL_STENCIL = 0x1802 Global Const $GL_DITHER = 0x0BD0 Global Const $GL_RGB = 0x1907 Global Const $GL_RGBA = 0x1908 ;/* Implementation limits */ Global Const $GL_MAX_LIST_NESTING = 0x0B31 Global Const $GL_MAX_ATTRIB_STACK_DEPTH = 0x0D35 Global Const $GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36 Global Const $GL_MAX_NAME_STACK_DEPTH = 0x0D37 Global Const $GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38 Global Const $GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39 Global Const $GL_MAX_EVAL_ORDER = 0x0D30 Global Const $GL_MAX_LIGHTS = 0x0D31 Global Const $GL_MAX_CLIP_PLANES = 0x0D32 Global Const $GL_MAX_TEXTURE_SIZE = 0x0D33 Global Const $GL_MAX_PIXEL_MAP_TABLE = 0x0D34 Global Const $GL_MAX_VIEWPORT_DIMS = 0x0D3A Global Const $GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B ;/* Gets */ Global Const $GL_ATTRIB_STACK_DEPTH = 0x0BB0 Global Const $GL_CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1 Global Const $GL_COLOR_CLEAR_VALUE = 0x0C22 Global Const $GL_COLOR_WRITEMASK = 0x0C23 Global Const $GL_CURRENT_INDEX = 0x0B01 Global Const $GL_CURRENT_COLOR = 0x0B00 Global Const $GL_CURRENT_NORMAL = 0x0B02 Global Const $GL_CURRENT_RASTER_COLOR = 0x0B04 Global Const $GL_CURRENT_RASTER_DISTANCE = 0x0B09 Global Const $GL_CURRENT_RASTER_INDEX = 0x0B05 Global Const $GL_CURRENT_RASTER_POSITION = 0x0B07 Global Const $GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06 Global Const $GL_CURRENT_RASTER_POSITION_VALID = 0x0B08 Global Const $GL_CURRENT_TEXTURE_COORDS = 0x0B03 Global Const $GL_INDEX_CLEAR_VALUE = 0x0C20 Global Const $GL_INDEX_MODE = 0x0C30 Global Const $GL_INDEX_WRITEMASK = 0x0C21 Global Const $GL_MODELVIEW_MATRIX = 0x0BA6 Global Const $GL_MODELVIEW_STACK_DEPTH = 0x0BA3 Global Const $GL_NAME_STACK_DEPTH = 0x0D70 Global Const $GL_PROJECTION_MATRIX = 0x0BA7 Global Const $GL_PROJECTION_STACK_DEPTH = 0x0BA4 Global Const $GL_RENDER_MODE = 0x0C40 Global Const $GL_RGBA_MODE = 0x0C31 Global Const $GL_TEXTURE_MATRIX = 0x0BA8 Global Const $GL_TEXTURE_STACK_DEPTH = 0x0BA5 Global Const $GL_VIEWPORT = 0x0BA2 ;/* Evaluators */ Global Const $GL_AUTO_NORMAL = 0x0D80 Global Const $GL_MAP1_COLOR_4 = 0x0D90 Global Const $GL_MAP1_GRID_DOMAIN = 0x0DD0 Global Const $GL_MAP1_GRID_SEGMENTS = 0x0DD1 Global Const $GL_MAP1_INDEX = 0x0D91 Global Const $GL_MAP1_NORMAL = 0x0D92 Global Const $GL_MAP1_TEXTURE_COORD_1 = 0x0D93 Global Const $GL_MAP1_TEXTURE_COORD_2 = 0x0D94 Global Const $GL_MAP1_TEXTURE_COORD_3 = 0x0D95 Global Const $GL_MAP1_TEXTURE_COORD_4 = 0x0D96 Global Const $GL_MAP1_VERTEX_3 = 0x0D97 Global Const $GL_MAP1_VERTEX_4 = 0x0D98 Global Const $GL_MAP2_COLOR_4 = 0x0DB0 Global Const $GL_MAP2_GRID_DOMAIN = 0x0DD2 Global Const $GL_MAP2_GRID_SEGMENTS = 0x0DD3 Global Const $GL_MAP2_INDEX = 0x0DB1 Global Const $GL_MAP2_NORMAL = 0x0DB2 Global Const $GL_MAP2_TEXTURE_COORD_1 = 0x0DB3 Global Const $GL_MAP2_TEXTURE_COORD_2 = 0x0DB4 Global Const $GL_MAP2_TEXTURE_COORD_3 = 0x0DB5 Global Const $GL_MAP2_TEXTURE_COORD_4 = 0x0DB6 Global Const $GL_MAP2_VERTEX_3 = 0x0DB7 Global Const $GL_MAP2_VERTEX_4 = 0x0DB8 Global Const $GL_COEFF = 0x0A00 Global Const $GL_DOMAIN = 0x0A02 Global Const $GL_ORDER = 0x0A01 ;/* Hints */ Global Const $GL_FOG_HINT = 0x0C54 Global Const $GL_LINE_SMOOTH_HINT = 0x0C52 Global Const $GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50 Global Const $GL_POINT_SMOOTH_HINT = 0x0C51 Global Const $GL_POLYGON_SMOOTH_HINT = 0x0C53 Global Const $GL_DONT_CARE = 0x1100 Global Const $GL_FASTEST = 0x1101 Global Const $GL_NICEST = 0x1102 ;/* Scissor box */ Global Const $GL_SCISSOR_TEST = 0x0C11 Global Const $GL_SCISSOR_BOX = 0x0C10 ;/* Pixel Mode / Transfer */ Global Const $GL_MAP_COLOR = 0x0D10 Global Const $GL_MAP_STENCIL = 0x0D11 Global Const $GL_INDEX_SHIFT = 0x0D12 Global Const $GL_INDEX_OFFSET = 0x0D13 Global Const $GL_RED_SCALE = 0x0D14 Global Const $GL_RED_BIAS = 0x0D15 Global Const $GL_GREEN_SCALE = 0x0D18 Global Const $GL_GREEN_BIAS = 0x0D19 Global Const $GL_BLUE_SCALE = 0x0D1A Global Const $GL_BLUE_BIAS = 0x0D1B Global Const $GL_ALPHA_SCALE = 0x0D1C Global Const $GL_ALPHA_BIAS = 0x0D1D Global Const $GL_DEPTH_SCALE = 0x0D1E Global Const $GL_DEPTH_BIAS = 0x0D1F Global Const $GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1 Global Const $GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0 Global Const $GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2 Global Const $GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3 Global Const $GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4 Global Const $GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5 Global Const $GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6 Global Const $GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7 Global Const $GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8 Global Const $GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9 Global Const $GL_PIXEL_MAP_S_TO_S = 0x0C71 Global Const $GL_PIXEL_MAP_I_TO_I = 0x0C70 Global Const $GL_PIXEL_MAP_I_TO_R = 0x0C72 Global Const $GL_PIXEL_MAP_I_TO_G = 0x0C73 Global Const $GL_PIXEL_MAP_I_TO_B = 0x0C74 Global Const $GL_PIXEL_MAP_I_TO_A = 0x0C75 Global Const $GL_PIXEL_MAP_R_TO_R = 0x0C76 Global Const $GL_PIXEL_MAP_G_TO_G = 0x0C77 Global Const $GL_PIXEL_MAP_B_TO_B = 0x0C78 Global Const $GL_PIXEL_MAP_A_TO_A = 0x0C79 Global Const $GL_PACK_ALIGNMENT = 0x0D05 Global Const $GL_PACK_LSB_FIRST = 0x0D01 Global Const $GL_PACK_ROW_LENGTH = 0x0D02 Global Const $GL_PACK_SKIP_PIXELS = 0x0D04 Global Const $GL_PACK_SKIP_ROWS = 0x0D03 Global Const $GL_PACK_SWAP_BYTES = 0x0D00 Global Const $GL_UNPACK_ALIGNMENT = 0x0CF5 Global Const $GL_UNPACK_LSB_FIRST = 0x0CF1 Global Const $GL_UNPACK_ROW_LENGTH = 0x0CF2 Global Const $GL_UNPACK_SKIP_PIXELS = 0x0CF4 Global Const $GL_UNPACK_SKIP_ROWS = 0x0CF3 Global Const $GL_UNPACK_SWAP_BYTES = 0x0CF0 Global Const $GL_ZOOM_X = 0x0D16 Global Const $GL_ZOOM_Y = 0x0D17 ;/* Texture mapping */ Global Const $GL_TEXTURE_ENV = 0x2300 Global Const $GL_TEXTURE_ENV_MODE = 0x2200 Global Const $GL_TEXTURE_1D = 0x0DE0 Global Const $GL_TEXTURE_2D = 0x0DE1 Global Const $GL_TEXTURE_WRAP_S = 0x2802 Global Const $GL_TEXTURE_WRAP_T = 0x2803 Global Const $GL_TEXTURE_MAG_FILTER = 0x2800 Global Const $GL_TEXTURE_MIN_FILTER = 0x2801 Global Const $GL_TEXTURE_ENV_COLOR = 0x2201 Global Const $GL_TEXTURE_GEN_S = 0x0C60 Global Const $GL_TEXTURE_GEN_T = 0x0C61 Global Const $GL_TEXTURE_GEN_MODE = 0x2500 Global Const $GL_TEXTURE_BORDER_COLOR = 0x1004 Global Const $GL_TEXTURE_WIDTH = 0x1000 Global Const $GL_TEXTURE_HEIGHT = 0x1001 Global Const $GL_TEXTURE_BORDER = 0x1005 Global Const $GL_TEXTURE_COMPONENTS = 0x1003 Global Const $GL_TEXTURE_RED_SIZE = 0x805C Global Const $GL_TEXTURE_GREEN_SIZE = 0x805D Global Const $GL_TEXTURE_BLUE_SIZE = 0x805E Global Const $GL_TEXTURE_ALPHA_SIZE = 0x805F Global Const $GL_TEXTURE_LUMINANCE_SIZE = 0x8060 Global Const $GL_TEXTURE_INTENSITY_SIZE = 0x8061 Global Const $GL_NEAREST_MIPMAP_NEAREST = 0x2700 Global Const $GL_NEAREST_MIPMAP_LINEAR = 0x2702 Global Const $GL_LINEAR_MIPMAP_NEAREST = 0x2701 Global Const $GL_LINEAR_MIPMAP_LINEAR = 0x2703 Global Const $GL_OBJECT_LINEAR = 0x2401 Global Const $GL_OBJECT_PLANE = 0x2501 Global Const $GL_EYE_LINEAR = 0x2400 Global Const $GL_EYE_PLANE = 0x2502 Global Const $GL_SPHERE_MAP = 0x2402 Global Const $GL_DECAL = 0x2101 Global Const $GL_MODULATE = 0x2100 Global Const $GL_NEAREST = 0x2600 Global Const $GL_REPEAT = 0x2901 Global Const $GL_CLAMP = 0x2900 Global Const $GL_S = 0x2000 Global Const $GL_T = 0x2001 Global Const $GL_R = 0x2002 Global Const $GL_Q = 0x2003 Global Const $GL_TEXTURE_GEN_R = 0x0C62 Global Const $GL_TEXTURE_GEN_Q = 0x0C63 ;/* Utility */ Global Const $GL_VENDOR = 0x1F00 Global Const $GL_RENDERER = 0x1F01 Global Const $GL_VERSION = 0x1F02 Global Const $GL_EXTENSIONS = 0x1F03 ;/* Errors */ Global Const $GL_NO_ERROR = 0x0 Global Const $GL_INVALID_VALUE = 0x0501 Global Const $GL_INVALID_ENUM = 0x0500 Global Const $GL_INVALID_OPERATION = 0x0502 Global Const $GL_STACK_OVERFLOW = 0x0503 Global Const $GL_STACK_UNDERFLOW = 0x0504 Global Const $GL_OUT_OF_MEMORY = 0x0505 ;/* glPush/PopAttrib bits */ Global Const $GL_CURRENT_BIT = 0x00000001 Global Const $GL_POINT_BIT = 0x00000002 Global Const $GL_LINE_BIT = 0x00000004 Global Const $GL_POLYGON_BIT = 0x00000008 Global Const $GL_POLYGON_STIPPLE_BIT = 0x00000010 Global Const $GL_PIXEL_MODE_BIT = 0x00000020 Global Const $GL_LIGHTING_BIT = 0x00000040 Global Const $GL_FOG_BIT = 0x00000080 Global Const $GL_DEPTH_BUFFER_BIT = 0x00000100 Global Const $GL_ACCUM_BUFFER_BIT = 0x00000200 Global Const $GL_STENCIL_BUFFER_BIT = 0x00000400 Global Const $GL_VIEWPORT_BIT = 0x00000800 Global Const $GL_TRANSFORM_BIT = 0x00001000 Global Const $GL_ENABLE_BIT = 0x00002000 Global Const $GL_COLOR_BUFFER_BIT = 0x00004000 Global Const $GL_HINT_BIT = 0x00008000 Global Const $GL_EVAL_BIT = 0x00010000 Global Const $GL_LIST_BIT = 0x00020000 Global Const $GL_TEXTURE_BIT = 0x00040000 Global Const $GL_SCISSOR_BIT = 0x00080000 Global Const $GL_ALL_ATTRIB_BITS = 0x000FFFFF ;/* OpenGL 1.1 */ Global Const $GL_PROXY_TEXTURE_1D = 0x8063 Global Const $GL_PROXY_TEXTURE_2D = 0x8064 Global Const $GL_TEXTURE_PRIORITY = 0x8066 Global Const $GL_TEXTURE_RESIDENT = 0x8067 Global Const $GL_TEXTURE_BINDING_1D = 0x8068 Global Const $GL_TEXTURE_BINDING_2D = 0x8069 Global Const $GL_TEXTURE_INTERNAL_FORMAT = 0x1003 Global Const $GL_ALPHA4 = 0x803B Global Const $GL_ALPHA8 = 0x803C Global Const $GL_ALPHA12 = 0x803D Global Const $GL_ALPHA16 = 0x803E Global Const $GL_LUMINANCE4 = 0x803F Global Const $GL_LUMINANCE8 = 0x8040 Global Const $GL_LUMINANCE12 = 0x8041 Global Const $GL_LUMINANCE16 = 0x8042 Global Const $GL_LUMINANCE4_ALPHA4 = 0x8043 Global Const $GL_LUMINANCE6_ALPHA2 = 0x8044 Global Const $GL_LUMINANCE8_ALPHA8 = 0x8045 Global Const $GL_LUMINANCE12_ALPHA4 = 0x8046 Global Const $GL_LUMINANCE12_ALPHA12 = 0x8047 Global Const $GL_LUMINANCE16_ALPHA16 = 0x8048 Global Const $GL_INTENSITY = 0x8049 Global Const $GL_INTENSITY4 = 0x804A Global Const $GL_INTENSITY8 = 0x804B Global Const $GL_INTENSITY12 = 0x804C Global Const $GL_INTENSITY16 = 0x804D Global Const $GL_R3_G3_B2 = 0x2A10 Global Const $GL_RGB4 = 0x804F Global Const $GL_RGB5 = 0x8050 Global Const $GL_RGB8 = 0x8051 Global Const $GL_RGB10 = 0x8052 Global Const $GL_RGB12 = 0x8053 Global Const $GL_RGB16 = 0x8054 Global Const $GL_RGBA2 = 0x8055 Global Const $GL_RGBA4 = 0x8056 Global Const $GL_RGB5_A1 = 0x8057 Global Const $GL_RGBA8 = 0x8058 Global Const $GL_RGB10_A2 = 0x8059 Global Const $GL_RGBA12 = 0x805A Global Const $GL_RGBA16 = 0x805B Global Const $GL_CLIENT_PIXEL_STORE_BIT = 0x00000001 Global Const $GL_CLIENT_VERTEX_ARRAY_BIT = 0x00000002 Global Const $GL_ALL_CLIENT_ATTRIB_BITS = 0xFFFFFFFF Global Const $GL_CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF #EndRegion #cs typedef unsigned int GLenum; typedef unsigned char GLboolean; typedef unsigned int GLbitfield; typedef void GLvoid; typedef signed char GLbyte; /* 1-byte signed */ typedef short GLshort; /* 2-byte signed */ typedef int GLint; /* 4-byte signed */ typedef unsigned char GLubyte; /* 1-byte unsigned */ typedef unsigned short GLushort; /* 2-byte unsigned */ typedef unsigned int GLuint; /* 4-byte unsigned */ typedef int GLsizei; /* 4-byte signed */ typedef float GLfloat; /* single precision float */ typedef float GLclampf; /* single precision float in [0,1] */ typedef double GLdouble; /* double precision float */ typedef double GLclampd; /* double precision float in [0,1] */ #ce Func _SwapBuffers( $hdc) Local $ret = DllCall( 'gdi32.dll', 'int', 'SwapBuffers', _ 'hwnd', $hdc) Return $ret[0] EndFunc #Region - render context stuff #Region - vars ;~ http://msdn.microsoft.com/en-us/library/ms537569(VS.85).aspx Global Const $tagPIXELFORMATDESCRIPTOR = 'ushort nSize;ushort nVersion;dword dwFlags;' & _ 'byte iPixelType;byte cColorBits;byte cRedBits;byte cRedShift;byte cGreenBits;' & _ 'byte cGreenShift;byte cBlueBits;byte cBlueShift;byte cAlphaBits;byte cAlphaShift;' & _ 'byte cAccumBits;byte cAccumRedBits;byte cAccumGreenBits;byte cAccumBlueBits;' & _ 'byte cAccumAlphaBits;byte cDepthBits;byte cStencilBits;byte cAuxBuffers;' & _ 'byte iLayerType;byte bReserved;dword dwLayerMask;dword dwVisibleMask;dword dwDamageMask' Global Const $PFD_TYPE_RGBA = 0 Global Const $PFD_TYPE_COLORINDEX = 1 Global Const $PFD_MAIN_PLANE = 0 Global Const $PFD_OVERLAY_PLANE = 1 Global Const $PFD_UNDERLAY_PLANE = (-1) Global Const $PFD_DOUBLEBUFFER = 1 Global Const $PFD_STEREO = 2 Global Const $PFD_DRAW_TO_WINDOW = 4 Global Const $PFD_DRAW_TO_BITMAP = 8 Global Const $PFD_SUPPORT_GDI = 16 Global Const $PFD_SUPPORT_OPENGL = 32 Global Const $PFD_GENERIC_FORMAT = 64 Global Const $PFD_NEED_PALETTE = 128 Global Const $PFD_NEED_SYSTEM_PALETTE = 0x00000100 Global Const $PFD_SWAP_EXCHANGE = 0x00000200 Global Const $PFD_SWAP_COPY = 0x00000400 Global Const $PFD_SWAP_LAYER_BUFFERS = 0x00000800 Global Const $PFD_GENERIC_ACCELERATED = 0x00001000 Global Const $PFD_DEPTH_DONTCARE = 0x20000000 Global Const $PFD_DOUBLEBUFFER_DONTCARE = 0x40000000 Global Const $PFD_STEREO_DONTCARE = 0x80000000 #EndRegion Func _ChoosePixelFormat( $hdc, ByRef $ppfd) ;~ http://msdn.microsoft.com/en-us/library/ms537556(VS.85).aspx Local $ret = DllCall( 'Gdi32.dll', 'int', 'ChoosePixelFormat', _ 'hwnd', $hdc, _ 'ptr', DllStructGetPtr( $ppfd)) Return $ret[0] EndFunc Func _SetPixelFormat( $hdc, $iPixelFormat, ByRef $ppfd) ;~ http://msdn.microsoft.com/en-us/library/ms537559(VS.85).aspx Local $ret = DllCall( 'Gdi32.dll', 'int', 'SetPixelFormat', _ 'hwnd', $hdc, _ 'int', $iPixelFormat, _ 'ptr', DllStructGetPtr( $ppfd)) Return $ret[0] EndFunc Func _wglCreateContext( $hdc) ;~ http://msdn.microsoft.com/en-us/library/ms537549(VS.85).aspx Local $ret = DllCall( 'opengl32.dll', 'ptr', 'wglCreateContext', _ 'hwnd', $hdc) Return $ret[0] EndFunc Func _wglMakeCurrent( $hdc = '', $hglrc = '') ;~ http://msdn.microsoft.com/en-us/library/ms537558(VS.85).aspx Local $ret = DllCall( 'opengl32.dll', 'int', 'wglMakeCurrent', _ 'hwnd', $hdc, _ 'ptr', $hglrc) Return $ret[0] EndFunc Func _wglDeleteContext( $hglrc) ;~ http://msdn.microsoft.com/en-us/library/ms537548(VS.85).aspx Local $ret = DllCall( 'opengl32.dll', 'int', 'wglDeleteContext', _ 'ptr', $hglrc) Return $ret[0] EndFunc #EndRegion #Region - #cs void EnableOpenGL (HWND hWnd, HDC *hDC, HGLRC *hRC) { PIXELFORMATDESCRIPTOR pfd; int iFormat; /* get the device context (DC) */ *hDC = GetDC (hWnd); /* set the pixel format for the DC */ ZeroMemory (&pfd, sizeof (pfd)); pfd.nSize = sizeof (pfd); pfd.nVersion = 1; pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; pfd.iPixelType = PFD_TYPE_RGBA; pfd.cColorBits = 24; pfd.cDepthBits = 16; pfd.iLayerType = PFD_MAIN_PLANE; iFormat = ChoosePixelFormat (*hDC, &pfd); SetPixelFormat (*hDC, iFormat, &pfd); /* create and enable the render context (RC) */ *hRC = wglCreateContext( *hDC ); wglMakeCurrent( *hDC, *hRC ); } #ce Func EnableOpenGL( $hwnd, ByRef $hdc, ByRef $hrc) Global $opengl32_dll = DllOpen( 'opengl32.dll') Local $pfd = DllStructCreate( $tagPIXELFORMATDESCRIPTOR), $iformat $hdc = _WinAPI_GetDC( $hwnd) DllStructSetData( $pfd, 'nSize', DllStructGetSize( $pfd)) DllStructSetData( $pfd, 'nVersion', 1) DllStructSetData( $pfd, 'dwFlags', BitOR( $PFD_DRAW_TO_WINDOW, $PFD_SUPPORT_OPENGL, $PFD_DOUBLEBUFFER)) DllStructSetData( $pfd, 'iPixelType', $PFD_TYPE_RGBA) DllStructSetData( $pfd, 'cColorBits', 24) DllStructSetData( $pfd, 'cDepthBits', 16) DllStructSetData( $pfd, 'iLayerType', $PFD_MAIN_PLANE) $iformat = _ChoosePixelFormat( $hdc, $pfd) _SetPixelFormat( $hdc, $iformat, $pfd) $hrc = _wglCreateContext( $hdc) _wglMakeCurrent( $hdc, $hrc) EndFunc #cs void DisableOpenGL (HWND hWnd, HDC hDC, HGLRC hRC) { wglMakeCurrent (NULL, NULL); wglDeleteContext (hRC); ReleaseDC (hWnd, hDC); } #ce Func DisableOpenGL( $hwnd, $hdc, $hrc) _wglMakeCurrent() _wglDeleteContext( $hrc) _WinAPI_ReleaseDC( $hwnd, $hdc) DllClose( $opengl32_dll) EndFunc #EndRegion #Region - gl stuff Func _glClearIndex($c) DllCall( 'opengl32.dll', 'none', 'glClearIndex', _ 'float', $c) EndFunc Func _glClearColor($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glClearColor', _ 'float', $red, _ 'float', $green, _ 'float', $blue, _ 'float', $alpha) EndFunc Func _glClear($mask) DllCall( 'opengl32.dll', 'none', 'glClear', _ 'uint', $mask) EndFunc Func _glIndexMask($mask) DllCall( 'opengl32.dll', 'none', 'glIndexMask', _ 'uint', $mask) EndFunc Func _glColorMask($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColorMask', _ 'ubyte', $red, _ 'ubyte', $green, _ 'ubyte', $blue, _ 'ubyte', $alpha) EndFunc Func _glAlphaFunc($func, $ref) DllCall( 'opengl32.dll', 'none', 'glAlphaFunc', _ 'uint', $func, _ 'float', $ref) EndFunc Func _glBlendFunc($sfactor, $dfactor) DllCall( 'opengl32.dll', 'none', 'glBlendFunc', _ 'uint', $sfactor, _ 'uint', $dfactor) EndFunc Func _glLogicOp($opcode) DllCall( 'opengl32.dll', 'none', 'glLogicOp', _ 'uint', $opcode) EndFunc Func _glCullFace($mode) DllCall( 'opengl32.dll', 'none', 'glCullFace', _ 'uint', $mode) EndFunc Func _glFrontFace($mode) DllCall( 'opengl32.dll', 'none', 'glFrontFace', _ 'uint', $mode) EndFunc Func _glPointSize($size) DllCall( 'opengl32.dll', 'none', 'glPointSize', _ 'float', $size) EndFunc Func _glLineWidth($width) DllCall( 'opengl32.dll', 'none', 'glLineWidth', _ 'float', $width) EndFunc Func _glLineStipple($factor, $pattern) DllCall( 'opengl32.dll', 'none', 'glLineStipple', _ 'int', $factor, _ 'ushort', $pattern) EndFunc Func _glPolygonMode($face, $mode) DllCall( 'opengl32.dll', 'none', 'glPolygonMode', _ 'uint', $face, _ 'uint', $mode) EndFunc Func _glPolygonOffset($factor, $units) DllCall( 'opengl32.dll', 'none', 'glPolygonOffset', _ 'float', $factor, _ 'float', $units) EndFunc Func _glPolygonStipple(ByRef $mask) DllCall( 'opengl32.dll', 'none', 'glPolygonStipple', _ 'ptr', DllStructGetPtr( $mask)) EndFunc Func _glGetPolygonStipple(ByRef $mask) DllCall( 'opengl32.dll', 'none', 'glGetPolygonStipple', _ 'ptr', DllStructGetPtr( $mask)) EndFunc Func _glEdgeFlag($flag) DllCall( 'opengl32.dll', 'none', 'glEdgeFlag', _ 'ubyte', $flag) EndFunc Func _glEdgeFlagv(ByRef $flag) DllCall( 'opengl32.dll', 'none', 'glEdgeFlagv', _ 'ptr', DllStructGetPtr( $flag)) EndFunc Func _glScissor($x, $y, $width, $height) DllCall( 'opengl32.dll', 'none', 'glScissor', _ 'int', $x, _ 'int', $y, _ 'int', $width, _ 'int', $height) EndFunc Func _glClipPlane($plane, ByRef $equation) DllCall( 'opengl32.dll', 'none', 'glClipPlane', _ 'uint', $plane, _ 'ptr', DllStructGetPtr( $equation)) EndFunc Func _glGetClipPlane($plane, ByRef $equation) DllCall( 'opengl32.dll', 'none', 'glGetClipPlane', _ 'uint', $plane, _ 'ptr', DllStructGetPtr( $equation)) EndFunc Func _glDrawBuffer($mode) DllCall( 'opengl32.dll', 'none', 'glDrawBuffer', _ 'uint', $mode) EndFunc Func _glReadBuffer($mode) DllCall( 'opengl32.dll', 'none', 'glReadBuffer', _ 'uint', $mode) EndFunc Func _glEnable($cap) DllCall( 'opengl32.dll', 'none', 'glEnable', _ 'uint', $cap) EndFunc Func _glDisable($cap) DllCall( 'opengl32.dll', 'none', 'glDisable', _ 'uint', $cap) EndFunc Func _glIsEnabled($cap) Local $ret = DllCall( 'opengl32.dll', 'ubyte', 'glIsEnabled', _ 'uint', $cap) Return $ret[0] EndFunc Func _glGetBooleanv($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetBooleanv', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetDoublev($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetDoublev', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetFloatv($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetFloatv', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetIntegerv($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetIntegerv', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glPushAttrib($mask) DllCall( 'opengl32.dll', 'none', 'glPushAttrib', _ 'uint', $mask) EndFunc Func _glPopAttrib() DllCall( 'opengl32.dll', 'none', 'glPopAttrib') EndFunc Func _glRenderMode($mode) Local $ret = DllCall( 'opengl32.dll', 'int', 'glRenderMode', _ 'uint', $mode) Return $ret[0] EndFunc Func _glGetError() Local $ret = DllCall( 'opengl32.dll', 'uint', 'glGetError') Return $ret[0] EndFunc Func _glFinish() DllCall( 'opengl32.dll', 'none', 'glFinish') EndFunc Func _glFlush() DllCall( 'opengl32.dll', 'none', 'glFlush') EndFunc Func _glHint($target, $mode) DllCall( 'opengl32.dll', 'none', 'glHint', _ 'uint', $target, _ 'uint', $mode) EndFunc Func _glClearDepth($depth) DllCall( 'opengl32.dll', 'none', 'glClearDepth', _ 'double', $depth) EndFunc Func _glDepthFunc($func) DllCall( 'opengl32.dll', 'none', 'glDepthFunc', _ 'uint', $func) EndFunc Func _glDepthMask($flag) DllCall( 'opengl32.dll', 'none', 'glDepthMask', _ 'ubyte', $flag) EndFunc Func _glDepthRange($near_val, $far_val) DllCall( 'opengl32.dll', 'none', 'glDepthRange', _ 'double', $near_val, _ 'double', $far_val) EndFunc Func _glClearAccum($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glClearAccum', _ 'float', $red, _ 'float', $green, _ 'float', $blue, _ 'float', $alpha) EndFunc Func _glAccum($op, $value) DllCall( 'opengl32.dll', 'none', 'glAccum', _ 'uint', $op, _ 'float', $value) EndFunc Func _glMatrixMode($mode) DllCall( 'opengl32.dll', 'none', 'glMatrixMode', _ 'uint', $mode) EndFunc Func _glOrtho($left, $right, $bottom, $top, $near_val, $far_val) DllCall( 'opengl32.dll', 'none', 'glOrtho', _ 'double', $left, _ 'double', $right, _ 'double', $bottom, _ 'double', $top, _ 'double', $near_val, _ 'double', $far_val) EndFunc Func _glFrustum($left, $right, $bottom, $top, $near_val, $far_val) DllCall( 'opengl32.dll', 'none', 'glFrustum', _ 'double', $left, _ 'double', $right, _ 'double', $bottom, _ 'double', $top, _ 'double', $near_val, _ 'double', $far_val) EndFunc Func _glViewport($x, $y, $width, $height) DllCall( 'opengl32.dll', 'none', 'glViewport', _ 'int', $x, _ 'int', $y, _ 'int', $width, _ 'int', $height) EndFunc Func _glPushMatrix() DllCall( 'opengl32.dll', 'none', 'glPushMatrix') EndFunc Func _glPopMatrix() DllCall( 'opengl32.dll', 'none', 'glPopMatrix') EndFunc Func _glLoadIdentity() DllCall( 'opengl32.dll', 'none', 'glLoadIdentity') EndFunc Func _glLoadMatrixd(ByRef $m) DllCall( 'opengl32.dll', 'none', 'glLoadMatrixd', _ 'ptr', DllStructGetPtr( $m)) EndFunc Func _glLoadMatrixf(ByRef $m) DllCall( 'opengl32.dll', 'none', 'glLoadMatrixf', _ 'ptr', DllStructGetPtr( $m)) EndFunc Func _glMultMatrixd(ByRef $m) DllCall( 'opengl32.dll', 'none', 'glMultMatrixd', _ 'ptr', DllStructGetPtr( $m)) EndFunc Func _glMultMatrixf(ByRef $m) DllCall( 'opengl32.dll', 'none', 'glMultMatrixf', _ 'ptr', DllStructGetPtr( $m)) EndFunc Func _glRotated($angle, $x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glRotated', _ 'double', $angle, _ 'double', $x, _ 'double', $y, _ 'double', $z) EndFunc Func _glRotatef($angle, $x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glRotatef', _ 'float', $angle, _ 'float', $x, _ 'float', $y, _ 'float', $z) EndFunc Func _glScaled($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glScaled', _ 'double', $x, _ 'double', $y, _ 'double', $z) EndFunc Func _glScalef($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glScalef', _ 'float', $x, _ 'float', $y, _ 'float', $z) EndFunc Func _glTranslated($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glTranslated', _ 'double', $x, _ 'double', $y, _ 'double', $z) EndFunc Func _glTranslatef($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glTranslatef', _ 'float', $x, _ 'float', $y, _ 'float', $z) EndFunc Func _glIsList($list) Local $ret = DllCall( 'opengl32.dll', 'ubyte', 'glIsList', _ 'uint', $list) Return $ret[0] EndFunc Func _glDeleteLists($list, $range) DllCall( 'opengl32.dll', 'none', 'glDeleteLists', _ 'uint', $list, _ 'int', $range) EndFunc Func _glGenLists($range) Local $ret = DllCall( 'opengl32.dll', 'uint', 'glGenLists', _ 'int', $range) Return $ret[0] EndFunc Func _glNewList($list, $mode) DllCall( 'opengl32.dll', 'none', 'glNewList', _ 'uint', $list, _ 'uint', $mode) EndFunc Func _glEndList() DllCall( 'opengl32.dll', 'none', 'glEndList') EndFunc Func _glCallList($list) DllCall( 'opengl32.dll', 'none', 'glCallList', _ 'uint', $list) EndFunc Func _glCallLists($n, $type, ByRef $lists) DllCall( 'opengl32.dll', 'none', 'glCallLists', _ 'int', $n, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $lists)) EndFunc Func _glListBase($base) DllCall( 'opengl32.dll', 'none', 'glListBase', _ 'uint', $base) EndFunc Func _glBegin($mode) DllCall( 'opengl32.dll', 'none', 'glBegin', _ 'uint', $mode) EndFunc Func _glEnd() DllCall( 'opengl32.dll', 'none', 'glEnd') EndFunc Func _glVertex2d($x, $y) DllCall( 'opengl32.dll', 'none', 'glVertex2d', _ 'double', $x, _ 'double', $y) EndFunc Func _glVertex2f($x, $y) DllCall( 'opengl32.dll', 'none', 'glVertex2f', _ 'float', $x, _ 'float', $y) EndFunc Func _glVertex2i($x, $y) DllCall( 'opengl32.dll', 'none', 'glVertex2i', _ 'int', $x, _ 'int', $y) EndFunc Func _glVertex2s($x, $y) DllCall( 'opengl32.dll', 'none', 'glVertex2s', _ 'short', $x, _ 'short', $y) EndFunc Func _glVertex3d($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glVertex3d', _ 'double', $x, _ 'double', $y, _ 'double', $z) EndFunc Func _glVertex3f($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glVertex3f', _ 'float', $x, _ 'float', $y, _ 'float', $z) EndFunc Func _glVertex3i($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glVertex3i', _ 'int', $x, _ 'int', $y, _ 'int', $z) EndFunc Func _glVertex3s($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glVertex3s', _ 'short', $x, _ 'short', $y, _ 'short', $z) EndFunc Func _glVertex4d($x, $y, $z, $w) DllCall( 'opengl32.dll', 'none', 'glVertex4d', _ 'double', $x, _ 'double', $y, _ 'double', $z, _ 'double', $w) EndFunc Func _glVertex4f($x, $y, $z, $w) DllCall( 'opengl32.dll', 'none', 'glVertex4f', _ 'float', $x, _ 'float', $y, _ 'float', $z, _ 'float', $w) EndFunc Func _glVertex4i($x, $y, $z, $w) DllCall( 'opengl32.dll', 'none', 'glVertex4i', _ 'int', $x, _ 'int', $y, _ 'int', $z, _ 'int', $w) EndFunc Func _glVertex4s($x, $y, $z, $w) DllCall( 'opengl32.dll', 'none', 'glVertex4s', _ 'short', $x, _ 'short', $y, _ 'short', $z, _ 'short', $w) EndFunc Func _glVertex2dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex2dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex2fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex2fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex2iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex2iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex2sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex2sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex3dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex3dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex3fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex3fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex3iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex3iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex3sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex3sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex4dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex4dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex4fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex4fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex4iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex4iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glVertex4sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glVertex4sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glNormal3b($nx, $ny, $nz) DllCall( 'opengl32.dll', 'none', 'glNormal3b', _ 'byte', $nx, _ 'byte', $ny, _ 'byte', $nz) EndFunc Func _glNormal3d($nx, $ny, $nz) DllCall( 'opengl32.dll', 'none', 'glNormal3d', _ 'double', $nx, _ 'double', $ny, _ 'double', $nz) EndFunc Func _glNormal3f($nx, $ny, $nz) DllCall( 'opengl32.dll', 'none', 'glNormal3f', _ 'float', $nx, _ 'float', $ny, _ 'float', $nz) EndFunc Func _glNormal3i($nx, $ny, $nz) DllCall( 'opengl32.dll', 'none', 'glNormal3i', _ 'int', $nx, _ 'int', $ny, _ 'int', $nz) EndFunc Func _glNormal3s($nx, $ny, $nz) DllCall( 'opengl32.dll', 'none', 'glNormal3s', _ 'short', $nx, _ 'short', $ny, _ 'short', $nz) EndFunc Func _glNormal3bv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glNormal3bv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glNormal3dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glNormal3dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glNormal3fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glNormal3fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glNormal3iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glNormal3iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glNormal3sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glNormal3sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glIndexd($c) DllCall( 'opengl32.dll', 'none', 'glIndexd', _ 'double', $c) EndFunc Func _glIndexf($c) DllCall( 'opengl32.dll', 'none', 'glIndexf', _ 'float', $c) EndFunc Func _glIndexi($c) DllCall( 'opengl32.dll', 'none', 'glIndexi', _ 'int', $c) EndFunc Func _glIndexs($c) DllCall( 'opengl32.dll', 'none', 'glIndexs', _ 'short', $c) EndFunc Func _glIndexdv(ByRef $c) DllCall( 'opengl32.dll', 'none', 'glIndexdv', _ 'ptr', DllStructGetPtr( $c)) EndFunc Func _glIndexfv(ByRef $c) DllCall( 'opengl32.dll', 'none', 'glIndexfv', _ 'ptr', DllStructGetPtr( $c)) EndFunc Func _glIndexiv(ByRef $c) DllCall( 'opengl32.dll', 'none', 'glIndexiv', _ 'ptr', DllStructGetPtr( $c)) EndFunc Func _glIndexsv(ByRef $c) DllCall( 'opengl32.dll', 'none', 'glIndexsv', _ 'ptr', DllStructGetPtr( $c)) EndFunc Func _glColor3b($red, $green, $blue) DllCall( 'opengl32.dll', 'none', 'glColor3b', _ 'byte', $red, _ 'byte', $green, _ 'byte', $blue) EndFunc Func _glColor3d($red, $green, $blue) DllCall( 'opengl32.dll', 'none', 'glColor3d', _ 'double', $red, _ 'double', $green, _ 'double', $blue) EndFunc Func _glColor3f($red, $green, $blue) DllCall( 'opengl32.dll', 'none', 'glColor3f', _ 'float', $red, _ 'float', $green, _ 'float', $blue) EndFunc Func _glColor3i($red, $green, $blue) DllCall( 'opengl32.dll', 'none', 'glColor3i', _ 'int', $red, _ 'int', $green, _ 'int', $blue) EndFunc Func _glColor3s($red, $green, $blue) DllCall( 'opengl32.dll', 'none', 'glColor3s', _ 'short', $red, _ 'short', $green, _ 'short', $blue) EndFunc Func _glColor3ub($red, $green, $blue) DllCall( 'opengl32.dll', 'none', 'glColor3ub', _ 'ubyte', $red, _ 'ubyte', $green, _ 'ubyte', $blue) EndFunc Func _glColor3ui($red, $green, $blue) DllCall( 'opengl32.dll', 'none', 'glColor3ui', _ 'uint', $red, _ 'uint', $green, _ 'uint', $blue) EndFunc Func _glColor3us($red, $green, $blue) DllCall( 'opengl32.dll', 'none', 'glColor3us', _ 'ushort', $red, _ 'ushort', $green, _ 'ushort', $blue) EndFunc Func _glColor4b($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColor4b', _ 'byte', $red, _ 'byte', $green, _ 'byte', $blue, _ 'byte', $alpha) EndFunc Func _glColor4d($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColor4d', _ 'double', $red, _ 'double', $green, _ 'double', $blue, _ 'double', $alpha) EndFunc Func _glColor4f($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColor4f', _ 'float', $red, _ 'float', $green, _ 'float', $blue, _ 'float', $alpha) EndFunc Func _glColor4i($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColor4i', _ 'int', $red, _ 'int', $green, _ 'int', $blue, _ 'int', $alpha) EndFunc Func _glColor4s($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColor4s', _ 'short', $red, _ 'short', $green, _ 'short', $blue, _ 'short', $alpha) EndFunc Func _glColor4ub($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColor4ub', _ 'ubyte', $red, _ 'ubyte', $green, _ 'ubyte', $blue, _ 'ubyte', $alpha) EndFunc Func _glColor4ui($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColor4ui', _ 'uint', $red, _ 'uint', $green, _ 'uint', $blue, _ 'uint', $alpha) EndFunc Func _glColor4us($red, $green, $blue, $alpha) DllCall( 'opengl32.dll', 'none', 'glColor4us', _ 'ushort', $red, _ 'ushort', $green, _ 'ushort', $blue, _ 'ushort', $alpha) EndFunc Func _glColor3bv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor3bv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor3dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor3dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor3fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor3fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor3iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor3iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor3sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor3sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor3ubv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor3ubv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor3uiv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor3uiv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor3usv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor3usv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor4bv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor4bv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor4dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor4dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor4fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor4fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor4iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor4iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor4sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor4sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor4ubv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor4ubv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor4uiv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor4uiv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glColor4usv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glColor4usv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord1d($s) DllCall( 'opengl32.dll', 'none', 'glTexCoord1d', _ 'double', $s) EndFunc Func _glTexCoord1f($s) DllCall( 'opengl32.dll', 'none', 'glTexCoord1f', _ 'float', $s) EndFunc Func _glTexCoord1i($s) DllCall( 'opengl32.dll', 'none', 'glTexCoord1i', _ 'int', $s) EndFunc Func _glTexCoord1s($s) DllCall( 'opengl32.dll', 'none', 'glTexCoord1s', _ 'short', $s) EndFunc Func _glTexCoord2d($s, $t) DllCall( 'opengl32.dll', 'none', 'glTexCoord2d', _ 'double', $s, _ 'double', $t) EndFunc Func _glTexCoord2f($s, $t) DllCall( 'opengl32.dll', 'none', 'glTexCoord2f', _ 'float', $s, _ 'float', $t) EndFunc Func _glTexCoord2i($s, $t) DllCall( 'opengl32.dll', 'none', 'glTexCoord2i', _ 'int', $s, _ 'int', $t) EndFunc Func _glTexCoord2s($s, $t) DllCall( 'opengl32.dll', 'none', 'glTexCoord2s', _ 'short', $s, _ 'short', $t) EndFunc Func _glTexCoord3d($s, $t, $r) DllCall( 'opengl32.dll', 'none', 'glTexCoord3d', _ 'double', $s, _ 'double', $t, _ 'double', $r) EndFunc Func _glTexCoord3f($s, $t, $r) DllCall( 'opengl32.dll', 'none', 'glTexCoord3f', _ 'float', $s, _ 'float', $t, _ 'float', $r) EndFunc Func _glTexCoord3i($s, $t, $r) DllCall( 'opengl32.dll', 'none', 'glTexCoord3i', _ 'int', $s, _ 'int', $t, _ 'int', $r) EndFunc Func _glTexCoord3s($s, $t, $r) DllCall( 'opengl32.dll', 'none', 'glTexCoord3s', _ 'short', $s, _ 'short', $t, _ 'short', $r) EndFunc Func _glTexCoord4d($s, $t, $r, $q) DllCall( 'opengl32.dll', 'none', 'glTexCoord4d', _ 'double', $s, _ 'double', $t, _ 'double', $r, _ 'double', $q) EndFunc Func _glTexCoord4f($s, $t, $r, $q) DllCall( 'opengl32.dll', 'none', 'glTexCoord4f', _ 'float', $s, _ 'float', $t, _ 'float', $r, _ 'float', $q) EndFunc Func _glTexCoord4i($s, $t, $r, $q) DllCall( 'opengl32.dll', 'none', 'glTexCoord4i', _ 'int', $s, _ 'int', $t, _ 'int', $r, _ 'int', $q) EndFunc Func _glTexCoord4s($s, $t, $r, $q) DllCall( 'opengl32.dll', 'none', 'glTexCoord4s', _ 'short', $s, _ 'short', $t, _ 'short', $r, _ 'short', $q) EndFunc Func _glTexCoord1dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord1dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord1fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord1fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord1iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord1iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord1sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord1sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord2dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord2dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord2fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord2fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord2iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord2iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord2sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord2sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord3dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord3dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord3fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord3fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord3iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord3iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord3sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord3sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord4dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord4dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord4fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord4fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord4iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord4iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glTexCoord4sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glTexCoord4sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos2d($x, $y) DllCall( 'opengl32.dll', 'none', 'glRasterPos2d', _ 'double', $x, _ 'double', $y) EndFunc Func _glRasterPos2f($x, $y) DllCall( 'opengl32.dll', 'none', 'glRasterPos2f', _ 'float', $x, _ 'float', $y) EndFunc Func _glRasterPos2i($x, $y) DllCall( 'opengl32.dll', 'none', 'glRasterPos2i', _ 'int', $x, _ 'int', $y) EndFunc Func _glRasterPos2s($x, $y) DllCall( 'opengl32.dll', 'none', 'glRasterPos2s', _ 'short', $x, _ 'short', $y) EndFunc Func _glRasterPos3d($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glRasterPos3d', _ 'double', $x, _ 'double', $y, _ 'double', $z) EndFunc Func _glRasterPos3f($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glRasterPos3f', _ 'float', $x, _ 'float', $y, _ 'float', $z) EndFunc Func _glRasterPos3i($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glRasterPos3i', _ 'int', $x, _ 'int', $y, _ 'int', $z) EndFunc Func _glRasterPos3s($x, $y, $z) DllCall( 'opengl32.dll', 'none', 'glRasterPos3s', _ 'short', $x, _ 'short', $y, _ 'short', $z) EndFunc Func _glRasterPos4d($x, $y, $z, $w) DllCall( 'opengl32.dll', 'none', 'glRasterPos4d', _ 'double', $x, _ 'double', $y, _ 'double', $z, _ 'double', $w) EndFunc Func _glRasterPos4f($x, $y, $z, $w) DllCall( 'opengl32.dll', 'none', 'glRasterPos4f', _ 'float', $x, _ 'float', $y, _ 'float', $z, _ 'float', $w) EndFunc Func _glRasterPos4i($x, $y, $z, $w) DllCall( 'opengl32.dll', 'none', 'glRasterPos4i', _ 'int', $x, _ 'int', $y, _ 'int', $z, _ 'int', $w) EndFunc Func _glRasterPos4s($x, $y, $z, $w) DllCall( 'opengl32.dll', 'none', 'glRasterPos4s', _ 'short', $x, _ 'short', $y, _ 'short', $z, _ 'short', $w) EndFunc Func _glRasterPos2dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos2dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos2fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos2fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos2iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos2iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos2sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos2sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos3dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos3dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos3fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos3fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos3iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos3iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos3sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos3sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos4dv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos4dv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos4fv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos4fv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos4iv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos4iv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRasterPos4sv(ByRef $v) DllCall( 'opengl32.dll', 'none', 'glRasterPos4sv', _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glRectd($x1, $y1, $x2, $y2) DllCall( 'opengl32.dll', 'none', 'glRectd', _ 'double', $x1, _ 'double', $y1, _ 'double', $x2, _ 'double', $y2) EndFunc Func _glRectf($x1, $y1, $x2, $y2) DllCall( 'opengl32.dll', 'none', 'glRectf', _ 'float', $x1, _ 'float', $y1, _ 'float', $x2, _ 'float', $y2) EndFunc Func _glRecti($x1, $y1, $x2, $y2) DllCall( 'opengl32.dll', 'none', 'glRecti', _ 'int', $x1, _ 'int', $y1, _ 'int', $x2, _ 'int', $y2) EndFunc Func _glRects($x1, $y1, $x2, $y2) DllCall( 'opengl32.dll', 'none', 'glRects', _ 'short', $x1, _ 'short', $y1, _ 'short', $x2, _ 'short', $y2) EndFunc Func _glRectdv(ByRef $v1, ByRef $v2) DllCall( 'opengl32.dll', 'none', 'glRectdv', _ 'ptr', DllStructGetPtr( $v1), _ 'ptr', DllStructGetPtr( $v2)) EndFunc Func _glRectfv(ByRef $v1, ByRef $v2) DllCall( 'opengl32.dll', 'none', 'glRectfv', _ 'ptr', DllStructGetPtr( $v1), _ 'ptr', DllStructGetPtr( $v2)) EndFunc Func _glRectiv(ByRef $v1, ByRef $v2) DllCall( 'opengl32.dll', 'none', 'glRectiv', _ 'ptr', DllStructGetPtr( $v1), _ 'ptr', DllStructGetPtr( $v2)) EndFunc Func _glRectsv(ByRef $v1, ByRef $v2) DllCall( 'opengl32.dll', 'none', 'glRectsv', _ 'ptr', DllStructGetPtr( $v1), _ 'ptr', DllStructGetPtr( $v2)) EndFunc Func _glShadeModel($mode) DllCall( 'opengl32.dll', 'none', 'glShadeModel', _ 'uint', $mode) EndFunc Func _glLightf($light, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glLightf', _ 'uint', $light, _ 'uint', $pname, _ 'float', $param) EndFunc Func _glLighti($light, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glLighti', _ 'uint', $light, _ 'uint', $pname, _ 'int', $param) EndFunc Func _glLightfv($light, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glLightfv', _ 'uint', $light, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glLightiv($light, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glLightiv', _ 'uint', $light, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetLightfv($light, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetLightfv', _ 'uint', $light, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetLightiv($light, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetLightiv', _ 'uint', $light, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glLightModelf($pname, $param) DllCall( 'opengl32.dll', 'none', 'glLightModelf', _ 'uint', $pname, _ 'float', $param) EndFunc Func _glLightModeli($pname, $param) DllCall( 'opengl32.dll', 'none', 'glLightModeli', _ 'uint', $pname, _ 'int', $param) EndFunc Func _glLightModelfv($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glLightModelfv', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glLightModeliv($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glLightModeliv', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glMaterialf($face, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glMaterialf', _ 'uint', $face, _ 'uint', $pname, _ 'float', $param) EndFunc Func _glMateriali($face, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glMateriali', _ 'uint', $face, _ 'uint', $pname, _ 'int', $param) EndFunc Func _glMaterialfv($face, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glMaterialfv', _ 'uint', $face, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glMaterialiv($face, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glMaterialiv', _ 'uint', $face, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetMaterialfv($face, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetMaterialfv', _ 'uint', $face, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetMaterialiv($face, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetMaterialiv', _ 'uint', $face, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glColorMaterial($face, $mode) DllCall( 'opengl32.dll', 'none', 'glColorMaterial', _ 'uint', $face, _ 'uint', $mode) EndFunc Func _glPixelZoom($xfactor, $yfactor) DllCall( 'opengl32.dll', 'none', 'glPixelZoom', _ 'float', $xfactor, _ 'float', $yfactor) EndFunc Func _glPixelStoref($pname, $param) DllCall( 'opengl32.dll', 'none', 'glPixelStoref', _ 'uint', $pname, _ 'float', $param) EndFunc Func _glPixelStorei($pname, $param) DllCall( 'opengl32.dll', 'none', 'glPixelStorei', _ 'uint', $pname, _ 'int', $param) EndFunc Func _glPixelTransferf($pname, $param) DllCall( 'opengl32.dll', 'none', 'glPixelTransferf', _ 'uint', $pname, _ 'float', $param) EndFunc Func _glPixelTransferi($pname, $param) DllCall( 'opengl32.dll', 'none', 'glPixelTransferi', _ 'uint', $pname, _ 'int', $param) EndFunc Func _glPixelMapfv($map, $mapsize, ByRef $values) DllCall( 'opengl32.dll', 'none', 'glPixelMapfv', _ 'uint', $map, _ 'int', $mapsize, _ 'ptr', DllStructGetPtr( $values)) EndFunc Func _glPixelMapuiv($map, $mapsize, ByRef $values) DllCall( 'opengl32.dll', 'none', 'glPixelMapuiv', _ 'uint', $map, _ 'int', $mapsize, _ 'ptr', DllStructGetPtr( $values)) EndFunc Func _glPixelMapusv($map, $mapsize, ByRef $values) DllCall( 'opengl32.dll', 'none', 'glPixelMapusv', _ 'uint', $map, _ 'int', $mapsize, _ 'ptr', DllStructGetPtr( $values)) EndFunc Func _glGetPixelMapfv($map, ByRef $values) DllCall( 'opengl32.dll', 'none', 'glGetPixelMapfv', _ 'uint', $map, _ 'ptr', DllStructGetPtr( $values)) EndFunc Func _glGetPixelMapuiv($map, ByRef $values) DllCall( 'opengl32.dll', 'none', 'glGetPixelMapuiv', _ 'uint', $map, _ 'ptr', DllStructGetPtr( $values)) EndFunc Func _glGetPixelMapusv($map, ByRef $values) DllCall( 'opengl32.dll', 'none', 'glGetPixelMapusv', _ 'uint', $map, _ 'ptr', DllStructGetPtr( $values)) EndFunc Func _glBitmap($width, $height, $xorig, $yorig, $xmove, $ymove, ByRef $bitmap) DllCall( 'opengl32.dll', 'none', 'glBitmap', _ 'int', $width, _ 'int', $height, _ 'float', $xorig, _ 'float', $yorig, _ 'float', $xmove, _ 'float', $ymove, _ 'ptr', DllStructGetPtr( $bitmap)) EndFunc Func _glReadPixels($x, $y, $width, $height, $format, $type, ByRef $pixels) DllCall( 'opengl32.dll', 'none', 'glReadPixels', _ 'int', $x, _ 'int', $y, _ 'int', $width, _ 'int', $height, _ 'uint', $format, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $pixels)) EndFunc Func _glDrawPixels($width, $height, $format, $type, ByRef $pixels) DllCall( 'opengl32.dll', 'none', 'glDrawPixels', _ 'int', $width, _ 'int', $height, _ 'uint', $format, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $pixels)) EndFunc Func _glCopyPixels($x, $y, $width, $height, $type) DllCall( 'opengl32.dll', 'none', 'glCopyPixels', _ 'int', $x, _ 'int', $y, _ 'int', $width, _ 'int', $height, _ 'uint', $type) EndFunc Func _glStencilFunc($func, $ref, $mask) DllCall( 'opengl32.dll', 'none', 'glStencilFunc', _ 'uint', $func, _ 'int', $ref, _ 'uint', $mask) EndFunc Func _glStencilMask($mask) DllCall( 'opengl32.dll', 'none', 'glStencilMask', _ 'uint', $mask) EndFunc Func _glStencilOp($fail, $zfail, $zpass) DllCall( 'opengl32.dll', 'none', 'glStencilOp', _ 'uint', $fail, _ 'uint', $zfail, _ 'uint', $zpass) EndFunc Func _glClearStencil($s) DllCall( 'opengl32.dll', 'none', 'glClearStencil', _ 'int', $s) EndFunc Func _glTexGend($coord, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glTexGend', _ 'uint', $coord, _ 'uint', $pname, _ 'double', $param) EndFunc Func _glTexGenf($coord, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glTexGenf', _ 'uint', $coord, _ 'uint', $pname, _ 'float', $param) EndFunc Func _glTexGeni($coord, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glTexGeni', _ 'uint', $coord, _ 'uint', $pname, _ 'int', $param) EndFunc Func _glTexGendv($coord, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glTexGendv', _ 'uint', $coord, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glTexGenfv($coord, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glTexGenfv', _ 'uint', $coord, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glTexGeniv($coord, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glTexGeniv', _ 'uint', $coord, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexGendv($coord, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexGendv', _ 'uint', $coord, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexGenfv($coord, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexGenfv', _ 'uint', $coord, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexGeniv($coord, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexGeniv', _ 'uint', $coord, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glTexEnvf($target, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glTexEnvf', _ 'uint', $target, _ 'uint', $pname, _ 'float', $param) EndFunc Func _glTexEnvi($target, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glTexEnvi', _ 'uint', $target, _ 'uint', $pname, _ 'int', $param) EndFunc Func _glTexEnvfv($target, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glTexEnvfv', _ 'uint', $target, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glTexEnviv($target, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glTexEnviv', _ 'uint', $target, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexEnvfv($target, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexEnvfv', _ 'uint', $target, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexEnviv($target, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexEnviv', _ 'uint', $target, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glTexParameterf($target, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glTexParameterf', _ 'uint', $target, _ 'uint', $pname, _ 'float', $param) EndFunc Func _glTexParameteri($target, $pname, $param) DllCall( 'opengl32.dll', 'none', 'glTexParameteri', _ 'uint', $target, _ 'uint', $pname, _ 'int', $param) EndFunc Func _glTexParameterfv($target, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glTexParameterfv', _ 'uint', $target, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glTexParameteriv($target, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glTexParameteriv', _ 'uint', $target, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexParameterfv($target, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexParameterfv', _ 'uint', $target, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexParameteriv($target, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexParameteriv', _ 'uint', $target, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexLevelParameterfv($target, $level, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexLevelParameterfv', _ 'uint', $target, _ 'int', $level, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glGetTexLevelParameteriv($target, $level, $pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetTexLevelParameteriv', _ 'uint', $target, _ 'int', $level, _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glTexImage1D($target, $level, $internalFormat, $width, $border, $format, $type, ByRef $pixels) DllCall( 'opengl32.dll', 'none', 'glTexImage1D', _ 'uint', $target, _ 'int', $level, _ 'int', $internalFormat, _ 'int', $width, _ 'int', $border, _ 'uint', $format, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $pixels)) EndFunc Func _glTexImage2D($target, $level, $internalFormat, $width, $height, $border, $format, $type, ByRef $pixels) DllCall( 'opengl32.dll', 'none', 'glTexImage2D', _ 'uint', $target, _ 'int', $level, _ 'int', $internalFormat, _ 'int', $width, _ 'int', $height, _ 'int', $border, _ 'uint', $format, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $pixels)) EndFunc Func _glGetTexImage($target, $level, $format, $type, ByRef $pixels) DllCall( 'opengl32.dll', 'none', 'glGetTexImage', _ 'uint', $target, _ 'int', $level, _ 'uint', $format, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $pixels)) EndFunc Func _glMap1d($target, $u1, $u2, $stride, $order, ByRef $points) DllCall( 'opengl32.dll', 'none', 'glMap1d', _ 'uint', $target, _ 'double', $u1, _ 'double', $u2, _ 'int', $stride, _ 'int', $order, _ 'ptr', DllStructGetPtr( $points)) EndFunc Func _glMap1f($target, $u1, $u2, $stride, $order, ByRef $points) DllCall( 'opengl32.dll', 'none', 'glMap1f', _ 'uint', $target, _ 'float', $u1, _ 'float', $u2, _ 'int', $stride, _ 'int', $order, _ 'ptr', DllStructGetPtr( $points)) EndFunc Func _glMap2d($target, $u1, $u2, $ustride, $uorder, $v1, $v2, $vstride, $vorder, ByRef $points) DllCall( 'opengl32.dll', 'none', 'glMap2d', _ 'uint', $target, _ 'double', $u1, _ 'double', $u2, _ 'int', $ustride, _ 'int', $uorder, _ 'double', $v1, _ 'double', $v2, _ 'int', $vstride, _ 'int', $vorder, _ 'ptr', DllStructGetPtr( $points)) EndFunc Func _glMap2f($target, $u1, $u2, $ustride, $uorder, $v1, $v2, $vstride, $vorder, ByRef $points) DllCall( 'opengl32.dll', 'none', 'glMap2f', _ 'uint', $target, _ 'float', $u1, _ 'float', $u2, _ 'int', $ustride, _ 'int', $uorder, _ 'float', $v1, _ 'float', $v2, _ 'int', $vstride, _ 'int', $vorder, _ 'ptr', DllStructGetPtr( $points)) EndFunc Func _glGetMapdv($target, $query, ByRef $v) DllCall( 'opengl32.dll', 'none', 'glGetMapdv', _ 'uint', $target, _ 'uint', $query, _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glGetMapfv($target, $query, ByRef $v) DllCall( 'opengl32.dll', 'none', 'glGetMapfv', _ 'uint', $target, _ 'uint', $query, _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glGetMapiv($target, $query, ByRef $v) DllCall( 'opengl32.dll', 'none', 'glGetMapiv', _ 'uint', $target, _ 'uint', $query, _ 'ptr', DllStructGetPtr( $v)) EndFunc Func _glEvalCoord1d($u) DllCall( 'opengl32.dll', 'none', 'glEvalCoord1d', _ 'double', $u) EndFunc Func _glEvalCoord1f($u) DllCall( 'opengl32.dll', 'none', 'glEvalCoord1f', _ 'float', $u) EndFunc Func _glEvalCoord1dv(ByRef $u) DllCall( 'opengl32.dll', 'none', 'glEvalCoord1dv', _ 'ptr', DllStructGetPtr( $u)) EndFunc Func _glEvalCoord1fv(ByRef $u) DllCall( 'opengl32.dll', 'none', 'glEvalCoord1fv', _ 'ptr', DllStructGetPtr( $u)) EndFunc Func _glEvalCoord2d($u, $v) DllCall( 'opengl32.dll', 'none', 'glEvalCoord2d', _ 'double', $u, _ 'double', $v) EndFunc Func _glEvalCoord2f($u, $v) DllCall( 'opengl32.dll', 'none', 'glEvalCoord2f', _ 'float', $u, _ 'float', $v) EndFunc Func _glEvalCoord2dv(ByRef $u) DllCall( 'opengl32.dll', 'none', 'glEvalCoord2dv', _ 'ptr', DllStructGetPtr( $u)) EndFunc Func _glEvalCoord2fv(ByRef $u) DllCall( 'opengl32.dll', 'none', 'glEvalCoord2fv', _ 'ptr', DllStructGetPtr( $u)) EndFunc Func _glMapGrid1d($un, $u1, $u2) DllCall( 'opengl32.dll', 'none', 'glMapGrid1d', _ 'int', $un, _ 'double', $u1, _ 'double', $u2) EndFunc Func _glMapGrid1f($un, $u1, $u2) DllCall( 'opengl32.dll', 'none', 'glMapGrid1f', _ 'int', $un, _ 'float', $u1, _ 'float', $u2) EndFunc Func _glMapGrid2d($un, $u1, $u2, $vn, $v1, $v2) DllCall( 'opengl32.dll', 'none', 'glMapGrid2d', _ 'int', $un, _ 'double', $u1, _ 'double', $u2, _ 'int', $vn, _ 'double', $v1, _ 'double', $v2) EndFunc Func _glMapGrid2f($un, $u1, $u2, $vn, $v1, $v2) DllCall( 'opengl32.dll', 'none', 'glMapGrid2f', _ 'int', $un, _ 'float', $u1, _ 'float', $u2, _ 'int', $vn, _ 'float', $v1, _ 'float', $v2) EndFunc Func _glEvalPoint1($i) DllCall( 'opengl32.dll', 'none', 'glEvalPoint1', _ 'int', $i) EndFunc Func _glEvalPoint2($i, $j) DllCall( 'opengl32.dll', 'none', 'glEvalPoint2', _ 'int', $i, _ 'int', $j) EndFunc Func _glEvalMesh1($mode, $i1, $i2) DllCall( 'opengl32.dll', 'none', 'glEvalMesh1', _ 'uint', $mode, _ 'int', $i1, _ 'int', $i2) EndFunc Func _glEvalMesh2($mode, $i1, $i2, $j1, $j2) DllCall( 'opengl32.dll', 'none', 'glEvalMesh2', _ 'uint', $mode, _ 'int', $i1, _ 'int', $i2, _ 'int', $j1, _ 'int', $j2) EndFunc Func _glFogf($pname, $param) DllCall( 'opengl32.dll', 'none', 'glFogf', _ 'uint', $pname, _ 'float', $param) EndFunc Func _glFogi($pname, $param) DllCall( 'opengl32.dll', 'none', 'glFogi', _ 'uint', $pname, _ 'int', $param) EndFunc Func _glFogfv($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glFogfv', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glFogiv($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glFogiv', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glFeedbackBuffer($size, $type, ByRef $buffer) DllCall( 'opengl32.dll', 'none', 'glFeedbackBuffer', _ 'int', $size, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $buffer)) EndFunc Func _glPassThrough($token) DllCall( 'opengl32.dll', 'none', 'glPassThrough', _ 'float', $token) EndFunc Func _glSelectBuffer($size, ByRef $buffer) DllCall( 'opengl32.dll', 'none', 'glSelectBuffer', _ 'int', $size, _ 'ptr', DllStructGetPtr( $buffer)) EndFunc Func _glInitNames() DllCall( 'opengl32.dll', 'none', 'glInitNames') EndFunc Func _glLoadName($name) DllCall( 'opengl32.dll', 'none', 'glLoadName', _ 'uint', $name) EndFunc Func _glPushName($name) DllCall( 'opengl32.dll', 'none', 'glPushName', _ 'uint', $name) EndFunc Func _glPopName() DllCall( 'opengl32.dll', 'none', 'glPopName') EndFunc Func _glGenTextures($n, ByRef $textures) DllCall( 'opengl32.dll', 'none', 'glGenTextures', _ 'int', $n, _ 'ptr', DllStructGetPtr( $textures)) EndFunc Func _glDeleteTextures($n, ByRef $textures) DllCall( 'opengl32.dll', 'none', 'glDeleteTextures', _ 'int', $n, _ 'ptr', DllStructGetPtr( $textures)) EndFunc Func _glBindTexture($target, $texture) DllCall( 'opengl32.dll', 'none', 'glBindTexture', _ 'uint', $target, _ 'uint', $texture) EndFunc Func _glPrioritizeTextures($n, ByRef $textures, ByRef $priorities) DllCall( 'opengl32.dll', 'none', 'glPrioritizeTextures', _ 'int', $n, _ 'ptr', DllStructGetPtr( $textures), _ 'ptr', DllStructGetPtr( $priorities)) EndFunc Func _glAreTexturesResident($n, ByRef $textures, ByRef $residences) Local $ret = DllCall( 'opengl32.dll', 'ubyte', 'glAreTexturesResident', _ 'int', $n, _ 'ptr', DllStructGetPtr( $textures), _ 'ptr', DllStructGetPtr( $residences)) Return $ret[0] EndFunc Func _glIsTexture($texture) Local $ret = DllCall( 'opengl32.dll', 'ubyte', 'glIsTexture', _ 'uint', $texture) Return $ret[0] EndFunc Func _glTexSubImage1D($target, $level, $xoffset, $width, $format, $type, ByRef $pixels) DllCall( 'opengl32.dll', 'none', 'glTexSubImage1D', _ 'uint', $target, _ 'int', $level, _ 'int', $xoffset, _ 'int', $width, _ 'uint', $format, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $pixels)) EndFunc Func _glTexSubImage2D($target, $level, $xoffset, $yoffset, $width, $height, $format, $type, ByRef $pixels) DllCall( 'opengl32.dll', 'none', 'glTexSubImage2D', _ 'uint', $target, _ 'int', $level, _ 'int', $xoffset, _ 'int', $yoffset, _ 'int', $width, _ 'int', $height, _ 'uint', $format, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $pixels)) EndFunc Func _glCopyTexImage1D($target, $level, $internalformat, $x, $y, $width, $border) DllCall( 'opengl32.dll', 'none', 'glCopyTexImage1D', _ 'uint', $target, _ 'int', $level, _ 'uint', $internalformat, _ 'int', $x, _ 'int', $y, _ 'int', $width, _ 'int', $border) EndFunc Func _glCopyTexImage2D($target, $level, $internalformat, $x, $y, $width, $height, $border) DllCall( 'opengl32.dll', 'none', 'glCopyTexImage2D', _ 'uint', $target, _ 'int', $level, _ 'uint', $internalformat, _ 'int', $x, _ 'int', $y, _ 'int', $width, _ 'int', $height, _ 'int', $border) EndFunc Func _glCopyTexSubImage1D($target, $level, $xoffset, $x, $y, $width) DllCall( 'opengl32.dll', 'none', 'glCopyTexSubImage1D', _ 'uint', $target, _ 'int', $level, _ 'int', $xoffset, _ 'int', $x, _ 'int', $y, _ 'int', $width) EndFunc Func _glCopyTexSubImage2D($target, $level, $xoffset, $yoffset, $x, $y, $width, $height) DllCall( 'opengl32.dll', 'none', 'glCopyTexSubImage2D', _ 'uint', $target, _ 'int', $level, _ 'int', $xoffset, _ 'int', $yoffset, _ 'int', $x, _ 'int', $y, _ 'int', $width, _ 'int', $height) EndFunc Func _glVertexPointer($size, $type, $stride, ByRef $ptr) DllCall( 'opengl32.dll', 'none', 'glVertexPointer', _ 'int', $size, _ 'uint', $type, _ 'int', $stride, _ 'ptr', DllStructGetPtr( $ptr)) EndFunc Func _glNormalPointer($type, $stride, ByRef $ptr) DllCall( 'opengl32.dll', 'none', 'glNormalPointer', _ 'uint', $type, _ 'int', $stride, _ 'ptr', DllStructGetPtr( $ptr)) EndFunc Func _glColorPointer($size, $type, $stride, ByRef $ptr) DllCall( 'opengl32.dll', 'none', 'glColorPointer', _ 'int', $size, _ 'uint', $type, _ 'int', $stride, _ 'ptr', DllStructGetPtr( $ptr)) EndFunc Func _glIndexPointer($type, $stride, ByRef $ptr) DllCall( 'opengl32.dll', 'none', 'glIndexPointer', _ 'uint', $type, _ 'int', $stride, _ 'ptr', DllStructGetPtr( $ptr)) EndFunc Func _glTexCoordPointer($size, $type, $stride, ByRef $ptr) DllCall( 'opengl32.dll', 'none', 'glTexCoordPointer', _ 'int', $size, _ 'uint', $type, _ 'int', $stride, _ 'ptr', DllStructGetPtr( $ptr)) EndFunc Func _glEdgeFlagPointer($stride, ByRef $ptr) DllCall( 'opengl32.dll', 'none', 'glEdgeFlagPointer', _ 'int', $stride, _ 'ptr', DllStructGetPtr( $ptr)) EndFunc Func _glGetPointerv($pname, ByRef $params) DllCall( 'opengl32.dll', 'none', 'glGetPointerv', _ 'uint', $pname, _ 'ptr', DllStructGetPtr( $params)) EndFunc Func _glArrayElement($i) DllCall( 'opengl32.dll', 'none', 'glArrayElement', _ 'int', $i) EndFunc Func _glDrawArrays($mode, $first, $count) DllCall( 'opengl32.dll', 'none', 'glDrawArrays', _ 'uint', $mode, _ 'int', $first, _ 'int', $count) EndFunc Func _glDrawElements($mode, $count, $type, ByRef $indices) DllCall( 'opengl32.dll', 'none', 'glDrawElements', _ 'uint', $mode, _ 'int', $count, _ 'uint', $type, _ 'ptr', DllStructGetPtr( $indices)) EndFunc Func _glInterleavedArrays($format, $stride, ByRef $pointer) DllCall( 'opengl32.dll', 'none', 'glInterleavedArrays', _ 'uint', $format, _ 'int', $stride, _ 'ptr', DllStructGetPtr( $pointer)) EndFunc #EndRegion