-- OPENGL

GL_NEAREST = 0x2600
GL_LINEAR = 0x2601
GL_CLAMP = 0x2900
GL_REPEAT = 0x2901

--GL_DEPTH_BUFFER_BIT = 0x00000100
--GL_STENCIL_BUFFER_BIT = 0x00000400
--GL_COLOR_BUFFER_BIT = 0x00004000
--GL_FALSE = 0
--GL_TRUE = 1
--GL_POINTS = 0x0000
--GL_LINES = 0x0001
--GL_LINE_LOOP = 0x0002
--GL_LINE_STRIP = 0x0003
--GL_TRIANGLES = 0x0004
--GL_TRIANGLE_STRIP = 0x0005
--GL_TRIANGLE_FAN = 0x0006
--GL_ZERO = 0
--GL_ONE = 1
--GL_SRC_COLOR = 0x0300
--GL_ONE_MINUS_SRC_COLOR = 0x0301
--GL_SRC_ALPHA = 0x0302
--GL_ONE_MINUS_SRC_ALPHA = 0x0303
--GL_DST_ALPHA = 0x0304
--GL_ONE_MINUS_DST_ALPHA = 0x0305
--GL_DST_COLOR = 0x0306
--GL_ONE_MINUS_DST_COLOR = 0x0307
--GL_SRC_ALPHA_SATURATE = 0x0308
--GL_FUNC_ADD = 0x8006
--GL_BLEND_EQUATION = 0x8009
--GL_BLEND_EQUATION_RGB = 0x8009
--GL_BLEND_EQUATION_ALPHA = 0x883D
--GL_FUNC_SUBTRACT = 0x800A
--GL_FUNC_REVERSE_SUBTRACT = 0x800B
--GL_BLEND_DST_RGB = 0x80C8
--GL_BLEND_SRC_RGB = 0x80C9
--GL_BLEND_DST_ALPHA = 0x80CA
--GL_BLEND_SRC_ALPHA = 0x80CB
--GL_CONSTANT_COLOR = 0x8001
--GL_ONE_MINUS_CONSTANT_COLOR = 0x8002
--GL_CONSTANT_ALPHA = 0x8003
--GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004
--GL_BLEND_COLOR = 0x8005
--GL_ARRAY_BUFFER = 0x8892
--GL_ELEMENT_ARRAY_BUFFER = 0x8893
--GL_ARRAY_BUFFER_BINDING = 0x8894
--GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895
--GL_STREAM_DRAW = 0x88E0
--GL_STATIC_DRAW = 0x88E4
--GL_DYNAMIC_DRAW = 0x88E8
--GL_BUFFER_SIZE = 0x8764
--GL_BUFFER_USAGE = 0x8765
--GL_CURRENT_VERTEX_ATTRIB = 0x8626
--GL_FRONT_LEFT = 0x0400
--GL_FRONT_RIGHT = 0x0401
--GL_BACK_LEFT = 0x0402
--GL_BACK_RIGHT = 0x0403
--GL_FRONT = 0x0404
--GL_BACK = 0x0405
--GL_LEFT = 0x0406
--GL_RIGHT = 0x0407
--GL_FRONT_AND_BACK = 0x0408
--GL_TEXTURE_2D = 0x0DE1
--GL_CULL_FACE = 0x0B44
--GL_BLEND = 0x0BE2
--GL_DITHER = 0x0BD0
--GL_STENCIL_TEST = 0x0B90
--GL_DEPTH_TEST = 0x0B71
--GL_SCISSOR_TEST = 0x0C11
--GL_POLYGON_OFFSET_FACTOR = 0x8038
--GL_POLYGON_OFFSET_UNITS = 0x2A00
--GL_POLYGON_OFFSET_POINT = 0x2A01
--GL_POLYGON_OFFSET_LINE = 0x2A02
--GL_POLYGON_OFFSET_FILL = 0x8037
--GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E
--GL_SAMPLE_COVERAGE = 0x80A0
--GL_NO_ERROR = 0
--GL_INVALID_ENUM = 0x0500
--GL_INVALID_VALUE = 0x0501
--GL_INVALID_OPERATION = 0x0502
--GL_OUT_OF_MEMORY = 0x0505
--GL_CW = 0x0900
--GL_CCW = 0x0901
--GL_LINE_WIDTH = 0x0B21
--GL_ALIASED_POINT_SIZE_RANGE = 0x846D
--GL_ALIASED_LINE_WIDTH_RANGE = 0x846E
--GL_CULL_FACE_MODE = 0x0B45
--GL_FRONT_FACE = 0x0B46
--GL_DEPTH_RANGE = 0x0B70
--GL_DEPTH_WRITEMASK = 0x0B72
--GL_DEPTH_CLEAR_VALUE = 0x0B73
--GL_DEPTH_FUNC = 0x0B74
--GL_STENCIL_CLEAR_VALUE = 0x0B91
--GL_STENCIL_FUNC = 0x0B92
--GL_STENCIL_FAIL = 0x0B94
--GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95
--GL_STENCIL_PASS_DEPTH_PASS = 0x0B96
--GL_STENCIL_REF = 0x0B97
--GL_STENCIL_VALUE_MASK = 0x0B93
--GL_STENCIL_WRITEMASK = 0x0B98
--GL_STENCIL_BACK_FUNC = 0x8800
--GL_STENCIL_BACK_FAIL = 0x8801
--GL_STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802
--GL_STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
--GL_STENCIL_BACK_REF = 0x8CA3
--GL_STENCIL_BACK_VALUE_MASK = 0x8CA4
--GL_STENCIL_BACK_WRITEMASK = 0x8CA5
--GL_VIEWPORT = 0x0BA2
--GL_SCISSOR_BOX = 0x0C10
--GL_COLOR_CLEAR_VALUE = 0x0C22
--GL_COLOR_WRITEMASK = 0x0C23
--GL_UNPACK_LSB_FIRST = 0x0CF1
--GL_UNPACK_ROW_LENGTH = 0x0CF2
--GL_UNPACK_SKIP_ROWS = 0x0CF3
--GL_UNPACK_SKIP_PIXELS = 0x0CF4
--GL_UNPACK_ALIGNMENT = 0x0CF5
--GL_PACK_LSB_FIRST = 0x0D01
--GL_PACK_ROW_LENGTH = 0x0D02
--GL_PACK_SKIP_ROWS = 0x0D03
--GL_PACK_SKIP_PIXELS = 0x0D04
--GL_PACK_ALIGNMENT = 0x0D05
--GL_MAX_TEXTURE_SIZE = 0x0D33
--GL_MAX_VIEWPORT_DIMS = 0x0D3A
--GL_SUBPIXEL_BITS = 0x0D50
--GL_RED_BITS = 0x0D52
--GL_GREEN_BITS = 0x0D53
--GL_BLUE_BITS = 0x0D54
--GL_ALPHA_BITS = 0x0D55
--GL_DEPTH_BITS = 0x0D56
--GL_STENCIL_BITS = 0x0D57
--GL_TEXTURE_BINDING_2D = 0x8069
--GL_SAMPLE_BUFFERS = 0x80A8
--GL_SAMPLES = 0x80A9
--GL_SAMPLE_COVERAGE_VALUE = 0x80AA
--GL_SAMPLE_COVERAGE_INVERT = 0x80AB
--GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
--GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3
--GL_DONT_CARE = 0x1100
--GL_FASTEST = 0x1101
--GL_NICEST = 0x1102
--GL_GENERATE_MIPMAP_HINT = 0x8192
--GL_BYTE = 0x1400
--GL_UNSIGNED_BYTE = 0x1401
--GL_SHORT = 0x1402
--GL_UNSIGNED_SHORT = 0x1403
--GL_INT = 0x1404
--GL_UNSIGNED_INT = 0x1405
--GL_FLOAT = 0x1406
--GL_FIXED = 0x140C
--GL_DEPTH_COMPONENT = 0x1902
--GL_ALPHA = 0x1906
--GL_RGB = 0x1907
--GL_RGBA = 0x1908
--GL_LUMINANCE = 0x1909
--GL_LUMINANCE_ALPHA = 0x190A
--GL_NEVER = 0x0200
--GL_LESS = 0x0201
--GL_EQUAL = 0x0202
--GL_LEQUAL = 0x0203
--GL_GREATER = 0x0204
--GL_NOTEQUAL = 0x0205
--GL_GEQUAL = 0x0206
--GL_ALWAYS = 0x0207
--GL_KEEP = 0x1E00
--GL_REPLACE = 0x1E01
--GL_INCR = 0x1E02
--GL_DECR = 0x1E03
--GL_INVERT = 0x150A
--GL_INCR_WRAP = 0x8507
--GL_DECR_WRAP = 0x8508
--GL_VENDOR = 0x1F00
--GL_RENDERER = 0x1F01
--GL_VERSION = 0x1F02
--GL_EXTENSIONS = 0x1F03
--GL_NEAREST = 0x2600
--GL_LINEAR = 0x2601
--GL_NEAREST_MIPMAP_NEAREST = 0x2700
--GL_LINEAR_MIPMAP_NEAREST = 0x2701
--GL_NEAREST_MIPMAP_LINEAR = 0x2702
--GL_LINEAR_MIPMAP_LINEAR = 0x2703
--GL_TEXTURE_MAG_FILTER = 0x2800
--GL_TEXTURE_MIN_FILTER = 0x2801
--GL_TEXTURE_WRAP_S = 0x2802
--GL_TEXTURE_WRAP_T = 0x2803
--GL_TEXTURE = 0x1702
--GL_TEXTURE_CUBE_MAP = 0x8513
--GL_TEXTURE_BINDING_CUBE_MAP = 0x8514
--GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
--GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
--GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
--GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
--GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
--GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
--GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
--GL_TEXTURE0 = 0x84C0
--GL_TEXTURE1 = 0x84C1
--GL_TEXTURE2 = 0x84C2
--GL_TEXTURE3 = 0x84C3
--GL_TEXTURE4 = 0x84C4
--GL_TEXTURE5 = 0x84C5
--GL_TEXTURE6 = 0x84C6
--GL_TEXTURE7 = 0x84C7
--GL_TEXTURE8 = 0x84C8
--GL_TEXTURE9 = 0x84C9
--GL_TEXTURE10 = 0x84CA
--GL_TEXTURE11 = 0x84CB
--GL_TEXTURE12 = 0x84CC
--GL_TEXTURE13 = 0x84CD
--GL_TEXTURE14 = 0x84CE
--GL_TEXTURE15 = 0x84CF
--GL_TEXTURE16 = 0x84D0
--GL_TEXTURE17 = 0x84D1
--GL_TEXTURE18 = 0x84D2
--GL_TEXTURE19 = 0x84D3
--GL_TEXTURE20 = 0x84D4
--GL_TEXTURE21 = 0x84D5
--GL_TEXTURE22 = 0x84D6
--GL_TEXTURE23 = 0x84D7
--GL_TEXTURE24 = 0x84D8
--GL_TEXTURE25 = 0x84D9
--GL_TEXTURE26 = 0x84DA
--GL_TEXTURE27 = 0x84DB
--GL_TEXTURE28 = 0x84DC
--GL_TEXTURE29 = 0x84DD
--GL_TEXTURE30 = 0x84DE
--GL_TEXTURE31 = 0x84DF
--GL_ACTIVE_TEXTURE = 0x84E0
--GL_CLAMP = 0x2900
--GL_REPEAT = 0x2901
--GL_CLAMP_TO_EDGE = 0x812F
--GL_MIRRORED_REPEAT = 0x8370
--GL_FLOAT_VEC2 = 0x8B50
--GL_FLOAT_VEC3 = 0x8B51
--GL_FLOAT_VEC4 = 0x8B52
--GL_INT_VEC2 = 0x8B53
--GL_INT_VEC3 = 0x8B54
--GL_INT_VEC4 = 0x8B55
--GL_BOOL = 0x8B56
--GL_BOOL_VEC2 = 0x8B57
--GL_BOOL_VEC3 = 0x8B58
--GL_BOOL_VEC4 = 0x8B59
--GL_FLOAT_MAT2 = 0x8B5A
--GL_FLOAT_MAT3 = 0x8B5B
--GL_FLOAT_MAT4 = 0x8B5C
--GL_SAMPLER_2D = 0x8B5E
--GL_SAMPLER_CUBE = 0x8B60
--GL_COLOR = 0x1800
--GL_DEPTH = 0x1801
--GL_STENCIL = 0x1802
--GL_RED = 0x1903
--GL_RGB8 = 0x8051
--GL_RGBA8 = 0x8058
--GL_LUMINANCE16 = 0x8042
--GL_LUMINANCE8 = 0x8040
--GL_BGRA_EXT = 0x80E1
--GL_R16 = 0x822A
--GL_RGB4 = 0x804F
--GL_RGB5 = 0x8050
--GL_RGB10 = 0x8052
--GL_RGB12 = 0x8053
--GL_RGB16 = 0x8054
--GL_RGB10_A2 = 0x8059
--GL_RGBA12 = 0x805A
--GL_RGBA16 = 0x805B
--GL_ALPHA8 = 0x803C
--GL_ALPHA16 = 0x803E
--GL_RG16 = 0x822C
--GL_R16_SNORM = 0x8F98
--GL_RG16_SNORM = 0x8F99
--GL_RGB16_SNORM = 0x8F9A
--GL_RGBA16_SNORM = 0x8F9B
--GL_RED_SNORM = 0x8F90
--GL_RG_SNORM = 0x8F91
--GL_RGB_SNORM = 0x8F92
--GL_RGBA_SNORM = 0x8F93
--GL_DRAW_BUFFER = 0x0C01
--GL_READ_BUFFER = 0x0C02
--GL_DOUBLEBUFFER = 0x0C32
--GL_STEREO = 0x0C33
--GL_PROXY_TEXTURE_2D = 0x8064
--GL_TEXTURE_WIDTH = 0x1000
--GL_TEXTURE_HEIGHT = 0x1001
--GL_TEXTURE_INTERNAL_FORMAT = 0x1003
--GL_HALF_FLOAT_OES = 0x8D61



-- VK_INDEX

VK_LBUTTON = 0x01 -- (Left mouse button)
VK_RBUTTON = 0x02 -- (Right mouse button)
VK_CANCEL = 0x03 -- (Control-break processing)
VK_MBUTTON = 0x04 -- (Middle mouse button, wheel)
VK_XBUTTON1 = 0x05 -- (X1 mouse button)
VK_XBUTTON2 = 0x06 -- (X2 mouse button)
VK_BACK = 0x08 -- (Backspace key)
VK_TAB = 0x09
VK_CLEAR = 0x0C
VK_RETURN = 0x0D -- (Enter key)
VK_SHIFT = 0x10
VK_CONTROL = 0x11
VK_MENU = 0x12 -- (Alt key)
VK_PAUSE = 0x13
VK_CAPITAL = 0x14 -- (Caps Lock key)
VK_KANA = 0x15
VK_HANGUL = 0x15 -- (Hangul mode)
VK_JUNJA = 0x17
VK_FINAL = 0x18
VK_HANJA = 0x19
VK_KANJI = 0x19 -- (Kanji mode)
VK_ESCAPE = 0x1B
VK_CONVERT = 0x1C
VK_NONCONVERT = 0x1D
VK_ACCEPT = 0x1E
VK_MODECHANGE = 0x1F
VK_SPACE = 0x20
VK_PRIOR = 0x21 -- (Page Up key)
VK_NEXT = 0x22 -- (Page Down key)
VK_END = 0x23
VK_HOME = 0x24
VK_LEFT = 0x25 -- (Left Arrow key)
VK_UP = 0x26 -- (Up Arrow key)
VK_RIGHT = 0x27 -- (Right Arrow key)
VK_DOWN = 0x28 -- (Down Arrow key)
VK_SELECT = 0x29
VK_PRINT = 0x2A
VK_EXECUTE = 0x2B
VK_SNAPSHOT = 0x2C -- (Print Screen key)
VK_INSERT = 0x2D
VK_DELETE = 0x2E
VK_HELP = 0x2F

VK_0 = 0x30
VK_1 = 0x31
VK_2 = 0x32
VK_3 = 0x33
VK_4 = 0x34
VK_5 = 0x35
VK_6 = 0x36
VK_7 = 0x37
VK_8 = 0x38
VK_9 = 0x39
VK_A = 0x41
VK_B = 0x42
VK_C = 0x43
VK_D = 0x44
VK_E = 0x45
VK_F = 0x46
VK_G = 0x47
VK_H = 0x48
VK_I = 0x49
VK_J = 0x4A
VK_K = 0x4B
VK_L = 0x4C
VK_M = 0x4D
VK_N = 0x4E
VK_O = 0x4F
VK_P = 0x50
VK_Q = 0x51
VK_R = 0x52
VK_S = 0x53
VK_T = 0x54
VK_U = 0x55
VK_V = 0x56
VK_W = 0x57
VK_X = 0x58
VK_Y = 0x59
VK_Z = 0x5A
VK_LWIN = 0x5B -- (Left Windows key)
VK_RWIN = 0x5C -- (Right Windows key)
VK_APPS = 0x5D -- (Applications key)
VK_SLEEP = 0x5F -- (Computer Sleep key)

VK_NUMPAD0 = 0x60
VK_NUMPAD1 = 0x61
VK_NUMPAD2 = 0x62
VK_NUMPAD3 = 0x63
VK_NUMPAD4 = 0x64
VK_NUMPAD5 = 0x65
VK_NUMPAD6 = 0x66
VK_NUMPAD7 = 0x67
VK_NUMPAD8 = 0x68
VK_NUMPAD9 = 0x69
VK_MULTIPLY = 0x6A -- (Multiply key)
VK_ADD = 0x6B -- (Add key)
VK_SEPARATOR = 0x6C -- (Separator key)
VK_SUBTRACT = 0x6D -- (Subtract key)
VK_DECIMAL = 0x6E -- (Decimal key)
VK_DIVIDE = 0x6F -- (Divide key)
VK_F1 = 0x70
VK_F2 = 0x71
VK_F3 = 0x72
VK_F4 = 0x73
VK_F5 = 0x74
VK_F6 = 0x75
VK_F7 = 0x76
VK_F8 = 0x77
VK_F9 = 0x78
VK_F10 = 0x79
VK_F11 = 0x7A
VK_F12 = 0x7B
VK_F13 = 0x7C
VK_F14 = 0x7D
VK_F15 = 0x7E
VK_F16 = 0x7F
VK_F17 = 0x80
VK_F18 = 0x81
VK_F19 = 0x82
VK_F20 = 0x83
VK_F21 = 0x84
VK_F22 = 0x85
VK_F23 = 0x86
VK_F24 = 0x87

VK_NUMLOCK = 0x90
VK_SCROLL = 0x91 -- (Scroll Lock key)
VK_LSHIFT = 0xA0
VK_RSHIFT = 0xA1
VK_LCONTROL = 0xA2
VK_RCONTROL = 0xA3
VK_LMENU = 0xA4 -- (Left Alt key)
VK_RMENU = 0xA5 -- (Right Alt key)
VK_BROWSER_BACK = 0xA6 -- (Browser Back key)
VK_BROWSER_FORWARD = 0xA7 -- (Browser Forward key)
VK_BROWSER_REFRESH = 0xA8 -- (Browser Refresh key)
VK_BROWSER_STOP = 0xA9 -- (Browser Stop key)
VK_BROWSER_SEARCH = 0xAA -- (Browser Search key)
VK_BROWSER_FAVORITES = 0xAB -- (Browser Favorites key)
VK_BROWSER_HOME = 0xAC -- (Browser Home key)
VK_VOLUME_MUTE = 0xAD -- (Volume Mute key)
VK_VOLUME_DOWN = 0xAE -- (Volume Down key)
VK_VOLUME_UP = 0xAF -- (Volume Up key)
VK_MEDIA_NEXT_TRACK = 0xB0 -- (Next Track key)
VK_MEDIA_PREV_TRACK = 0xB1 -- (Previous Track key)
VK_MEDIA_STOP = 0xB2 -- (Stop Media key)
VK_MEDIA_PLAY_PAUSE = 0xB3 -- (Play/Pause Media key)
VK_LAUNCH_MAIL = 0xB4 -- (Launch Mail key)
VK_LAUNCH_MEDIA_SELECT = 0xB5 -- (Launch Media Selector key)
VK_LAUNCH_APP1 = 0xB6 -- (Launch App1 key)
VK_LAUNCH_APP2 = 0xB7 -- (Launch App2 key)

VK_OEM_1 = 0xBA -- (For the US standard keyboard, the ';:' key)
VK_OEM_PLUS = 0xBB -- (+)
VK_OEM_COMMA = 0xBC -- (,)
VK_OEM_MINUS = 0xBD -- (-)
VK_OEM_PERIOD = 0xBE -- (.)
VK_OEM_2 = 0xBF -- (For the US standard keyboard, the '/?' key)
VK_OEM_3 = 0xC0 -- (For the US standard keyboard, the '`~' key)
VK_OEM_4 = 0xDB -- (For the US standard keyboard, the '[{' key)
VK_OEM_5 = 0xDC -- (For the US standard keyboard, the '\|' key)
VK_OEM_6 = 0xDD -- (For the US standard keyboard, the ']}' key)
VK_OEM_7 = 0xDE -- (For the US standard keyboard, the ''"' key)
VK_OEM_8 = 0xDF
VK_OEM_102 = 0xE2
VK_PROCESSKEY = 0xE5
VK_PACKET = 0xE7
VK_ATTN = 0xF6
VK_CRSEL = 0xF7
VK_EXSEL = 0xF8
VK_EREOF = 0xF9
VK_PLAY = 0xFA
VK_ZOOM = 0xFB
VK_NONAME = 0xFC
VK_PA1 = 0xFD
VK_OEM_CLEAR = 0xFE