using System; namespace StgSharp.Graphics { //rename types in style of GLFW using _glfw = _GLFWlibrary; internal static unsafe class GLFW { internal static _glfw glfw = new _glfw(); //these are consts defined in GLFW3.h #region GLFW public const int GLFW_VERSION_MAJOR = 3; public const int GLFW_VERSION_MINOR = 4; public const int GLFW_VERSION_REVISION = 0; public const int GLFW_TRUE = 1; public const byte GLFW_FALSE = 0; public const byte GLFW_RELEASE = 0; public const int GLFW_PRESS = 1; public const int GLFW_REPEAT = 2; public const int GLFW_HAT_CENTERED = 0; public const int GLFW_HAT_UP = 1; public const int GLFW_HAT_RIGHT = 2; public const int GLFW_HAT_DOWN = 4; public const int GLFW_HAT_LEFT = 8; public const int GLFW_HAT_RIGHT_UP = (GLFW_HAT_RIGHT | GLFW_HAT_UP); public const int GLFW_HAT_RIGHT_DOWN = (GLFW_HAT_RIGHT | GLFW_HAT_DOWN); public const int GLFW_HAT_LEFT_UP = (GLFW_HAT_LEFT | GLFW_HAT_UP); public const int GLFW_HAT_LEFT_DOWN = (GLFW_HAT_LEFT | GLFW_HAT_DOWN); public const int GLFW_KEY_UNKNOWN = -1; public const int GLFW_KEY_SPACE = 32; public const int GLFW_KEY_APOSTROPHE = 39/*'*/; public const int GLFW_KEY_COMMA = 44/*,*/; public const int GLFW_KEY_MINUS = 45/*-*/; public const int GLFW_KEY_PERIOD = 46/*.*/; public const int GLFW_KEY_SLASH = 47/*/*/; public const int GLFW_KEY_0 = 48; public const int GLFW_KEY_1 = 49; public const int GLFW_KEY_2 = 50; public const int GLFW_KEY_3 = 51; public const int GLFW_KEY_4 = 52; public const int GLFW_KEY_5 = 53; public const int GLFW_KEY_6 = 54; public const int GLFW_KEY_7 = 55; public const int GLFW_KEY_8 = 56; public const int GLFW_KEY_9 = 57; public const int GLFW_KEY_SEMICOLON = 59/*;*/; public const int GLFW_KEY_EQUAL = 61/*=*/; public const int GLFW_KEY_A = 65; public const int GLFW_KEY_B = 66; public const int GLFW_KEY_C = 67; public const int GLFW_KEY_D = 68; public const int GLFW_KEY_E = 69; public const int GLFW_KEY_F = 70; public const int GLFW_KEY_G = 71; public const int GLFW_KEY_H = 72; public const int GLFW_KEY_I = 73; public const int GLFW_KEY_J = 74; public const int GLFW_KEY_K = 75; public const int GLFW_KEY_L = 76; public const int GLFW_KEY_M = 77; public const int GLFW_KEY_N = 78; public const int GLFW_KEY_O = 79; public const int GLFW_KEY_P = 80; public const int GLFW_KEY_Q = 81; public const int GLFW_KEY_R = 82; public const int GLFW_KEY_S = 83; public const int GLFW_KEY_T = 84; public const int GLFW_KEY_U = 85; public const int GLFW_KEY_V = 86; public const int GLFW_KEY_W = 87; public const int GLFW_KEY_X = 88; public const int GLFW_KEY_Y = 89; public const int GLFW_KEY_Z = 90; public const int GLFW_KEY_LEFT_BRACKET = 91/*[*/; public const int GLFW_KEY_BACKSLASH = 92/*\*/; public const int GLFW_KEY_RIGHT_BRACKET = 93/*]*/; public const int GLFW_KEY_GRAVE_ACCENT = 96/*`*/; public const int GLFW_KEY_WORLD_1 = 161/*non-US#1*/; public const int GLFW_KEY_WORLD_2 = 162/*non-US#2*/; public const int GLFW_KEY_ESCAPE = 256; public const int GLFW_KEY_ENTER = 257; public const int GLFW_KEY_TAB = 258; public const int GLFW_KEY_BACKSPACE = 259; public const int GLFW_KEY_INSERT = 260; public const int GLFW_KEY_DELETE = 261; public const int GLFW_KEY_RIGHT = 262; public const int GLFW_KEY_LEFT = 263; public const int GLFW_KEY_DOWN = 264; public const int GLFW_KEY_UP = 265; public const int GLFW_KEY_PAGE_UP = 266; public const int GLFW_KEY_PAGE_DOWN = 267; public const int GLFW_KEY_HOME = 268; public const int GLFW_KEY_END = 269; public const int GLFW_KEY_CAPS_LOCK = 280; public const int GLFW_KEY_SCROLL_LOCK = 281; public const int GLFW_KEY_NUM_LOCK = 282; public const int GLFW_KEY_PRINT_SCREEN = 283; public const int GLFW_KEY_PAUSE = 284; public const int GLFW_KEY_F1 = 290; public const int GLFW_KEY_F2 = 291; public const int GLFW_KEY_F3 = 292; public const int GLFW_KEY_F4 = 293; public const int GLFW_KEY_F5 = 294; public const int GLFW_KEY_F6 = 295; public const int GLFW_KEY_F7 = 296; public const int GLFW_KEY_F8 = 297; public const int GLFW_KEY_F9 = 298; public const int GLFW_KEY_F10 = 299; public const int GLFW_KEY_F11 = 300; public const int GLFW_KEY_F12 = 301; public const int GLFW_KEY_F13 = 302; public const int GLFW_KEY_F14 = 303; public const int GLFW_KEY_F15 = 304; public const int GLFW_KEY_F16 = 305; public const int GLFW_KEY_F17 = 306; public const int GLFW_KEY_F18 = 307; public const int GLFW_KEY_F19 = 308; public const int GLFW_KEY_F20 = 309; public const int GLFW_KEY_F21 = 310; public const int GLFW_KEY_F22 = 311; public const int GLFW_KEY_F23 = 312; public const int GLFW_KEY_F24 = 313; public const int GLFW_KEY_F25 = 314; public const int GLFW_KEY_KP_0 = 320; public const int GLFW_KEY_KP_1 = 321; public const int GLFW_KEY_KP_2 = 322; public const int GLFW_KEY_KP_3 = 323; public const int GLFW_KEY_KP_4 = 324; public const int GLFW_KEY_KP_5 = 325; public const int GLFW_KEY_KP_6 = 326; public const int GLFW_KEY_KP_7 = 327; public const int GLFW_KEY_KP_8 = 328; public const int GLFW_KEY_KP_9 = 329; public const int GLFW_KEY_KP_DECIMAL = 330; public const int GLFW_KEY_KP_DIVIDE = 331; public const int GLFW_KEY_KP_MULTIPLY = 332; public const int GLFW_KEY_KP_SUBTRACT = 333; public const int GLFW_KEY_KP_ADD = 334; public const int GLFW_KEY_KP_ENTER = 335; public const int GLFW_KEY_KP_EQUAL = 336; public const int GLFW_KEY_LEFT_SHIFT = 340; public const int GLFW_KEY_LEFT_CONTROL = 341; public const int GLFW_KEY_LEFT_ALT = 342; public const int GLFW_KEY_LEFT_SUPER = 343; public const int GLFW_KEY_RIGHT_SHIFT = 344; public const int GLFW_KEY_RIGHT_CONTROL = 345; public const int GLFW_KEY_RIGHT_ALT = 346; public const int GLFW_KEY_RIGHT_SUPER = 347; public const int GLFW_KEY_MENU = 348; public const int GLFW_KEY_LAST = GLFW_KEY_MENU; public const int GLFW_MOD_SHIFT = 0x0001; public const int GLFW_MOD_CONTROL = 0x0002; public const int GLFW_MOD_ALT = 0x0004; public const int GLFW_MOD_SUPER = 0x0008; public const int GLFW_MOD_CAPS_LOCK = 0x0010; public const int GLFW_MOD_NUM_LOCK = 0x0020; public const int GLFW_MOUSE_BUTTON_1 = 0; public const int GLFW_MOUSE_BUTTON_2 = 1; public const int GLFW_MOUSE_BUTTON_3 = 2; public const int GLFW_MOUSE_BUTTON_4 = 3; public const int GLFW_MOUSE_BUTTON_5 = 4; public const int GLFW_MOUSE_BUTTON_6 = 5; public const int GLFW_MOUSE_BUTTON_7 = 6; public const int GLFW_MOUSE_BUTTON_8 = 7; public const int GLFW_MOUSE_BUTTON_LAST = GLFW_MOUSE_BUTTON_8; public const int GLFW_MOUSE_BUTTON_LEFT = GLFW_MOUSE_BUTTON_1; public const int GLFW_MOUSE_BUTTON_RIGHT = GLFW_MOUSE_BUTTON_2; public const int GLFW_MOUSE_BUTTON_MIDDLE = GLFW_MOUSE_BUTTON_3; public const int GLFW_JOYSTICK_1 = 0; public const int GLFW_JOYSTICK_2 = 1; public const int GLFW_JOYSTICK_3 = 2; public const int GLFW_JOYSTICK_4 = 3; public const int GLFW_JOYSTICK_5 = 4; public const int GLFW_JOYSTICK_6 = 5; public const int GLFW_JOYSTICK_7 = 6; public const int GLFW_JOYSTICK_8 = 7; public const int GLFW_JOYSTICK_9 = 8; public const int GLFW_JOYSTICK_10 = 9; public const int GLFW_JOYSTICK_11 = 10; public const int GLFW_JOYSTICK_12 = 11; public const int GLFW_JOYSTICK_13 = 12; public const int GLFW_JOYSTICK_14 = 13; public const int GLFW_JOYSTICK_15 = 14; public const int GLFW_JOYSTICK_16 = 15; public const int GLFW_JOYSTICK_LAST = GLFW_JOYSTICK_16; public const int GLFW_GAMEPAD_BUTTON_A = 0; public const int GLFW_GAMEPAD_BUTTON_B = 1; public const int GLFW_GAMEPAD_BUTTON_X = 2; public const int GLFW_GAMEPAD_BUTTON_Y = 3; public const int GLFW_GAMEPAD_BUTTON_LEFT_BUMPER = 4; public const int GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER = 5; public const int GLFW_GAMEPAD_BUTTON_BACK = 6; public const int GLFW_GAMEPAD_BUTTON_START = 7; public const int GLFW_GAMEPAD_BUTTON_GUIDE = 8; public const int GLFW_GAMEPAD_BUTTON_LEFT_THUMB = 9; public const int GLFW_GAMEPAD_BUTTON_RIGHT_THUMB = 10; public const int GLFW_GAMEPAD_BUTTON_DPAD_UP = 11; public const int GLFW_GAMEPAD_BUTTON_DPAD_RIGHT = 12; public const int GLFW_GAMEPAD_BUTTON_DPAD_DOWN = 13; public const int GLFW_GAMEPAD_BUTTON_DPAD_LEFT = 14; public const int GLFW_GAMEPAD_BUTTON_LAST = GLFW_GAMEPAD_BUTTON_DPAD_LEFT; public const int GLFW_GAMEPAD_BUTTON_CROSS = GLFW_GAMEPAD_BUTTON_A; public const int GLFW_GAMEPAD_BUTTON_CIRCLE = GLFW_GAMEPAD_BUTTON_B; public const int GLFW_GAMEPAD_BUTTON_SQUARE = GLFW_GAMEPAD_BUTTON_X; public const int GLFW_GAMEPAD_BUTTON_TRIANGLE = GLFW_GAMEPAD_BUTTON_Y; public const int GLFW_GAMEPAD_AXIS_LEFT_X = 0; public const int GLFW_GAMEPAD_AXIS_LEFT_Y = 1; public const int GLFW_GAMEPAD_AXIS_RIGHT_X = 2; public const int GLFW_GAMEPAD_AXIS_RIGHT_Y = 3; public const int GLFW_GAMEPAD_AXIS_LEFT_TRIGGER = 4; public const int GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER = 5; public const int GLFW_GAMEPAD_AXIS_LAST = GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER; public const int GLFW_NO_ERROR = 0; public const int GLFW_NOT_INITIALIZED = 0x00010001; public const int GLFW_NO_CURRENT_CONTEXT = 0x00010002; public const int GLFW_INVALID_ENUM = 0x00010003; public const int GLFW_INVALID_VALUE = 0x00010004; public const int GLFW_OUT_OF_MEMORY = 0x00010005; public const int GLFW_API_UNAVAILABLE = 0x00010006; public const int GLFW_VERSION_UNAVAILABLE = 0x00010007; public const int GLFW_PLATFORM_ERROR = 0x00010008; public const int GLFW_FORMAT_UNAVAILABLE = 0x00010009; public const int GLFW_NO_WINDOW_CONTEXT = 0x0001000A; public const int GLFW_CURSOR_UNAVAILABLE = 0x0001000B; public const int GLFW_FEATURE_UNAVAILABLE = 0x0001000C; public const int GLFW_FEATURE_UNIMPLEMENTED = 0x0001000D; public const int GLFW_PLATFORM_UNAVAILABLE = 0x0001000E; public const int GLFW_FOCUSED = 0x00020001; public const int GLFW_ICONIFIED = 0x00020002; public const int GLFW_RESIZABLE = 0x00020003; public const int GLFW_VISIBLE = 0x00020004; public const int GLFW_DECORATED = 0x00020005; public const int GLFW_AUTO_ICONIFY = 0x00020006; public const int GLFW_FLOATING = 0x00020007; public const int GLFW_MAXIMIZED = 0x00020008; public const int GLFW_CENTER_CURSOR = 0x00020009; public const int GLFW_TRANSPARENT_FRAMEBUFFER = 0x0002000A; public const int GLFW_HOVERED = 0x0002000B; public const int GLFW_FOCUS_ON_SHOW = 0x0002000C; public const int GLFW_MOUSE_PASSTHROUGH = 0x0002000D; public const int GLFW_POSITION_X = 0x0002000E; public const int GLFW_POSITION_Y = 0x0002000F; public const int GLFW_RED_BITS = 0x00021001; public const int GLFW_GREEN_BITS = 0x00021002; public const int GLFW_BLUE_BITS = 0x00021003; public const int GLFW_ALPHA_BITS = 0x00021004; public const int GLFW_DEPTH_BITS = 0x00021005; public const int GLFW_STENCIL_BITS = 0x00021006; public const int GLFW_ACCUM_RED_BITS = 0x00021007; public const int GLFW_ACCUM_GREEN_BITS = 0x00021008; public const int GLFW_ACCUM_BLUE_BITS = 0x00021009; public const int GLFW_ACCUM_ALPHA_BITS = 0x0002100A; public const int GLFW_AUX_BUFFERS = 0x0002100B; public const int GLFW_STEREO = 0x0002100C; public const int GLFW_SAMPLES = 0x0002100D; public const int GLFW_SRGB_CAPABLE = 0x0002100E; public const int GLFW_REFRESH_RATE = 0x0002100F; public const int GLFW_DOUBLEBUFFER = 0x00021010; public const int GLFW_CLIENT_API = 0x00022001; public const int GLFW_CONTEXT_VERSION_MAJOR = 0x00022002; public const int GLFW_CONTEXT_VERSION_MINOR = 0x00022003; public const int GLFW_CONTEXT_REVISION = 0x00022004; public const int GLFW_CONTEXT_ROBUSTNESS = 0x00022005; public const int GLFW_OPENGL_FORWARD_COMPAT = 0x00022006; public const int GLFW_CONTEXT_DEBUG = 0x00022007; public const int GLFW_OPENGL_DEBUG_CONTEXT = GLFW_CONTEXT_DEBUG; public const int GLFW_OPENGL_PROFILE = 0x00022008; public const int GLFW_CONTEXT_RELEASE_BEHAVIOR = 0x00022009; public const int GLFW_CONTEXT_NO_ERROR = 0x0002200A; public const int GLFW_CONTEXT_CREATION_API = 0x0002200B; public const int GLFW_SCALE_TO_MONITOR = 0x0002200C; public const int GLFW_COCOA_RETINA_FRAMEBUFFER = 0x00023001; public const int GLFW_COCOA_FRAME_NAME = 0x00023002; public const int GLFW_COCOA_GRAPHICS_SWITCHING = 0x00023003; public const int GLFW_X11_CLASS_NAME = 0x00024001; public const int GLFW_X11_INSTANCE_NAME = 0x00024002; public const int GLFW_WIN32_KEYBOARD_MENU = 0x00025001; public const int GLFW_WAYLAND_APP_ID = 0x00026001; public const int GLFW_NO_API = 0; public const int GLFW_OPENGL_API = 0x00030001; public const int GLFW_OPENGL_ES_API = 0x00030002; public const int GLFW_NO_ROBUSTNESS = 0; public const int GLFW_NO_RESET_NOTIFICATION = 0x00031001; public const int GLFW_LOSE_CONTEXT_ON_RESET = 0x00031002; public const int GLFW_OPENGL_ANY_PROFILE = 0; public const int GLFW_OPENGL_CORE_PROFILE = 0x00032001; public const int GLFW_OPENGL_COMPAT_PROFILE = 0x00032002; public const int GLFW_CURSOR = 0x00033001; public const int GLFW_STICKY_KEYS = 0x00033002; public const int GLFW_STICKY_MOUSE_BUTTONS = 0x00033003; public const int GLFW_LOCK_KEY_MODS = 0x00033004; public const int GLFW_RAW_MOUSE_MOTION = 0x00033005; public const int GLFW_CURSOR_NORMAL = 0x00034001; public const int GLFW_CURSOR_HIDDEN = 0x00034002; public const int GLFW_CURSOR_DISABLED = 0x00034003; public const int GLFW_CURSOR_CAPTURED = 0x00034004; public const int GLFW_ANY_RELEASE_BEHAVIOR = 0; public const int GLFW_RELEASE_BEHAVIOR_FLUSH = 0x00035001; public const int GLFW_RELEASE_BEHAVIOR_NONE = 0x00035002; public const int GLFW_NATIVE_CONTEXT_API = 0x00036001; public const int GLFW_EGL_CONTEXT_API = 0x00036002; public const int GLFW_OSMESA_CONTEXT_API = 0x00036003; public const int GLFW_ANGLE_PLATFORM_TYPE_NONE = 0x00037001; public const int GLFW_ANGLE_PLATFORM_TYPE_OPENGL = 0x00037002; public const int GLFW_ANGLE_PLATFORM_TYPE_OPENGLES = 0x00037003; public const int GLFW_ANGLE_PLATFORM_TYPE_D3D9 = 0x00037004; public const int GLFW_ANGLE_PLATFORM_TYPE_D3D11 = 0x00037005; public const int GLFW_ANGLE_PLATFORM_TYPE_VULKAN = 0x00037007; public const int GLFW_ANGLE_PLATFORM_TYPE_METAL = 0x00037008; public const int GLFW_WAYLAND_PREFER_LIBDECOR = 0x00038001; public const int GLFW_WAYLAND_DISABLE_LIBDECOR = 0x00038002; public const uint GLFW_ANY_POSITION = 0x80000000; public const int GLFW_ARROW_CURSOR = 0x00036001; public const int GLFW_IBEAM_CURSOR = 0x00036002; public const int GLFW_CROSSHAIR_CURSOR = 0x00036003; public const int GLFW_POINTING_HAND_CURSOR = 0x00036004; public const int GLFW_RESIZE_EW_CURSOR = 0x00036005; public const int GLFW_RESIZE_NS_CURSOR = 0x00036006; public const int GLFW_RESIZE_NWSE_CURSOR = 0x00036007; public const int GLFW_RESIZE_NESW_CURSOR = 0x00036008; public const int GLFW_RESIZE_ALL_CURSOR = 0x00036009; public const int GLFW_NOT_ALLOWED_CURSOR = 0x0003600A; public const int GLFW_HRESIZE_CURSOR = GLFW_RESIZE_EW_CURSOR; public const int GLFW_VRESIZE_CURSOR = GLFW_RESIZE_NS_CURSOR; public const int GLFW_HAND_CURSOR = GLFW_POINTING_HAND_CURSOR; public const int GLFW_CONNECTED = 0x00040001; public const int GLFW_DISCONNECTED = 0x00040002; public const int GLFW_JOYSTICK_HAT_BUTTONS = 0x00050001; public const int GLFW_ANGLE_PLATFORM_TYPE = 0x00050002; public const int GLFW_PLATFORM = 0x00050003; public const int GLFW_COCOA_CHDIR_RESOURCES = 0x00051001; public const int GLFW_COCOA_MENUBAR = 0x00051002; public const int GLFW_X11_XCB_VULKAN_SURFACE = 0x00052001; public const int GLFW_WAYLAND_LIBDECOR = 0x00053001; public const int GLFW_ANY_PLATFORM = 0x00060000; public const int GLFW_PLATFORM_WIN32 = 0x00060001; public const int GLFW_PLATFORM_COCOA = 0x00060002; public const int GLFW_PLATFORM_WAYLAND = 0x00060003; public const int GLFW_PLATFORM_X11 = 0x00060004; public const int GLFW_PLATFORM_NULL = 0x00060005; public const int GLFW_DONT_CARE = -1; //consts in internal.h internal const uint _GLFW_INSERT_FIRST = 0; internal const uint _GLFW_INSERT_LAST = 1; internal const uint _GLFW_POLL_PRESENCE = 0; internal const uint _GLFW_POLL_AXES = 1; internal const uint _GLFW_POLL_BUTTONS = 2; internal const uint _GLFW_POLL_ALL = (_GLFW_POLL_AXES | _GLFW_POLL_BUTTONS); internal const uint _GLFW_MESSAGE_SIZE = 1024; internal const int GL_VERSION = 0x1f02; internal const uint GL_NONE = 0; internal const uint GL_COLOR_BUFFER_BIT = 0x00004000; internal const uint GL_UNSIGNED_BYTE = 0x1401; internal const uint GL_EXTENSIONS = 0x1f03; internal const uint GL_NUM_EXTENSIONS = 0x821d; internal const uint GL_CONTEXT_FLAGS = 0x821e; internal const uint GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001; internal const uint GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002; internal const uint GL_CONTEXT_PROFILE_MASK = 0x9126; internal const uint GL_CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002; internal const uint GL_CONTEXT_CORE_PROFILE_BIT = 0x00000001; internal const uint GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256; internal const uint GL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252; internal const uint GL_NO_RESET_NOTIFICATION_ARB = 0x8261; internal const uint GL_CONTEXT_RELEASE_BEHAVIOR = 0x82fb; internal const uint GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82fc; internal const uint GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR = 0x00000008; internal const uint EGL_SUCCESS = 0x3000; internal const uint EGL_NOT_INITIALIZED = 0x3001; internal const uint EGL_BAD_ACCESS = 0x3002; internal const uint EGL_BAD_ALLOC = 0x3003; internal const uint EGL_BAD_ATTRIBUTE = 0x3004; internal const uint EGL_BAD_CONFIG = 0x3005; internal const uint EGL_BAD_CONTEXT = 0x3006; internal const uint EGL_BAD_CURRENT_SURFACE = 0x3007; internal const uint EGL_BAD_DISPLAY = 0x3008; internal const uint EGL_BAD_MATCH = 0x3009; internal const uint EGL_BAD_NATIVE_PIXMAP = 0x300a; internal const uint EGL_BAD_NATIVE_WINDOW = 0x300b; internal const uint EGL_BAD_PARAMETER = 0x300c; internal const uint EGL_BAD_SURFACE = 0x300d; internal const uint EGL_CONTEXT_LOST = 0x300e; internal const uint EGL_COLOR_BUFFER_TYPE = 0x303f; internal const uint EGL_RGB_BUFFER = 0x308e; internal const uint EGL_SURFACE_TYPE = 0x3033; internal const uint EGL_WINDOW_BIT = 0x0004; internal const uint EGL_RENDERABLE_TYPE = 0x3040; internal const uint EGL_OPENGL_ES_BIT = 0x0001; internal const uint EGL_OPENGL_ES2_BIT = 0x0004; internal const uint EGL_OPENGL_BIT = 0x0008; internal const uint EGL_ALPHA_SIZE = 0x3021; internal const uint EGL_BLUE_SIZE = 0x3022; internal const uint EGL_GREEN_SIZE = 0x3023; internal const uint EGL_RED_SIZE = 0x3024; internal const uint EGL_DEPTH_SIZE = 0x3025; internal const uint EGL_STENCIL_SIZE = 0x3026; internal const uint EGL_SAMPLES = 0x3031; internal const uint EGL_OPENGL_ES_API = 0x30a0; internal const uint EGL_OPENGL_API = 0x30a2; internal const uint EGL_NONE = 0x3038; internal const uint EGL_RENDER_BUFFER = 0x3086; internal const uint EGL_SINGLE_BUFFER = 0x3085; internal const uint EGL_EXTENSIONS = 0x3055; internal const uint EGL_CONTEXT_CLIENT_VERSION = 0x3098; internal const uint EGL_NATIVE_VISUAL_ID = 0x302e; //internal const uint EGL_NO_SURFACE = ((EGLSurface)0); internal static void* EGL_NO_SURFACE = ((void*)0); //internal const uint EGL_NO_DISPLAY = ((EGLDisplay)0); internal static void* EGL_NO_DISPLAY = ((void*)0); //internal const uint EGL_NO_CONTEXT = ((EGLContext)0); internal static void* EGL_NO_CONTEXT = ((void*)0); //internal const uint EGL_DEFAULT_DISPLAY = ((EGLNativeDisplayType)0); internal static void* EGL_DEFAULT_DISPLAY = ((void*)0); internal const uint EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR = 0x00000002; internal const uint EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR = 0x00000001; internal const uint EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR = 0x00000002; internal const uint EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR = 0x00000001; internal const uint EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR = 0x31bd; internal const uint EGL_NO_RESET_NOTIFICATION_KHR = 0x31be; internal const uint EGL_LOSE_CONTEXT_ON_RESET_KHR = 0x31bf; internal const uint EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR = 0x00000004; internal const uint EGL_CONTEXT_MAJOR_VERSION_KHR = 0x3098; internal const uint EGL_CONTEXT_MINOR_VERSION_KHR = 0x30fb; internal const uint EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR = 0x30fd; internal const uint EGL_CONTEXT_FLAGS_KHR = 0x30fc; internal const uint EGL_CONTEXT_OPENGL_NO_ERROR_KHR = 0x31b3; internal const uint EGL_GL_COLORSPACE_KHR = 0x309d; internal const uint EGL_GL_COLORSPACE_SRGB_KHR = 0x3089; internal const uint EGL_CONTEXT_RELEASE_BEHAVIOR_KHR = 0x2097; internal const uint EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR = 0; internal const uint EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR = 0x2098; internal const uint EGL_PLATFORM_X11_EXT = 0x31d5; internal const uint EGL_PLATFORM_WAYLAND_EXT = 0x31d8; internal const uint EGL_PRESENT_OPAQUE_EXT = 0x31df; internal const uint EGL_PLATFORM_ANGLE_ANGLE = 0x3202; internal const uint EGL_PLATFORM_ANGLE_TYPE_ANGLE = 0x3203; internal const uint EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE = 0x320d; internal const uint EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE = 0x320e; internal const uint EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE = 0x3207; internal const uint EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE = 0x3208; internal const uint EGL_PLATFORM_ANGLE_TYPE_VULKAN_ANGLE = 0x3450; internal const uint EGL_PLATFORM_ANGLE_TYPE_METAL_ANGLE = 0x3489; internal const uint EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE = 0x348f; internal static IntPtr eglGetConfigAttrib = glfw.egl.GetConfigAttrib; internal static IntPtr eglGetConfigs = glfw.egl.GetConfigs; internal static IntPtr eglGetDisplay = glfw.egl.GetDisplay; internal static IntPtr eglGetError = glfw.egl.GetError; internal static IntPtr eglInitialize = glfw.egl.Initialize; internal static IntPtr eglTerminate = glfw.egl.Terminate; internal static IntPtr eglBindAPI = glfw.egl.BindAPI; internal static IntPtr eglCreateContext = glfw.egl.CreateContext; internal static IntPtr eglDestroySurface = glfw.egl.DestroySurface; internal static IntPtr eglDestroyContext = glfw.egl.DestroyContext; internal static IntPtr eglCreateWindowSurface = glfw.egl.CreateWindowSurface; internal static IntPtr eglMakeCurrent = glfw.egl.MakeCurrent; internal static IntPtr eglSwapBuffers = glfw.egl.SwapBuffers; internal static IntPtr eglSwapInterval = glfw.egl.SwapInterval; internal static IntPtr eglQueryString = glfw.egl.QueryString; internal static IntPtr eglGetProcAddress = glfw.egl.GetProcAddress; internal static IntPtr eglGetPlatformDisplayEXT = glfw.egl.GetPlatformDisplayEXT; internal static IntPtr eglCreatePlatformWindowSurfaceEXT = glfw.egl.CreatePlatformWindowSurfaceEXT; internal const uint OSMESA_RGBA = 0x1908; internal const uint OSMESA_FORMAT = 0x22; internal const uint OSMESA_DEPTH_BITS = 0x30; internal const uint OSMESA_STENCIL_BITS = 0x31; internal const uint OSMESA_ACCUM_BITS = 0x32; internal const uint OSMESA_PROFILE = 0x33; internal const uint OSMESA_CORE_PROFILE = 0x34; internal const uint OSMESA_COMPAT_PROFILE = 0x35; internal const uint OSMESA_CONTEXT_MAJOR_VERSION = 0x36; internal const uint OSMESA_CONTEXT_MINOR_VERSION = 0x37; internal static IntPtr OSMesaCreateContextExt; internal static IntPtr OSMesaCreateContextAttribs; internal static IntPtr OSMesaDestroyContext; internal static IntPtr OSMesaMakeCurrent; internal static IntPtr OSMesaGetColorBuffer; internal static IntPtr OSMesaGetDepthBuffer; internal static IntPtr OSMesaGetProcAddress; internal const uint VK_NULL_HANDLE = 0; internal static IntPtr vkGetInstanceProcAddr; #endregion #region GLAD public const int GL_DEPTH_BUFFER_BIT = 0x00000100; public const int GL_STENCIL_BUFFER_BIT = 0x00000400; public const int GL_FALSE = 0; public const int GL_TRUE = 1; public const int GL_POINTS = 0x0000; public const int GL_LINES = 0x0001; public const int GL_LINE_LOOP = 0x0002; public const int GL_LINE_STRIP = 0x0003; public const int GL_TRIANGLES = 0x0004; public const int GL_TRIANGLE_STRIP = 0x0005; public const int GL_TRIANGLE_FAN = 0x0006; public const int GL_NEVER = 0x0200; public const int GL_LESS = 0x0201; public const int GL_EQUAL = 0x0202; public const int GL_LEQUAL = 0x0203; public const int GL_GREATER = 0x0204; public const int GL_NOTEQUAL = 0x0205; public const int GL_GEQUAL = 0x0206; public const int GL_ALWAYS = 0x0207; public const int GL_ZERO = 0; public const int GL_ONE = 1; public const int GL_SRC_COLOR = 0x0300; public const int GL_ONE_MINUS_SRC_COLOR = 0x0301; public const int GL_SRC_ALPHA = 0x0302; public const int GL_ONE_MINUS_SRC_ALPHA = 0x0303; public const int GL_DST_ALPHA = 0x0304; public const int GL_ONE_MINUS_DST_ALPHA = 0x0305; public const int GL_DST_COLOR = 0x0306; public const int GL_ONE_MINUS_DST_COLOR = 0x0307; public const int GL_SRC_ALPHA_SATURATE = 0x0308; public const int GL_FRONT_LEFT = 0x0400; public const int GL_FRONT_RIGHT = 0x0401; public const int GL_BACK_LEFT = 0x0402; public const int GL_BACK_RIGHT = 0x0403; public const int GL_FRONT = 0x0404; public const int GL_BACK = 0x0405; public const int GL_LEFT = 0x0406; public const int GL_RIGHT = 0x0407; public const int GL_FRONT_AND_BACK = 0x0408; public const int GL_NO_ERROR = 0; public const int GL_INVALID_ENUM = 0x0500; public const int GL_INVALID_VALUE = 0x0501; public const int GL_INVALID_OPERATION = 0x0502; public const int GL_OUT_OF_MEMORY = 0x0505; public const int GL_CW = 0x0900; public const int GL_CCW = 0x0901; public const int GL_POINT_SIZE = 0x0B11; public const int GL_POINT_SIZE_RANGE = 0x0B12; public const int GL_POINT_SIZE_GRANULARITY = 0x0B13; public const int GL_LINE_SMOOTH = 0x0B20; public const int GL_LINE_WIDTH = 0x0B21; public const int GL_LINE_WIDTH_RANGE = 0x0B22; public const int GL_LINE_WIDTH_GRANULARITY = 0x0B23; public const int GL_POLYGON_MODE = 0x0B40; public const int GL_POLYGON_SMOOTH = 0x0B41; public const int GL_CULL_FACE = 0x0B44; public const int GL_CULL_FACE_MODE = 0x0B45; public const int GL_FRONT_FACE = 0x0B46; public const int GL_DEPTH_RANGE = 0x0B70; public const int GL_DEPTH_TEST = 0x0B71; public const int GL_DEPTH_WRITEMASK = 0x0B72; public const int GL_DEPTH_CLEAR_VALUE = 0x0B73; public const int GL_DEPTH_FUNC = 0x0B74; public const int GL_STENCIL_TEST = 0x0B90; public const int GL_STENCIL_CLEAR_VALUE = 0x0B91; public const int GL_STENCIL_FUNC = 0x0B92; public const int GL_STENCIL_VALUE_MASK = 0x0B93; public const int GL_STENCIL_FAIL = 0x0B94; public const int GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95; public const int GL_STENCIL_PASS_DEPTH_PASS = 0x0B96; public const int GL_STENCIL_REF = 0x0B97; public const int GL_STENCIL_WRITEMASK = 0x0B98; public const int GL_VIEWPORT = 0x0BA2; public const int GL_DITHER = 0x0BD0; public const int GL_BLEND_DST = 0x0BE0; public const int GL_BLEND_SRC = 0x0BE1; public const int GL_BLEND = 0x0BE2; public const int GL_LOGIC_OP_MODE = 0x0BF0; public const int GL_DRAW_BUFFER = 0x0C01; public const int GL_READ_BUFFER = 0x0C02; public const int GL_SCISSOR_BOX = 0x0C10; public const int GL_SCISSOR_TEST = 0x0C11; public const int GL_COLOR_CLEAR_VALUE = 0x0C22; public const int GL_COLOR_WRITEMASK = 0x0C23; public const int GL_DOUBLEBUFFER = 0x0C32; public const int GL_STEREO = 0x0C33; public const int GL_LINE_SMOOTH_HINT = 0x0C52; public const int GL_POLYGON_SMOOTH_HINT = 0x0C53; public const int GL_UNPACK_SWAP_BYTES = 0x0CF0; public const int GL_UNPACK_LSB_FIRST = 0x0CF1; public const int GL_UNPACK_ROW_LENGTH = 0x0CF2; public const int GL_UNPACK_SKIP_ROWS = 0x0CF3; public const int GL_UNPACK_SKIP_PIXELS = 0x0CF4; public const int GL_UNPACK_ALIGNMENT = 0x0CF5; public const int GL_PACK_SWAP_BYTES = 0x0D00; public const int GL_PACK_LSB_FIRST = 0x0D01; public const int GL_PACK_ROW_LENGTH = 0x0D02; public const int GL_PACK_SKIP_ROWS = 0x0D03; public const int GL_PACK_SKIP_PIXELS = 0x0D04; public const int GL_PACK_ALIGNMENT = 0x0D05; public const int GL_MAX_TEXTURE_SIZE = 0x0D33; public const int GL_MAX_VIEWPORT_DIMS = 0x0D3A; public const int GL_SUBPIXEL_BITS = 0x0D50; public const int GL_TEXTURE_1D = 0x0DE0; public const int GL_TEXTURE_2D = 0x0DE1; public const int GL_TEXTURE_WIDTH = 0x1000; public const int GL_TEXTURE_HEIGHT = 0x1001; public const int GL_TEXTURE_BORDER_COLOR = 0x1004; public const int GL_DONT_CARE = 0x1100; public const int GL_FASTEST = 0x1101; public const int GL_NICEST = 0x1102; public const int GL_BYTE = 0x1400; public const int GL_SHORT = 0x1402; public const int GL_UNSIGNED_SHORT = 0x1403; public const int GL_INT = 0x1404; public const int GL_UNSIGNED_INT = 0x1405; public const int GL_FLOAT = 0x1406; public const int GL_CLEAR = 0x1500; public const int GL_AND = 0x1501; public const int GL_AND_REVERSE = 0x1502; public const int GL_COPY = 0x1503; public const int GL_AND_INVERTED = 0x1504; public const int GL_NOOP = 0x1505; public const int GL_XOR = 0x1506; public const int GL_OR = 0x1507; public const int GL_NOR = 0x1508; public const int GL_EQUIV = 0x1509; public const int GL_INVERT = 0x150A; public const int GL_OR_REVERSE = 0x150B; public const int GL_COPY_INVERTED = 0x150C; public const int GL_OR_INVERTED = 0x150D; public const int GL_NAND = 0x150E; public const int GL_SET = 0x150F; public const int GL_TEXTURE = 0x1702; public const int GL_COLOR = 0x1800; public const int GL_DEPTH = 0x1801; public const int GL_STENCIL = 0x1802; public const int GL_STENCIL_INDEX = 0x1901; public const int GL_DEPTH_COMPONENT = 0x1902; public const int GL_RED = 0x1903; public const int GL_GREEN = 0x1904; public const int GL_BLUE = 0x1905; public const int GL_ALPHA = 0x1906; public const int GL_RGB = 0x1907; public const int GL_RGBA = 0x1908; public const int GL_POINT = 0x1B00; public const int GL_LINE = 0x1B01; public const int GL_FILL = 0x1B02; public const int GL_KEEP = 0x1E00; public const int GL_REPLACE = 0x1E01; public const int GL_INCR = 0x1E02; public const int GL_DECR = 0x1E03; public const int GL_VENDOR = 0x1F00; public const int GL_RENDERER = 0x1F01; public const int GL_NEAREST = 0x2600; public const int GL_LINEAR = 0x2601; public const int GL_NEAREST_MIPMAP_NEAREST = 0x2700; public const int GL_LINEAR_MIPMAP_NEAREST = 0x2701; public const int GL_NEAREST_MIPMAP_LINEAR = 0x2702; public const int GL_LINEAR_MIPMAP_LINEAR = 0x2703; public const int GL_TEXTURE_MAG_FILTER = 0x2800; public const int GL_TEXTURE_MIN_FILTER = 0x2801; public const int GL_TEXTURE_WRAP_S = 0x2802; public const int GL_TEXTURE_WRAP_T = 0x2803; public const int GL_REPEAT = 0x2901; public const int GL_COLOR_LOGIC_OP = 0x0BF2; public const int GL_POLYGON_OFFSET_UNITS = 0x2A00; public const int GL_POLYGON_OFFSET_POINT = 0x2A01; public const int GL_POLYGON_OFFSET_LINE = 0x2A02; public const int GL_POLYGON_OFFSET_FILL = 0x8037; public const int GL_POLYGON_OFFSET_FACTOR = 0x8038; public const int GL_TEXTURE_BINDING_1D = 0x8068; public const int GL_TEXTURE_BINDING_2D = 0x8069; public const int GL_TEXTURE_INTERNAL_FORMAT = 0x1003; public const int GL_TEXTURE_RED_SIZE = 0x805C; public const int GL_TEXTURE_GREEN_SIZE = 0x805D; public const int GL_TEXTURE_BLUE_SIZE = 0x805E; public const int GL_TEXTURE_ALPHA_SIZE = 0x805F; public const int GL_DOUBLE = 0x140A; public const int GL_PROXY_TEXTURE_1D = 0x8063; public const int GL_PROXY_TEXTURE_2D = 0x8064; public const int GL_R3_G3_B2 = 0x2A10; public const int GL_RGB4 = 0x804F; public const int GL_RGB5 = 0x8050; public const int GL_RGB8 = 0x8051; public const int GL_RGB10 = 0x8052; public const int GL_RGB12 = 0x8053; public const int GL_RGB16 = 0x8054; public const int GL_RGBA2 = 0x8055; public const int GL_RGBA4 = 0x8056; public const int GL_RGB5_A1 = 0x8057; public const int GL_RGBA8 = 0x8058; public const int GL_RGB10_A2 = 0x8059; public const int GL_RGBA12 = 0x805A; public const int GL_RGBA16 = 0x805B; public const int GL_UNSIGNED_BYTE_3_3_2 = 0x8032; public const int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033; public const int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034; public const int GL_UNSIGNED_INT_8_8_8_8 = 0x8035; public const int GL_UNSIGNED_INT_10_10_10_2 = 0x8036; public const int GL_TEXTURE_BINDING_3D = 0x806A; public const int GL_PACK_SKIP_IMAGES = 0x806B; public const int GL_PACK_IMAGE_HEIGHT = 0x806C; public const int GL_UNPACK_SKIP_IMAGES = 0x806D; public const int GL_UNPACK_IMAGE_HEIGHT = 0x806E; public const int GL_TEXTURE_3D = 0x806F; public const int GL_PROXY_TEXTURE_3D = 0x8070; public const int GL_TEXTURE_DEPTH = 0x8071; public const int GL_TEXTURE_WRAP_R = 0x8072; public const int GL_MAX_3D_TEXTURE_SIZE = 0x8073; public const int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362; public const int GL_UNSIGNED_SHORT_5_6_5 = 0x8363; public const int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364; public const int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365; public const int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366; public const int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367; public const int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368; public const int GL_BGR = 0x80E0; public const int GL_BGRA = 0x80E1; public const int GL_MAX_ELEMENTS_VERTICES = 0x80E8; public const int GL_MAX_ELEMENTS_INDICES = 0x80E9; public const int GL_CLAMP_TO_EDGE = 0x812F; public const int GL_TEXTURE_MIN_LOD = 0x813A; public const int GL_TEXTURE_MAX_LOD = 0x813B; public const int GL_TEXTURE_BASE_LEVEL = 0x813C; public const int GL_TEXTURE_MAX_LEVEL = 0x813D; public const int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12; public const int GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13; public const int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22; public const int GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23; public const int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E; public const int GL_TEXTURE0 = 0x84C0; public const int GL_TEXTURE1 = 0x84C1; public const int GL_TEXTURE2 = 0x84C2; public const int GL_TEXTURE3 = 0x84C3; public const int GL_TEXTURE4 = 0x84C4; public const int GL_TEXTURE5 = 0x84C5; public const int GL_TEXTURE6 = 0x84C6; public const int GL_TEXTURE7 = 0x84C7; public const int GL_TEXTURE8 = 0x84C8; public const int GL_TEXTURE9 = 0x84C9; public const int GL_TEXTURE10 = 0x84CA; public const int GL_TEXTURE11 = 0x84CB; public const int GL_TEXTURE12 = 0x84CC; public const int GL_TEXTURE13 = 0x84CD; public const int GL_TEXTURE14 = 0x84CE; public const int GL_TEXTURE15 = 0x84CF; public const int GL_TEXTURE16 = 0x84D0; public const int GL_TEXTURE17 = 0x84D1; public const int GL_TEXTURE18 = 0x84D2; public const int GL_TEXTURE19 = 0x84D3; public const int GL_TEXTURE20 = 0x84D4; public const int GL_TEXTURE21 = 0x84D5; public const int GL_TEXTURE22 = 0x84D6; public const int GL_TEXTURE23 = 0x84D7; public const int GL_TEXTURE24 = 0x84D8; public const int GL_TEXTURE25 = 0x84D9; public const int GL_TEXTURE26 = 0x84DA; public const int GL_TEXTURE27 = 0x84DB; public const int GL_TEXTURE28 = 0x84DC; public const int GL_TEXTURE29 = 0x84DD; public const int GL_TEXTURE30 = 0x84DE; public const int GL_TEXTURE31 = 0x84DF; public const int GL_ACTIVE_TEXTURE = 0x84E0; public const int GL_MULTISAMPLE = 0x809D; public const int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; public const int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; public const int GL_SAMPLE_COVERAGE = 0x80A0; public const int GL_SAMPLE_BUFFERS = 0x80A8; public const int GL_SAMPLES = 0x80A9; public const int GL_SAMPLE_COVERAGE_VALUE = 0x80AA; public const int GL_SAMPLE_COVERAGE_INVERT = 0x80AB; public const int GL_TEXTURE_CUBE_MAP = 0x8513; public const int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; public const int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; public const int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; public const int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; public const int GL_PROXY_TEXTURE_CUBE_MAP = 0x851B; public const int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; public const int GL_COMPRESSED_RGB = 0x84ED; public const int GL_COMPRESSED_RGBA = 0x84EE; public const int GL_TEXTURE_COMPRESSION_HINT = 0x84EF; public const int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; public const int GL_TEXTURE_COMPRESSED = 0x86A1; public const int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; public const int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; public const int GL_CLAMP_TO_BORDER = 0x812D; public const int GL_BLEND_DST_RGB = 0x80C8; public const int GL_BLEND_SRC_RGB = 0x80C9; public const int GL_BLEND_DST_ALPHA = 0x80CA; public const int GL_BLEND_SRC_ALPHA = 0x80CB; public const int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128; public const int GL_DEPTH_COMPONENT16 = 0x81A5; public const int GL_DEPTH_COMPONENT24 = 0x81A6; public const int GL_DEPTH_COMPONENT32 = 0x81A7; public const int GL_MIRRORED_REPEAT = 0x8370; public const int GL_MAX_TEXTURE_LOD_BIAS = 0x84FD; public const int GL_TEXTURE_LOD_BIAS = 0x8501; public const int GL_INCR_WRAP = 0x8507; public const int GL_DECR_WRAP = 0x8508; public const int GL_TEXTURE_DEPTH_SIZE = 0x884A; public const int GL_TEXTURE_COMPARE_MODE = 0x884C; public const int GL_TEXTURE_COMPARE_FUNC = 0x884D; public const int GL_BLEND_COLOR = 0x8005; public const int GL_BLEND_EQUATION = 0x8009; public const int GL_CONSTANT_COLOR = 0x8001; public const int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002; public const int GL_CONSTANT_ALPHA = 0x8003; public const int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004; public const int GL_FUNC_ADD = 0x8006; public const int GL_FUNC_REVERSE_SUBTRACT = 0x800B; public const int GL_FUNC_SUBTRACT = 0x800A; public const int GL_MIN = 0x8007; public const int GL_MAX = 0x8008; public const int GL_BUFFER_SIZE = 0x8764; public const int GL_BUFFER_USAGE = 0x8765; public const int GL_QUERY_COUNTER_BITS = 0x8864; public const int GL_CURRENT_QUERY = 0x8865; public const int GL_QUERY_RESULT = 0x8866; public const int GL_QUERY_RESULT_AVAILABLE = 0x8867; public const int GL_ARRAY_BUFFER = 0x8892; public const int GL_ELEMENT_ARRAY_BUFFER = 0x8893; public const int GL_ARRAY_BUFFER_BINDING = 0x8894; public const int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; public const int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; public const int GL_READ_ONLY = 0x88B8; public const int GL_WRITE_ONLY = 0x88B9; public const int GL_READ_WRITE = 0x88BA; public const int GL_BUFFER_ACCESS = 0x88BB; public const int GL_BUFFER_MAPPED = 0x88BC; public const int GL_BUFFER_MAP_POINTER = 0x88BD; public const int GL_STREAM_DRAW = 0x88E0; public const int GL_STREAM_READ = 0x88E1; public const int GL_STREAM_COPY = 0x88E2; public const int GL_STATIC_DRAW = 0x88E4; public const int GL_STATIC_READ = 0x88E5; public const int GL_STATIC_COPY = 0x88E6; public const int GL_DYNAMIC_DRAW = 0x88E8; public const int GL_DYNAMIC_READ = 0x88E9; public const int GL_DYNAMIC_COPY = 0x88EA; public const int GL_SAMPLES_PASSED = 0x8914; public const int GL_SRC1_ALPHA = 0x8589; public const int GL_BLEND_EQUATION_RGB = 0x8009; public const int GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; public const int GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; public const int GL_VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; public const int GL_VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; public const int GL_CURRENT_VERTEX_ATTRIB = 0x8626; public const int GL_VERTEX_PROGRAM_POINT_SIZE = 0x8642; public const int GL_VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; public const int GL_STENCIL_BACK_FUNC = 0x8800; public const int GL_STENCIL_BACK_FAIL = 0x8801; public const int GL_STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; public const int GL_STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; public const int GL_MAX_DRAW_BUFFERS = 0x8824; public const int GL_DRAW_BUFFER0 = 0x8825; public const int GL_DRAW_BUFFER1 = 0x8826; public const int GL_DRAW_BUFFER2 = 0x8827; public const int GL_DRAW_BUFFER3 = 0x8828; public const int GL_DRAW_BUFFER4 = 0x8829; public const int GL_DRAW_BUFFER5 = 0x882A; public const int GL_DRAW_BUFFER6 = 0x882B; public const int GL_DRAW_BUFFER7 = 0x882C; public const int GL_DRAW_BUFFER8 = 0x882D; public const int GL_DRAW_BUFFER9 = 0x882E; public const int GL_DRAW_BUFFER10 = 0x882F; public const int GL_DRAW_BUFFER11 = 0x8830; public const int GL_DRAW_BUFFER12 = 0x8831; public const int GL_DRAW_BUFFER13 = 0x8832; public const int GL_DRAW_BUFFER14 = 0x8833; public const int GL_DRAW_BUFFER15 = 0x8834; public const int GL_BLEND_EQUATION_ALPHA = 0x883D; public const int GL_MAX_VERTEX_ATTRIBS = 0x8869; public const int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; public const int GL_MAX_TEXTURE_IMAGE_UNITS = 0x8872; public const int GL_FRAGMENT_SHADER = 0x8B30; public const int GL_VERTEX_SHADER = 0x8B31; public const int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49; public const int GL_MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A; public const int GL_MAX_VARYING_FLOATS = 0x8B4B; public const int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; public const int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; public const int GL_SHADER_TYPE = 0x8B4F; public const int GL_FLOAT_VEC2 = 0x8B50; public const int GL_FLOAT_VEC3 = 0x8B51; public const int GL_FLOAT_VEC4 = 0x8B52; public const int GL_INT_VEC2 = 0x8B53; public const int GL_INT_VEC3 = 0x8B54; public const int GL_INT_VEC4 = 0x8B55; public const int GL_BOOL = 0x8B56; public const int GL_BOOL_VEC2 = 0x8B57; public const int GL_BOOL_VEC3 = 0x8B58; public const int GL_BOOL_VEC4 = 0x8B59; public const int GL_FLOAT_MAT2 = 0x8B5A; public const int GL_FLOAT_MAT3 = 0x8B5B; public const int GL_FLOAT_MAT4 = 0x8B5C; public const int GL_SAMPLER_1D = 0x8B5D; public const int GL_SAMPLER_2D = 0x8B5E; public const int GL_SAMPLER_3D = 0x8B5F; public const int GL_SAMPLER_CUBE = 0x8B60; public const int GL_SAMPLER_1D_SHADOW = 0x8B61; public const int GL_SAMPLER_2D_SHADOW = 0x8B62; public const int GL_DELETE_STATUS = 0x8B80; public const int GL_COMPILE_STATUS = 0x8B81; public const int GL_LINK_STATUS = 0x8B82; public const int GL_VALIDATE_STATUS = 0x8B83; public const int GL_INFO_LOG_LENGTH = 0x8B84; public const int GL_ATTACHED_SHADERS = 0x8B85; public const int GL_ACTIVE_UNIFORMS = 0x8B86; public const int GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87; public const int GL_SHADER_SOURCE_LENGTH = 0x8B88; public const int GL_ACTIVE_ATTRIBUTES = 0x8B89; public const int GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A; public const int GL_FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B; public const int GL_SHADING_LANGUAGE_VERSION = 0x8B8C; public const int GL_CURRENT_PROGRAM = 0x8B8D; public const int GL_POINT_SPRITE_COORD_ORIGIN = 0x8CA0; public const int GL_LOWER_LEFT = 0x8CA1; public const int GL_UPPER_LEFT = 0x8CA2; public const int GL_STENCIL_BACK_REF = 0x8CA3; public const int GL_STENCIL_BACK_VALUE_MASK = 0x8CA4; public const int GL_STENCIL_BACK_WRITEMASK = 0x8CA5; public const int GL_PIXEL_PACK_BUFFER = 0x88EB; public const int GL_PIXEL_UNPACK_BUFFER = 0x88EC; public const int GL_PIXEL_PACK_BUFFER_BINDING = 0x88ED; public const int GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88EF; public const int GL_FLOAT_MAT2x3 = 0x8B65; public const int GL_FLOAT_MAT2x4 = 0x8B66; public const int GL_FLOAT_MAT3x2 = 0x8B67; public const int GL_FLOAT_MAT3x4 = 0x8B68; public const int GL_FLOAT_MAT4x2 = 0x8B69; public const int GL_FLOAT_MAT4x3 = 0x8B6A; public const int GL_SRGB = 0x8C40; public const int GL_SRGB8 = 0x8C41; public const int GL_SRGB_ALPHA = 0x8C42; public const int GL_SRGB8_ALPHA8 = 0x8C43; public const int GL_COMPRESSED_SRGB = 0x8C48; public const int GL_COMPRESSED_SRGB_ALPHA = 0x8C49; public const int GL_COMPARE_REF_TO_TEXTURE = 0x884E; public const int GL_CLIP_DISTANCE0 = 0x3000; public const int GL_CLIP_DISTANCE1 = 0x3001; public const int GL_CLIP_DISTANCE2 = 0x3002; public const int GL_CLIP_DISTANCE3 = 0x3003; public const int GL_CLIP_DISTANCE4 = 0x3004; public const int GL_CLIP_DISTANCE5 = 0x3005; public const int GL_CLIP_DISTANCE6 = 0x3006; public const int GL_CLIP_DISTANCE7 = 0x3007; public const int GL_MAX_CLIP_DISTANCES = 0x0D32; public const int GL_MAJOR_VERSION = 0x821B; public const int GL_MINOR_VERSION = 0x821C; public const int GL_COMPRESSED_RED = 0x8225; public const int GL_COMPRESSED_RG = 0x8226; public const int GL_RGBA32F = 0x8814; public const int GL_RGB32F = 0x8815; public const int GL_RGBA16F = 0x881A; public const int GL_RGB16F = 0x881B; public const int GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD; public const int GL_MAX_ARRAY_TEXTURE_LAYERS = 0x88FF; public const int GL_MIN_PROGRAM_TEXEL_OFFSET = 0x8904; public const int GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905; public const int GL_CLAMP_READ_COLOR = 0x891C; public const int GL_FIXED_ONLY = 0x891D; public const int GL_MAX_VARYING_COMPONENTS = 0x8B4B; public const int GL_TEXTURE_1D_ARRAY = 0x8C18; public const int GL_PROXY_TEXTURE_1D_ARRAY = 0x8C19; public const int GL_TEXTURE_2D_ARRAY = 0x8C1A; public const int GL_PROXY_TEXTURE_2D_ARRAY = 0x8C1B; public const int GL_TEXTURE_BINDING_1D_ARRAY = 0x8C1C; public const int GL_TEXTURE_BINDING_2D_ARRAY = 0x8C1D; public const int GL_R11F_G11F_B10F = 0x8C3A; public const int GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B; public const int GL_RGB9_E5 = 0x8C3D; public const int GL_UNSIGNED_INT_5_9_9_9_REV = 0x8C3E; public const int GL_TEXTURE_SHARED_SIZE = 0x8C3F; public const int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76; public const int GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F; public const int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80; public const int GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83; public const int GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84; public const int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85; public const int GL_PRIMITIVES_GENERATED = 0x8C87; public const int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88; public const int GL_RASTERIZER_DISCARD = 0x8C89; public const int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A; public const int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B; public const int GL_INTERLEAVED_ATTRIBS = 0x8C8C; public const int GL_SEPARATE_ATTRIBS = 0x8C8D; public const int GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E; public const int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F; public const int GL_RGBA32UI = 0x8D70; public const int GL_RGB32UI = 0x8D71; public const int GL_RGBA16UI = 0x8D76; public const int GL_RGB16UI = 0x8D77; public const int GL_RGBA8UI = 0x8D7C; public const int GL_RGB8UI = 0x8D7D; public const int GL_RGBA32I = 0x8D82; public const int GL_RGB32I = 0x8D83; public const int GL_RGBA16I = 0x8D88; public const int GL_RGB16I = 0x8D89; public const int GL_RGBA8I = 0x8D8E; public const int GL_RGB8I = 0x8D8F; public const int GL_RED_INTEGER = 0x8D94; public const int GL_GREEN_INTEGER = 0x8D95; public const int GL_BLUE_INTEGER = 0x8D96; public const int GL_RGB_INTEGER = 0x8D98; public const int GL_RGBA_INTEGER = 0x8D99; public const int GL_BGR_INTEGER = 0x8D9A; public const int GL_BGRA_INTEGER = 0x8D9B; public const int GL_SAMPLER_1D_ARRAY = 0x8DC0; public const int GL_SAMPLER_2D_ARRAY = 0x8DC1; public const int GL_SAMPLER_1D_ARRAY_SHADOW = 0x8DC3; public const int GL_SAMPLER_2D_ARRAY_SHADOW = 0x8DC4; public const int GL_SAMPLER_CUBE_SHADOW = 0x8DC5; public const int GL_UNSIGNED_INT_VEC2 = 0x8DC6; public const int GL_UNSIGNED_INT_VEC3 = 0x8DC7; public const int GL_UNSIGNED_INT_VEC4 = 0x8DC8; public const int GL_INT_SAMPLER_1D = 0x8DC9; public const int GL_INT_SAMPLER_2D = 0x8DCA; public const int GL_INT_SAMPLER_3D = 0x8DCB; public const int GL_INT_SAMPLER_CUBE = 0x8DCC; public const int GL_INT_SAMPLER_1D_ARRAY = 0x8DCE; public const int GL_INT_SAMPLER_2D_ARRAY = 0x8DCF; public const int GL_UNSIGNED_INT_SAMPLER_1D = 0x8DD1; public const int GL_UNSIGNED_INT_SAMPLER_2D = 0x8DD2; public const int GL_UNSIGNED_INT_SAMPLER_3D = 0x8DD3; public const int GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4; public const int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6; public const int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7; public const int GL_QUERY_WAIT = 0x8E13; public const int GL_QUERY_NO_WAIT = 0x8E14; public const int GL_QUERY_BY_REGION_WAIT = 0x8E15; public const int GL_QUERY_BY_REGION_NO_WAIT = 0x8E16; public const int GL_BUFFER_ACCESS_FLAGS = 0x911F; public const int GL_BUFFER_MAP_LENGTH = 0x9120; public const int GL_BUFFER_MAP_OFFSET = 0x9121; public const int GL_DEPTH_COMPONENT32F = 0x8CAC; public const int GL_DEPTH32F_STENCIL8 = 0x8CAD; public const int GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD; public const int GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506; public const int GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210; public const int GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211; public const int GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212; public const int GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213; public const int GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214; public const int GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215; public const int GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216; public const int GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217; public const int GL_FRAMEBUFFER_DEFAULT = 0x8218; public const int GL_FRAMEBUFFER_UNDEFINED = 0x8219; public const int GL_DEPTH_STENCIL_ATTACHMENT = 0x821A; public const int GL_MAX_RENDERBUFFER_SIZE = 0x84E8; public const int GL_DEPTH_STENCIL = 0x84F9; public const int GL_UNSIGNED_INT_24_8 = 0x84FA; public const int GL_DEPTH24_STENCIL8 = 0x88F0; public const int GL_TEXTURE_STENCIL_SIZE = 0x88F1; public const int GL_TEXTURE_RED_TYPE = 0x8C10; public const int GL_TEXTURE_GREEN_TYPE = 0x8C11; public const int GL_TEXTURE_BLUE_TYPE = 0x8C12; public const int GL_TEXTURE_ALPHA_TYPE = 0x8C13; public const int GL_TEXTURE_DEPTH_TYPE = 0x8C16; public const int GL_UNSIGNED_NORMALIZED = 0x8C17; public const int GL_FRAMEBUFFER_BINDING = 0x8CA6; public const int GL_DRAW_FRAMEBUFFER_BINDING = 0x8CA6; public const int GL_RENDERBUFFER_BINDING = 0x8CA7; public const int GL_READ_FRAMEBUFFER = 0x8CA8; public const int GL_DRAW_FRAMEBUFFER = 0x8CA9; public const int GL_READ_FRAMEBUFFER_BINDING = 0x8CAA; public const int GL_RENDERBUFFER_SAMPLES = 0x8CAB; public const int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; public const int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4; public const int GL_FRAMEBUFFER_COMPLETE = 0x8CD5; public const int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; public const int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; public const int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB; public const int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC; public const int GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD; public const int GL_MAX_COLOR_ATTACHMENTS = 0x8CDF; public const int GL_COLOR_ATTACHMENT0 = 0x8CE0; public const int GL_COLOR_ATTACHMENT1 = 0x8CE1; public const int GL_COLOR_ATTACHMENT2 = 0x8CE2; public const int GL_COLOR_ATTACHMENT3 = 0x8CE3; public const int GL_COLOR_ATTACHMENT4 = 0x8CE4; public const int GL_COLOR_ATTACHMENT5 = 0x8CE5; public const int GL_COLOR_ATTACHMENT6 = 0x8CE6; public const int GL_COLOR_ATTACHMENT7 = 0x8CE7; public const int GL_COLOR_ATTACHMENT8 = 0x8CE8; public const int GL_COLOR_ATTACHMENT9 = 0x8CE9; public const int GL_COLOR_ATTACHMENT10 = 0x8CEA; public const int GL_COLOR_ATTACHMENT11 = 0x8CEB; public const int GL_COLOR_ATTACHMENT12 = 0x8CEC; public const int GL_COLOR_ATTACHMENT13 = 0x8CED; public const int GL_COLOR_ATTACHMENT14 = 0x8CEE; public const int GL_COLOR_ATTACHMENT15 = 0x8CEF; public const int GL_COLOR_ATTACHMENT16 = 0x8CF0; public const int GL_COLOR_ATTACHMENT17 = 0x8CF1; public const int GL_COLOR_ATTACHMENT18 = 0x8CF2; public const int GL_COLOR_ATTACHMENT19 = 0x8CF3; public const int GL_COLOR_ATTACHMENT20 = 0x8CF4; public const int GL_COLOR_ATTACHMENT21 = 0x8CF5; public const int GL_COLOR_ATTACHMENT22 = 0x8CF6; public const int GL_COLOR_ATTACHMENT23 = 0x8CF7; public const int GL_COLOR_ATTACHMENT24 = 0x8CF8; public const int GL_COLOR_ATTACHMENT25 = 0x8CF9; public const int GL_COLOR_ATTACHMENT26 = 0x8CFA; public const int GL_COLOR_ATTACHMENT27 = 0x8CFB; public const int GL_COLOR_ATTACHMENT28 = 0x8CFC; public const int GL_COLOR_ATTACHMENT29 = 0x8CFD; public const int GL_COLOR_ATTACHMENT30 = 0x8CFE; public const int GL_COLOR_ATTACHMENT31 = 0x8CFF; public const int GL_DEPTH_ATTACHMENT = 0x8D00; public const int GL_STENCIL_ATTACHMENT = 0x8D20; public const int GL_FRAMEBUFFER = 0x8D40; public const int GL_RENDERBUFFER = 0x8D41; public const int GL_RENDERBUFFER_WIDTH = 0x8D42; public const int GL_RENDERBUFFER_HEIGHT = 0x8D43; public const int GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; public const int GL_STENCIL_INDEX1 = 0x8D46; public const int GL_STENCIL_INDEX4 = 0x8D47; public const int GL_STENCIL_INDEX8 = 0x8D48; public const int GL_STENCIL_INDEX16 = 0x8D49; public const int GL_RENDERBUFFER_RED_SIZE = 0x8D50; public const int GL_RENDERBUFFER_GREEN_SIZE = 0x8D51; public const int GL_RENDERBUFFER_BLUE_SIZE = 0x8D52; public const int GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53; public const int GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54; public const int GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55; public const int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56; public const int GL_MAX_SAMPLES = 0x8D57; public const int GL_FRAMEBUFFER_SRGB = 0x8DB9; public const int GL_HALF_FLOAT = 0x140B; public const int GL_MAP_READ_BIT = 0x0001; public const int GL_MAP_WRITE_BIT = 0x0002; public const int GL_MAP_INVALIDATE_RANGE_BIT = 0x0004; public const int GL_MAP_INVALIDATE_BUFFER_BIT = 0x0008; public const int GL_MAP_FLUSH_EXPLICIT_BIT = 0x0010; public const int GL_MAP_UNSYNCHRONIZED_BIT = 0x0020; public const int GL_COMPRESSED_RED_RGTC1 = 0x8DBB; public const int GL_COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC; public const int GL_COMPRESSED_RG_RGTC2 = 0x8DBD; public const int GL_COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE; public const int GL_RG = 0x8227; public const int GL_RG_INTEGER = 0x8228; public const int GL_R8 = 0x8229; public const int GL_R16 = 0x822A; public const int GL_RG8 = 0x822B; public const int GL_RG16 = 0x822C; public const int GL_R16F = 0x822D; public const int GL_R32F = 0x822E; public const int GL_RG16F = 0x822F; public const int GL_RG32F = 0x8230; public const int GL_R8I = 0x8231; public const int GL_R8UI = 0x8232; public const int GL_R16I = 0x8233; public const int GL_R16UI = 0x8234; public const int GL_R32I = 0x8235; public const int GL_R32UI = 0x8236; public const int GL_RG8I = 0x8237; public const int GL_RG8UI = 0x8238; public const int GL_RG16I = 0x8239; public const int GL_RG16UI = 0x823A; public const int GL_RG32I = 0x823B; public const int GL_RG32UI = 0x823C; public const int GL_VERTEX_ARRAY_BINDING = 0x85B5; public const int GL_SAMPLER_2D_RECT = 0x8B63; public const int GL_SAMPLER_2D_RECT_SHADOW = 0x8B64; public const int GL_SAMPLER_BUFFER = 0x8DC2; public const int GL_INT_SAMPLER_2D_RECT = 0x8DCD; public const int GL_INT_SAMPLER_BUFFER = 0x8DD0; public const int GL_UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5; public const int GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8; public const int GL_TEXTURE_BUFFER = 0x8C2A; public const int GL_MAX_TEXTURE_BUFFER_SIZE = 0x8C2B; public const int GL_TEXTURE_BINDING_BUFFER = 0x8C2C; public const int GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D; public const int GL_TEXTURE_RECTANGLE = 0x84F5; public const int GL_TEXTURE_BINDING_RECTANGLE = 0x84F6; public const int GL_PROXY_TEXTURE_RECTANGLE = 0x84F7; public const int GL_MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8; public const int GL_R8_SNORM = 0x8F94; public const int GL_RG8_SNORM = 0x8F95; public const int GL_RGB8_SNORM = 0x8F96; public const int GL_RGBA8_SNORM = 0x8F97; public const int GL_R16_SNORM = 0x8F98; public const int GL_RG16_SNORM = 0x8F99; public const int GL_RGB16_SNORM = 0x8F9A; public const int GL_RGBA16_SNORM = 0x8F9B; public const int GL_SIGNED_NORMALIZED = 0x8F9C; public const int GL_PRIMITIVE_RESTART = 0x8F9D; public const int GL_PRIMITIVE_RESTART_INDEX = 0x8F9E; public const int GL_COPY_READ_BUFFER = 0x8F36; public const int GL_COPY_WRITE_BUFFER = 0x8F37; public const int GL_UNIFORM_BUFFER = 0x8A11; public const int GL_UNIFORM_BUFFER_BINDING = 0x8A28; public const int GL_UNIFORM_BUFFER_START = 0x8A29; public const int GL_UNIFORM_BUFFER_SIZE = 0x8A2A; public const int GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B; public const int GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C; public const int GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D; public const int GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E; public const int GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F; public const int GL_MAX_UNIFORM_BLOCK_SIZE = 0x8A30; public const int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31; public const int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32; public const int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33; public const int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34; public const int GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35; public const int GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36; public const int GL_UNIFORM_TYPE = 0x8A37; public const int GL_UNIFORM_SIZE = 0x8A38; public const int GL_UNIFORM_NAME_LENGTH = 0x8A39; public const int GL_UNIFORM_BLOCK_INDEX = 0x8A3A; public const int GL_UNIFORM_OFFSET = 0x8A3B; public const int GL_UNIFORM_ARRAY_STRIDE = 0x8A3C; public const int GL_UNIFORM_MATRIX_STRIDE = 0x8A3D; public const int GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E; public const int GL_UNIFORM_BLOCK_BINDING = 0x8A3F; public const int GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40; public const int GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41; public const int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42; public const int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43; public const int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44; public const int GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45; public const int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46; public const int GL_LINES_ADJACENCY = 0x000A; public const int GL_LINE_STRIP_ADJACENCY = 0x000B; public const int GL_TRIANGLES_ADJACENCY = 0x000C; public const int GL_TRIANGLE_STRIP_ADJACENCY = 0x000D; public const int GL_PROGRAM_POINT_SIZE = 0x8642; public const int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29; public const int GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7; public const int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8; public const int GL_GEOMETRY_SHADER = 0x8DD9; public const int GL_GEOMETRY_VERTICES_OUT = 0x8916; public const int GL_GEOMETRY_INPUT_TYPE = 0x8917; public const int GL_GEOMETRY_OUTPUT_TYPE = 0x8918; public const int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF; public const int GL_MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0; public const int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1; public const int GL_MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122; public const int GL_MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123; public const int GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124; public const int GL_MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125; public const int GL_DEPTH_CLAMP = 0x864F; public const int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C; public const int GL_FIRST_VERTEX_CONVENTION = 0x8E4D; public const int GL_LAST_VERTEX_CONVENTION = 0x8E4E; public const int GL_PROVOKING_VERTEX = 0x8E4F; public const int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F; public const int GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111; public const int GL_OBJECT_TYPE = 0x9112; public const int GL_SYNC_CONDITION = 0x9113; public const int GL_SYNC_STATUS = 0x9114; public const int GL_SYNC_FLAGS = 0x9115; public const int GL_SYNC_FENCE = 0x9116; public const int GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117; public const int GL_UNSIGNALED = 0x9118; public const int GL_SIGNALED = 0x9119; public const int GL_ALREADY_SIGNALED = 0x911A; public const int GL_TIMEOUT_EXPIRED = 0x911B; public const int GL_CONDITION_SATISFIED = 0x911C; public const int GL_WAIT_FAILED = 0x911D; public const int GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001; public const int GL_SAMPLE_POSITION = 0x8E50; public const int GL_SAMPLE_MASK = 0x8E51; public const int GL_SAMPLE_MASK_VALUE = 0x8E52; public const int GL_MAX_SAMPLE_MASK_WORDS = 0x8E59; public const int GL_TEXTURE_2D_MULTISAMPLE = 0x9100; public const int GL_PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101; public const int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; public const int GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103; public const int GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104; public const int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105; public const int GL_TEXTURE_SAMPLES = 0x9106; public const int GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107; public const int GL_SAMPLER_2D_MULTISAMPLE = 0x9108; public const int GL_INT_SAMPLER_2D_MULTISAMPLE = 0x9109; public const int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A; public const int GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B; public const int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C; public const int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D; public const int GL_MAX_COLOR_TEXTURE_SAMPLES = 0x910E; public const int GL_MAX_DEPTH_TEXTURE_SAMPLES = 0x910F; public const int GL_MAX_INTEGER_SAMPLES = 0x9110; public const int GL_VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE; public const int GL_SRC1_COLOR = 0x88F9; public const int GL_ONE_MINUS_SRC1_COLOR = 0x88FA; public const int GL_ONE_MINUS_SRC1_ALPHA = 0x88FB; public const int GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC; public const int GL_ANY_SAMPLES_PASSED = 0x8C2F; public const int GL_SAMPLER_BINDING = 0x8919; public const int GL_RGB10_A2UI = 0x906F; public const int GL_TEXTURE_SWIZZLE_R = 0x8E42; public const int GL_TEXTURE_SWIZZLE_G = 0x8E43; public const int GL_TEXTURE_SWIZZLE_B = 0x8E44; public const int GL_TEXTURE_SWIZZLE_A = 0x8E45; public const int GL_TEXTURE_SWIZZLE_RGBA = 0x8E46; public const int GL_TIME_ELAPSED = 0x88BF; public const int GL_TIMESTAMP = 0x8E28; public const int GL_INT_2_10_10_10_REV = 0x8D9F; public const int GL_SAMPLE_SHADING = 0x8C36; public const int GL_MIN_SAMPLE_SHADING_VALUE = 0x8C37; public const int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E; public const int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F; public const int GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009; public const int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A; public const int GL_PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B; public const int GL_SAMPLER_CUBE_MAP_ARRAY = 0x900C; public const int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D; public const int GL_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E; public const int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F; public const int GL_DRAW_INDIRECT_BUFFER = 0x8F3F; public const int GL_DRAW_INDIRECT_BUFFER_BINDING = 0x8F43; public const int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F; public const int GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A; public const int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B; public const int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C; public const int GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D; public const int GL_MAX_VERTEX_STREAMS = 0x8E71; public const int GL_DOUBLE_VEC2 = 0x8FFC; public const int GL_DOUBLE_VEC3 = 0x8FFD; public const int GL_DOUBLE_VEC4 = 0x8FFE; public const int GL_DOUBLE_MAT2 = 0x8F46; public const int GL_DOUBLE_MAT3 = 0x8F47; public const int GL_DOUBLE_MAT4 = 0x8F48; public const int GL_DOUBLE_MAT2x3 = 0x8F49; public const int GL_DOUBLE_MAT2x4 = 0x8F4A; public const int GL_DOUBLE_MAT3x2 = 0x8F4B; public const int GL_DOUBLE_MAT3x4 = 0x8F4C; public const int GL_DOUBLE_MAT4x2 = 0x8F4D; public const int GL_DOUBLE_MAT4x3 = 0x8F4E; public const int GL_ACTIVE_SUBROUTINES = 0x8DE5; public const int GL_ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6; public const int GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47; public const int GL_ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48; public const int GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49; public const int GL_MAX_SUBROUTINES = 0x8DE7; public const int GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8; public const int GL_NUM_COMPATIBLE_SUBROUTINES = 0x8E4A; public const int GL_COMPATIBLE_SUBROUTINES = 0x8E4B; public const int GL_PATCHES = 0x000E; public const int GL_PATCH_VERTICES = 0x8E72; public const int GL_PATCH_DEFAULT_INNER_LEVEL = 0x8E73; public const int GL_PATCH_DEFAULT_OUTER_LEVEL = 0x8E74; public const int GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75; public const int GL_TESS_GEN_MODE = 0x8E76; public const int GL_TESS_GEN_SPACING = 0x8E77; public const int GL_TESS_GEN_VERTEX_ORDER = 0x8E78; public const int GL_TESS_GEN_POINT_MODE = 0x8E79; public const int GL_ISOLINES = 0x8E7A; public const int GL_QUADS = 0x0007; public const int GL_FRACTIONAL_ODD = 0x8E7B; public const int GL_FRACTIONAL_EVEN = 0x8E7C; public const int GL_MAX_PATCH_VERTICES = 0x8E7D; public const int GL_MAX_TESS_GEN_LEVEL = 0x8E7E; public const int GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F; public const int GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80; public const int GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81; public const int GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82; public const int GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83; public const int GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84; public const int GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85; public const int GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86; public const int GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89; public const int GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A; public const int GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C; public const int GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D; public const int GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E; public const int GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F; public const int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0; public const int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1; public const int GL_TESS_EVALUATION_SHADER = 0x8E87; public const int GL_TESS_CONTROL_SHADER = 0x8E88; public const int GL_TRANSFORM_FEEDBACK = 0x8E22; public const int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23; public const int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24; public const int GL_TRANSFORM_FEEDBACK_BINDING = 0x8E25; public const int GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70; public const int GL_FIXED = 0x140C; public const int GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; public const int GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; public const int GL_LOW_FLOAT = 0x8DF0; public const int GL_MEDIUM_FLOAT = 0x8DF1; public const int GL_HIGH_FLOAT = 0x8DF2; public const int GL_LOW_INT = 0x8DF3; public const int GL_MEDIUM_INT = 0x8DF4; public const int GL_HIGH_INT = 0x8DF5; public const int GL_SHADER_COMPILER = 0x8DFA; public const int GL_SHADER_BINARY_FORMATS = 0x8DF8; public const int GL_NUM_SHADER_BINARY_FORMATS = 0x8DF9; public const int GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; public const int GL_MAX_VARYING_VECTORS = 0x8DFC; public const int GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; public const int GL_RGB565 = 0x8D62; public const int GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257; public const int GL_PROGRAM_BINARY_LENGTH = 0x8741; public const int GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE; public const int GL_PROGRAM_BINARY_FORMATS = 0x87FF; public const int GL_VERTEX_SHADER_BIT = 0x00000001; public const int GL_FRAGMENT_SHADER_BIT = 0x00000002; public const int GL_GEOMETRY_SHADER_BIT = 0x00000004; public const int GL_TESS_CONTROL_SHADER_BIT = 0x00000008; public const int GL_TESS_EVALUATION_SHADER_BIT = 0x00000010; public const int GL_PROGRAM_SEPARABLE = 0x8258; public const int GL_ACTIVE_PROGRAM = 0x8259; public const int GL_PROGRAM_PIPELINE_BINDING = 0x825A; public const int GL_MAX_VIEWPORTS = 0x825B; public const int GL_VIEWPORT_SUBPIXEL_BITS = 0x825C; public const int GL_VIEWPORT_BOUNDS_RANGE = 0x825D; public const int GL_LAYER_PROVOKING_VERTEX = 0x825E; public const int GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F; public const int GL_UNDEFINED_VERTEX = 0x8260; public const int GL_COPY_READ_BUFFER_BINDING = 0x8F36; public const int GL_COPY_WRITE_BUFFER_BINDING = 0x8F37; public const int GL_TRANSFORM_FEEDBACK_ACTIVE = 0x8E24; public const int GL_TRANSFORM_FEEDBACK_PAUSED = 0x8E23; public const int GL_UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127; public const int GL_UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128; public const int GL_UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129; public const int GL_UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A; public const int GL_PACK_COMPRESSED_BLOCK_WIDTH = 0x912B; public const int GL_PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C; public const int GL_PACK_COMPRESSED_BLOCK_DEPTH = 0x912D; public const int GL_PACK_COMPRESSED_BLOCK_SIZE = 0x912E; public const int GL_NUM_SAMPLE_COUNTS = 0x9380; public const int GL_MIN_MAP_BUFFER_ALIGNMENT = 0x90BC; public const int GL_ATOMIC_COUNTER_BUFFER = 0x92C0; public const int GL_ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1; public const int GL_ATOMIC_COUNTER_BUFFER_START = 0x92C2; public const int GL_ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3; public const int GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4; public const int GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5; public const int GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6; public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7; public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8; public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9; public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA; public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB; public const int GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC; public const int GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD; public const int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE; public const int GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF; public const int GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0; public const int GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1; public const int GL_MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2; public const int GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3; public const int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4; public const int GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5; public const int GL_MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6; public const int GL_MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7; public const int GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8; public const int GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC; public const int GL_ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9; public const int GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA; public const int GL_UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB; public const int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001; public const int GL_ELEMENT_ARRAY_BARRIER_BIT = 0x00000002; public const int GL_UNIFORM_BARRIER_BIT = 0x00000004; public const int GL_TEXTURE_FETCH_BARRIER_BIT = 0x00000008; public const int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020; public const int GL_COMMAND_BARRIER_BIT = 0x00000040; public const int GL_PIXEL_BUFFER_BARRIER_BIT = 0x00000080; public const int GL_TEXTURE_UPDATE_BARRIER_BIT = 0x00000100; public const int GL_BUFFER_UPDATE_BARRIER_BIT = 0x00000200; public const int GL_FRAMEBUFFER_BARRIER_BIT = 0x00000400; public const int GL_TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800; public const int GL_ATOMIC_COUNTER_BARRIER_BIT = 0x00001000; public const int GL_MAX_IMAGE_UNITS = 0x8F38; public const int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39; public const int GL_IMAGE_BINDING_NAME = 0x8F3A; public const int GL_IMAGE_BINDING_LEVEL = 0x8F3B; public const int GL_IMAGE_BINDING_LAYERED = 0x8F3C; public const int GL_IMAGE_BINDING_LAYER = 0x8F3D; public const int GL_IMAGE_BINDING_ACCESS = 0x8F3E; public const int GL_IMAGE_1D = 0x904C; public const int GL_IMAGE_2D = 0x904D; public const int GL_IMAGE_3D = 0x904E; public const int GL_IMAGE_2D_RECT = 0x904F; public const int GL_IMAGE_CUBE = 0x9050; public const int GL_IMAGE_BUFFER = 0x9051; public const int GL_IMAGE_1D_ARRAY = 0x9052; public const int GL_IMAGE_2D_ARRAY = 0x9053; public const int GL_IMAGE_CUBE_MAP_ARRAY = 0x9054; public const int GL_IMAGE_2D_MULTISAMPLE = 0x9055; public const int GL_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056; public const int GL_INT_IMAGE_1D = 0x9057; public const int GL_INT_IMAGE_2D = 0x9058; public const int GL_INT_IMAGE_3D = 0x9059; public const int GL_INT_IMAGE_2D_RECT = 0x905A; public const int GL_INT_IMAGE_CUBE = 0x905B; public const int GL_INT_IMAGE_BUFFER = 0x905C; public const int GL_INT_IMAGE_1D_ARRAY = 0x905D; public const int GL_INT_IMAGE_2D_ARRAY = 0x905E; public const int GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F; public const int GL_INT_IMAGE_2D_MULTISAMPLE = 0x9060; public const int GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061; public const int GL_UNSIGNED_INT_IMAGE_1D = 0x9062; public const int GL_UNSIGNED_INT_IMAGE_2D = 0x9063; public const int GL_UNSIGNED_INT_IMAGE_3D = 0x9064; public const int GL_UNSIGNED_INT_IMAGE_2D_RECT = 0x9065; public const int GL_UNSIGNED_INT_IMAGE_CUBE = 0x9066; public const int GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067; public const int GL_UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068; public const int GL_UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069; public const int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A; public const int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B; public const int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C; public const int GL_MAX_IMAGE_SAMPLES = 0x906D; public const int GL_IMAGE_BINDING_FORMAT = 0x906E; public const int GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7; public const int GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8; public const int GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9; public const int GL_MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA; public const int GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB; public const int GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC; public const int GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD; public const int GL_MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE; public const int GL_MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF; public const int GL_COMPRESSED_RGBA_BPTC_UNORM = 0x8E8C; public const int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8D; public const int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E; public const int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F; public const int GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F; public const int GL_NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9; public const int GL_VERTEX_ATTRIB_ARRAY_LONG = 0x874E; public const int GL_COMPRESSED_RGB8_ETC2 = 0x9274; public const int GL_COMPRESSED_SRGB8_ETC2 = 0x9275; public const int GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276; public const int GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277; public const int GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9278; public const int GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279; public const int GL_COMPRESSED_R11_EAC = 0x9270; public const int GL_COMPRESSED_SIGNED_R11_EAC = 0x9271; public const int GL_COMPRESSED_RG11_EAC = 0x9272; public const int GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273; public const int GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69; public const int GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A; public const int GL_MAX_ELEMENT_INDEX = 0x8D6B; public const int GL_COMPUTE_SHADER = 0x91B9; public const int GL_MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB; public const int GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC; public const int GL_MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD; public const int GL_MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262; public const int GL_MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263; public const int GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264; public const int GL_MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265; public const int GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266; public const int GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB; public const int GL_MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE; public const int GL_MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF; public const int GL_COMPUTE_WORK_GROUP_SIZE = 0x8267; public const int GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC; public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED; public const int GL_DISPATCH_INDIRECT_BUFFER = 0x90EE; public const int GL_DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF; public const int GL_COMPUTE_SHADER_BIT = 0x00000020; public const int GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242; public const int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243; public const int GL_DEBUG_CALLBACK_FUNCTION = 0x8244; public const int GL_DEBUG_CALLBACK_USER_PARAM = 0x8245; public const int GL_DEBUG_SOURCE_API = 0x8246; public const int GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247; public const int GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248; public const int GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249; public const int GL_DEBUG_SOURCE_APPLICATION = 0x824A; public const int GL_DEBUG_SOURCE_OTHER = 0x824B; public const int GL_DEBUG_TYPE_ERROR = 0x824C; public const int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D; public const int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E; public const int GL_DEBUG_TYPE_PORTABILITY = 0x824F; public const int GL_DEBUG_TYPE_PERFORMANCE = 0x8250; public const int GL_DEBUG_TYPE_OTHER = 0x8251; public const int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143; public const int GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144; public const int GL_DEBUG_LOGGED_MESSAGES = 0x9145; public const int GL_DEBUG_SEVERITY_HIGH = 0x9146; public const int GL_DEBUG_SEVERITY_MEDIUM = 0x9147; public const int GL_DEBUG_SEVERITY_LOW = 0x9148; public const int GL_DEBUG_TYPE_MARKER = 0x8268; public const int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269; public const int GL_DEBUG_TYPE_POP_GROUP = 0x826A; public const int GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B; public const int GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C; public const int GL_DEBUG_GROUP_STACK_DEPTH = 0x826D; public const int GL_BUFFER = 0x82E0; public const int GL_SHADER = 0x82E1; public const int GL_PROGRAM = 0x82E2; public const int GL_VERTEX_ARRAY = 0x8074; public const int GL_QUERY = 0x82E3; public const int GL_PROGRAM_PIPELINE = 0x82E4; public const int GL_SAMPLER = 0x82E6; public const int GL_MAX_LABEL_LENGTH = 0x82E8; public const int GL_DEBUG_OUTPUT = 0x92E0; public const int GL_MAX_UNIFORM_LOCATIONS = 0x826E; public const int GL_FRAMEBUFFER_DEFAULT_WIDTH = 0x9310; public const int GL_FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311; public const int GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312; public const int GL_FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313; public const int GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314; public const int GL_MAX_FRAMEBUFFER_WIDTH = 0x9315; public const int GL_MAX_FRAMEBUFFER_HEIGHT = 0x9316; public const int GL_MAX_FRAMEBUFFER_LAYERS = 0x9317; public const int GL_MAX_FRAMEBUFFER_SAMPLES = 0x9318; public const int GL_INTERNALFORMAT_SUPPORTED = 0x826F; public const int GL_INTERNALFORMAT_PREFERRED = 0x8270; public const int GL_INTERNALFORMAT_RED_SIZE = 0x8271; public const int GL_INTERNALFORMAT_GREEN_SIZE = 0x8272; public const int GL_INTERNALFORMAT_BLUE_SIZE = 0x8273; public const int GL_INTERNALFORMAT_ALPHA_SIZE = 0x8274; public const int GL_INTERNALFORMAT_DEPTH_SIZE = 0x8275; public const int GL_INTERNALFORMAT_STENCIL_SIZE = 0x8276; public const int GL_INTERNALFORMAT_SHARED_SIZE = 0x8277; public const int GL_INTERNALFORMAT_RED_TYPE = 0x8278; public const int GL_INTERNALFORMAT_GREEN_TYPE = 0x8279; public const int GL_INTERNALFORMAT_BLUE_TYPE = 0x827A; public const int GL_INTERNALFORMAT_ALPHA_TYPE = 0x827B; public const int GL_INTERNALFORMAT_DEPTH_TYPE = 0x827C; public const int GL_INTERNALFORMAT_STENCIL_TYPE = 0x827D; public const int GL_MAX_WIDTH = 0x827E; public const int GL_MAX_HEIGHT = 0x827F; public const int GL_MAX_DEPTH = 0x8280; public const int GL_MAX_LAYERS = 0x8281; public const int GL_MAX_COMBINED_DIMENSIONS = 0x8282; public const int GL_COLOR_COMPONENTS = 0x8283; public const int GL_DEPTH_COMPONENTS = 0x8284; public const int GL_STENCIL_COMPONENTS = 0x8285; public const int GL_COLOR_RENDERABLE = 0x8286; public const int GL_DEPTH_RENDERABLE = 0x8287; public const int GL_STENCIL_RENDERABLE = 0x8288; public const int GL_FRAMEBUFFER_RENDERABLE = 0x8289; public const int GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A; public const int GL_FRAMEBUFFER_BLEND = 0x828B; public const int GL_READ_PIXELS = 0x828C; public const int GL_READ_PIXELS_FORMAT = 0x828D; public const int GL_READ_PIXELS_TYPE = 0x828E; public const int GL_TEXTURE_IMAGE_FORMAT = 0x828F; public const int GL_TEXTURE_IMAGE_TYPE = 0x8290; public const int GL_GET_TEXTURE_IMAGE_FORMAT = 0x8291; public const int GL_GET_TEXTURE_IMAGE_TYPE = 0x8292; public const int GL_MIPMAP = 0x8293; public const int GL_MANUAL_GENERATE_MIPMAP = 0x8294; public const int GL_AUTO_GENERATE_MIPMAP = 0x8295; public const int GL_COLOR_ENCODING = 0x8296; public const int GL_SRGB_READ = 0x8297; public const int GL_SRGB_WRITE = 0x8298; public const int GL_FILTER = 0x829A; public const int GL_VERTEX_TEXTURE = 0x829B; public const int GL_TESS_CONTROL_TEXTURE = 0x829C; public const int GL_TESS_EVALUATION_TEXTURE = 0x829D; public const int GL_GEOMETRY_TEXTURE = 0x829E; public const int GL_FRAGMENT_TEXTURE = 0x829F; public const int GL_COMPUTE_TEXTURE = 0x82A0; public const int GL_TEXTURE_SHADOW = 0x82A1; public const int GL_TEXTURE_GATHER = 0x82A2; public const int GL_TEXTURE_GATHER_SHADOW = 0x82A3; public const int GL_SHADER_IMAGE_LOAD = 0x82A4; public const int GL_SHADER_IMAGE_STORE = 0x82A5; public const int GL_SHADER_IMAGE_ATOMIC = 0x82A6; public const int GL_IMAGE_TEXEL_SIZE = 0x82A7; public const int GL_IMAGE_COMPATIBILITY_CLASS = 0x82A8; public const int GL_IMAGE_PIXEL_FORMAT = 0x82A9; public const int GL_IMAGE_PIXEL_TYPE = 0x82AA; public const int GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC; public const int GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD; public const int GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE; public const int GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF; public const int GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1; public const int GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2; public const int GL_TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3; public const int GL_CLEAR_BUFFER = 0x82B4; public const int GL_TEXTURE_VIEW = 0x82B5; public const int GL_VIEW_COMPATIBILITY_CLASS = 0x82B6; public const int GL_FULL_SUPPORT = 0x82B7; public const int GL_CAVEAT_SUPPORT = 0x82B8; public const int GL_IMAGE_CLASS_4_X_32 = 0x82B9; public const int GL_IMAGE_CLASS_2_X_32 = 0x82BA; public const int GL_IMAGE_CLASS_1_X_32 = 0x82BB; public const int GL_IMAGE_CLASS_4_X_16 = 0x82BC; public const int GL_IMAGE_CLASS_2_X_16 = 0x82BD; public const int GL_IMAGE_CLASS_1_X_16 = 0x82BE; public const int GL_IMAGE_CLASS_4_X_8 = 0x82BF; public const int GL_IMAGE_CLASS_2_X_8 = 0x82C0; public const int GL_IMAGE_CLASS_1_X_8 = 0x82C1; public const int GL_IMAGE_CLASS_11_11_10 = 0x82C2; public const int GL_IMAGE_CLASS_10_10_10_2 = 0x82C3; public const int GL_VIEW_CLASS_128_BITS = 0x82C4; public const int GL_VIEW_CLASS_96_BITS = 0x82C5; public const int GL_VIEW_CLASS_64_BITS = 0x82C6; public const int GL_VIEW_CLASS_48_BITS = 0x82C7; public const int GL_VIEW_CLASS_32_BITS = 0x82C8; public const int GL_VIEW_CLASS_24_BITS = 0x82C9; public const int GL_VIEW_CLASS_16_BITS = 0x82CA; public const int GL_VIEW_CLASS_8_BITS = 0x82CB; public const int GL_VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC; public const int GL_VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD; public const int GL_VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE; public const int GL_VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF; public const int GL_VIEW_CLASS_RGTC1_RED = 0x82D0; public const int GL_VIEW_CLASS_RGTC2_RG = 0x82D1; public const int GL_VIEW_CLASS_BPTC_UNORM = 0x82D2; public const int GL_VIEW_CLASS_BPTC_FLOAT = 0x82D3; public const int GL_UNIFORM = 0x92E1; public const int GL_UNIFORM_BLOCK = 0x92E2; public const int GL_PROGRAM_INPUT = 0x92E3; public const int GL_PROGRAM_OUTPUT = 0x92E4; public const int GL_BUFFER_VARIABLE = 0x92E5; public const int GL_SHADER_STORAGE_BLOCK = 0x92E6; public const int GL_VERTEX_SUBROUTINE = 0x92E8; public const int GL_TESS_CONTROL_SUBROUTINE = 0x92E9; public const int GL_TESS_EVALUATION_SUBROUTINE = 0x92EA; public const int GL_GEOMETRY_SUBROUTINE = 0x92EB; public const int GL_FRAGMENT_SUBROUTINE = 0x92EC; public const int GL_COMPUTE_SUBROUTINE = 0x92ED; public const int GL_VERTEX_SUBROUTINE_UNIFORM = 0x92EE; public const int GL_TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF; public const int GL_TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0; public const int GL_GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1; public const int GL_FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2; public const int GL_COMPUTE_SUBROUTINE_UNIFORM = 0x92F3; public const int GL_TRANSFORM_FEEDBACK_VARYING = 0x92F4; public const int GL_ACTIVE_RESOURCES = 0x92F5; public const int GL_MAX_NAME_LENGTH = 0x92F6; public const int GL_MAX_NUM_ACTIVE_VARIABLES = 0x92F7; public const int GL_MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8; public const int GL_NAME_LENGTH = 0x92F9; public const int GL_TYPE = 0x92FA; public const int GL_ARRAY_SIZE = 0x92FB; public const int GL_OFFSET = 0x92FC; public const int GL_BLOCK_INDEX = 0x92FD; public const int GL_ARRAY_STRIDE = 0x92FE; public const int GL_MATRIX_STRIDE = 0x92FF; public const int GL_IS_ROW_MAJOR = 0x9300; public const int GL_ATOMIC_COUNTER_BUFFER_INDEX = 0x9301; public const int GL_BUFFER_BINDING = 0x9302; public const int GL_BUFFER_DATA_SIZE = 0x9303; public const int GL_NUM_ACTIVE_VARIABLES = 0x9304; public const int GL_ACTIVE_VARIABLES = 0x9305; public const int GL_REFERENCED_BY_VERTEX_SHADER = 0x9306; public const int GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307; public const int GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308; public const int GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309; public const int GL_REFERENCED_BY_FRAGMENT_SHADER = 0x930A; public const int GL_REFERENCED_BY_COMPUTE_SHADER = 0x930B; public const int GL_TOP_LEVEL_ARRAY_SIZE = 0x930C; public const int GL_TOP_LEVEL_ARRAY_STRIDE = 0x930D; public const int GL_LOCATION = 0x930E; public const int GL_LOCATION_INDEX = 0x930F; public const int GL_IS_PER_PATCH = 0x92E7; public const int GL_SHADER_STORAGE_BUFFER = 0x90D2; public const int GL_SHADER_STORAGE_BUFFER_BINDING = 0x90D3; public const int GL_SHADER_STORAGE_BUFFER_START = 0x90D4; public const int GL_SHADER_STORAGE_BUFFER_SIZE = 0x90D5; public const int GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6; public const int GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7; public const int GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8; public const int GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9; public const int GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA; public const int GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB; public const int GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC; public const int GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD; public const int GL_MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE; public const int GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF; public const int GL_SHADER_STORAGE_BARRIER_BIT = 0x00002000; public const int GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39; public const int GL_DEPTH_STENCIL_TEXTURE_MODE = 0x90EA; public const int GL_TEXTURE_BUFFER_OFFSET = 0x919D; public const int GL_TEXTURE_BUFFER_SIZE = 0x919E; public const int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F; public const int GL_TEXTURE_VIEW_MIN_LEVEL = 0x82DB; public const int GL_TEXTURE_VIEW_NUM_LEVELS = 0x82DC; public const int GL_TEXTURE_VIEW_MIN_LAYER = 0x82DD; public const int GL_TEXTURE_VIEW_NUM_LAYERS = 0x82DE; public const int GL_TEXTURE_IMMUTABLE_LEVELS = 0x82DF; public const int GL_VERTEX_ATTRIB_BINDING = 0x82D4; public const int GL_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5; public const int GL_VERTEX_BINDING_DIVISOR = 0x82D6; public const int GL_VERTEX_BINDING_OFFSET = 0x82D7; public const int GL_VERTEX_BINDING_STRIDE = 0x82D8; public const int GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9; public const int GL_MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA; public const int GL_VERTEX_BINDING_BUFFER = 0x8F4F; public const int GL_DISPLAY_LIST = 0x82E7; public const int GL_STACK_UNDERFLOW = 0x0504; public const int GL_STACK_OVERFLOW = 0x0503; public const int GL_MAX_VERTEX_ATTRIB_STRIDE = 0x82E5; public const int GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221; public const int GL_TEXTURE_BUFFER_BINDING = 0x8C2A; public const int GL_MAP_PERSISTENT_BIT = 0x0040; public const int GL_MAP_COHERENT_BIT = 0x0080; public const int GL_DYNAMIC_STORAGE_BIT = 0x0100; public const int GL_CLIENT_STORAGE_BIT = 0x0200; public const int GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000; public const int GL_BUFFER_IMMUTABLE_STORAGE = 0x821F; public const int GL_BUFFER_STORAGE_FLAGS = 0x8220; public const int GL_CLEAR_TEXTURE = 0x9365; public const int GL_LOCATION_COMPONENT = 0x934A; public const int GL_TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B; public const int GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C; public const int GL_QUERY_BUFFER = 0x9192; public const int GL_QUERY_BUFFER_BARRIER_BIT = 0x00008000; public const int GL_QUERY_BUFFER_BINDING = 0x9193; public const int GL_QUERY_RESULT_NO_WAIT = 0x9194; public const int GL_MIRROR_CLAMP_TO_EDGE = 0x8743; public const int GL_CONTEXT_LOST = 0x0507; public const int GL_NEGATIVE_ONE_TO_ONE = 0x935E; public const int GL_ZERO_TO_ONE = 0x935F; public const int GL_CLIP_ORIGIN = 0x935C; public const int GL_CLIP_DEPTH_MODE = 0x935D; public const int GL_QUERY_WAIT_INVERTED = 0x8E17; public const int GL_QUERY_NO_WAIT_INVERTED = 0x8E18; public const int GL_QUERY_BY_REGION_WAIT_INVERTED = 0x8E19; public const int GL_QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A; public const int GL_MAX_CULL_DISTANCES = 0x82F9; public const int GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA; public const int GL_TEXTURE_TARGET = 0x1006; public const int GL_QUERY_TARGET = 0x82EA; public const int GL_GUILTY_CONTEXT_RESET = 0x8253; public const int GL_INNOCENT_CONTEXT_RESET = 0x8254; public const int GL_UNKNOWN_CONTEXT_RESET = 0x8255; public const int GL_RESET_NOTIFICATION_STRATEGY = 0x8256; public const int GL_LOSE_CONTEXT_ON_RESET = 0x8252; public const int GL_NO_RESET_NOTIFICATION = 0x8261; public const int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004; public const int GL_COLOR_TABLE = 0x80D0; public const int GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1; public const int GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2; public const int GL_PROXY_COLOR_TABLE = 0x80D3; public const int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4; public const int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5; public const int GL_CONVOLUTION_1D = 0x8010; public const int GL_CONVOLUTION_2D = 0x8011; public const int GL_SEPARABLE_2D = 0x8012; public const int GL_HISTOGRAM = 0x8024; public const int GL_PROXY_HISTOGRAM = 0x8025; public const int GL_MINMAX = 0x802E; public const int GL_SHADER_BINARY_FORMAT_SPIR_V = 0x9551; public const int GL_SPIR_V_BINARY = 0x9552; public const int GL_PARAMETER_BUFFER = 0x80EE; public const int GL_PARAMETER_BUFFER_BINDING = 0x80EF; public const int GL_CONTEXT_FLAG_NO_ERROR_BIT = 0x00000008; public const int GL_VERTICES_SUBMITTED = 0x82EE; public const int GL_PRIMITIVES_SUBMITTED = 0x82EF; public const int GL_VERTEX_SHADER_INVOCATIONS = 0x82F0; public const int GL_TESS_CONTROL_SHADER_PATCHES = 0x82F1; public const int GL_TESS_EVALUATION_SHADER_INVOCATIONS = 0x82F2; public const int GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED = 0x82F3; public const int GL_FRAGMENT_SHADER_INVOCATIONS = 0x82F4; public const int GL_COMPUTE_SHADER_INVOCATIONS = 0x82F5; public const int GL_CLIPPING_INPUT_PRIMITIVES = 0x82F6; public const int GL_CLIPPING_OUTPUT_PRIMITIVES = 0x82F7; public const int GL_POLYGON_OFFSET_CLAMP = 0x8E1B; public const int GL_SPIR_V_EXTENSIONS = 0x9553; public const int GL_NUM_SPIR_V_EXTENSIONS = 0x9554; public const int GL_TEXTURE_MAX_ANISOTROPY = 0x84FE; public const int GL_MAX_TEXTURE_MAX_ANISOTROPY = 0x84FF; public const int GL_TRANSFORM_FEEDBACK_OVERFLOW = 0x82EC; public const int GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW = 0x82ED; public const int GL_VERSION_ES_CL_1_0 = 1; public const int GL_VERSION_ES_CM_1_1 = 1; public const int GL_VERSION_ES_CL_1_1 = 1; public const int GL_CLIP_PLANE0 = 0x3000; public const int GL_CLIP_PLANE1 = 0x3001; public const int GL_CLIP_PLANE2 = 0x3002; public const int GL_CLIP_PLANE3 = 0x3003; public const int GL_CLIP_PLANE4 = 0x3004; public const int GL_CLIP_PLANE5 = 0x3005; public const int GL_FOG = 0x0B60; public const int GL_LIGHTING = 0x0B50; public const int GL_ALPHA_TEST = 0x0BC0; public const int GL_POINT_SMOOTH = 0x0B10; public const int GL_COLOR_MATERIAL = 0x0B57; public const int GL_NORMALIZE = 0x0BA1; public const int GL_RESCALE_NORMAL = 0x803A; public const int GL_NORMAL_ARRAY = 0x8075; public const int GL_COLOR_ARRAY = 0x8076; public const int GL_TEXTURE_COORD_ARRAY = 0x8078; public const int GL_EXP = 0x0800; public const int GL_EXP2 = 0x0801; public const int GL_FOG_DENSITY = 0x0B62; public const int GL_FOG_START = 0x0B63; public const int GL_FOG_END = 0x0B64; public const int GL_FOG_MODE = 0x0B65; public const int GL_FOG_COLOR = 0x0B66; public const int GL_CURRENT_COLOR = 0x0B00; public const int GL_CURRENT_NORMAL = 0x0B02; public const int GL_CURRENT_TEXTURE_COORDS = 0x0B03; public const int GL_POINT_SIZE_MIN = 0x8126; public const int GL_POINT_SIZE_MAX = 0x8127; public const int GL_POINT_DISTANCE_ATTENUATION = 0x8129; public const int GL_ALIASED_POINT_SIZE_RANGE = 0x846D; public const int GL_SHADE_MODEL = 0x0B54; public const int GL_MATRIX_MODE = 0x0BA0; public const int GL_MODELVIEW_STACK_DEPTH = 0x0BA3; public const int GL_PROJECTION_STACK_DEPTH = 0x0BA4; public const int GL_TEXTURE_STACK_DEPTH = 0x0BA5; public const int GL_MODELVIEW_MATRIX = 0x0BA6; public const int GL_PROJECTION_MATRIX = 0x0BA7; public const int GL_TEXTURE_MATRIX = 0x0BA8; public const int GL_ALPHA_TEST_FUNC = 0x0BC1; public const int GL_ALPHA_TEST_REF = 0x0BC2; public const int GL_MAX_LIGHTS = 0x0D31; public const int GL_MAX_CLIP_PLANES = 0x0D32; public const int GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36; public const int GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38; public const int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39; public const int GL_MAX_TEXTURE_UNITS = 0x84E2; public const int GL_RED_BITS = 0x0D52; public const int GL_GREEN_BITS = 0x0D53; public const int GL_BLUE_BITS = 0x0D54; public const int GL_ALPHA_BITS = 0x0D55; public const int GL_DEPTH_BITS = 0x0D56; public const int GL_STENCIL_BITS = 0x0D57; public const int GL_VERTEX_ARRAY_SIZE = 0x807A; public const int GL_VERTEX_ARRAY_TYPE = 0x807B; public const int GL_VERTEX_ARRAY_STRIDE = 0x807C; public const int GL_NORMAL_ARRAY_TYPE = 0x807E; public const int GL_NORMAL_ARRAY_STRIDE = 0x807F; public const int GL_COLOR_ARRAY_SIZE = 0x8081; public const int GL_COLOR_ARRAY_TYPE = 0x8082; public const int GL_COLOR_ARRAY_STRIDE = 0x8083; public const int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088; public const int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089; public const int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A; public const int GL_VERTEX_ARRAY_POINTER = 0x808E; public const int GL_NORMAL_ARRAY_POINTER = 0x808F; public const int GL_COLOR_ARRAY_POINTER = 0x8090; public const int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092; public const int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50; public const int GL_POINT_SMOOTH_HINT = 0x0C51; public const int GL_FOG_HINT = 0x0C54; public const int GL_GENERATE_MIPMAP_HINT = 0x8192; public const int GL_LIGHT_MODEL_AMBIENT = 0x0B53; public const int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52; public const int GL_AMBIENT = 0x1200; public const int GL_DIFFUSE = 0x1201; public const int GL_SPECULAR = 0x1202; public const int GL_POSITION = 0x1203; public const int GL_SPOT_DIRECTION = 0x1204; public const int GL_SPOT_EXPONENT = 0x1205; public const int GL_SPOT_CUTOFF = 0x1206; public const int GL_CONSTANT_ATTENUATION = 0x1207; public const int GL_LINEAR_ATTENUATION = 0x1208; public const int GL_QUADRATIC_ATTENUATION = 0x1209; public const int GL_EMISSION = 0x1600; public const int GL_SHININESS = 0x1601; public const int GL_AMBIENT_AND_DIFFUSE = 0x1602; public const int GL_MODELVIEW = 0x1700; public const int GL_PROJECTION = 0x1701; public const int GL_LUMINANCE = 0x1909; public const int GL_LUMINANCE_ALPHA = 0x190A; public const int GL_FLAT = 0x1D00; public const int GL_SMOOTH = 0x1D01; public const int GL_MODULATE = 0x2100; public const int GL_DECAL = 0x2101; public const int GL_ADD = 0x0104; public const int GL_TEXTURE_ENV_MODE = 0x2200; public const int GL_TEXTURE_ENV_COLOR = 0x2201; public const int GL_TEXTURE_ENV = 0x2300; public const int GL_GENERATE_MIPMAP = 0x8191; public const int GL_CLIENT_ACTIVE_TEXTURE = 0x84E1; public const int GL_LIGHT0 = 0x4000; public const int GL_LIGHT1 = 0x4001; public const int GL_LIGHT2 = 0x4002; public const int GL_LIGHT3 = 0x4003; public const int GL_LIGHT4 = 0x4004; public const int GL_LIGHT5 = 0x4005; public const int GL_LIGHT6 = 0x4006; public const int GL_LIGHT7 = 0x4007; public const int GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896; public const int GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897; public const int GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898; public const int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A; public const int GL_SUBTRACT = 0x84E7; public const int GL_COMBINE = 0x8570; public const int GL_COMBINE_RGB = 0x8571; public const int GL_COMBINE_ALPHA = 0x8572; public const int GL_RGB_SCALE = 0x8573; public const int GL_ADD_SIGNED = 0x8574; public const int GL_INTERPOLATE = 0x8575; public const int GL_CONSTANT = 0x8576; public const int GL_PRIMARY_COLOR = 0x8577; public const int GL_PREVIOUS = 0x8578; public const int GL_OPERAND0_RGB = 0x8590; public const int GL_OPERAND1_RGB = 0x8591; public const int GL_OPERAND2_RGB = 0x8592; public const int GL_OPERAND0_ALPHA = 0x8598; public const int GL_OPERAND1_ALPHA = 0x8599; public const int GL_OPERAND2_ALPHA = 0x859A; public const int GL_ALPHA_SCALE = 0x0D1C; public const int GL_SRC0_RGB = 0x8580; public const int GL_SRC1_RGB = 0x8581; public const int GL_SRC2_RGB = 0x8582; public const int GL_SRC0_ALPHA = 0x8588; public const int GL_SRC2_ALPHA = 0x858A; public const int GL_DOT3_RGB = 0x86AE; public const int GL_DOT3_RGBA = 0x86AF; public const int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; public const int GL_MULTISAMPLE_LINE_WIDTH_RANGE = 0x9381; public const int GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY = 0x9382; public const int GL_MULTIPLY = 0x9294; public const int GL_SCREEN = 0x9295; public const int GL_OVERLAY = 0x9296; public const int GL_DARKEN = 0x9297; public const int GL_LIGHTEN = 0x9298; public const int GL_COLORDODGE = 0x9299; public const int GL_COLORBURN = 0x929A; public const int GL_HARDLIGHT = 0x929B; public const int GL_SOFTLIGHT = 0x929C; public const int GL_DIFFERENCE = 0x929E; public const int GL_EXCLUSION = 0x92A0; public const int GL_HSL_HUE = 0x92AD; public const int GL_HSL_SATURATION = 0x92AE; public const int GL_HSL_COLOR = 0x92AF; public const int GL_HSL_LUMINOSITY = 0x92B0; public const int GL_PRIMITIVE_BOUNDING_BOX = 0x92BE; public const int GL_COMPRESSED_RGBA_ASTC_4x4 = 0x93B0; public const int GL_COMPRESSED_RGBA_ASTC_5x4 = 0x93B1; public const int GL_COMPRESSED_RGBA_ASTC_5x5 = 0x93B2; public const int GL_COMPRESSED_RGBA_ASTC_6x5 = 0x93B3; public const int GL_COMPRESSED_RGBA_ASTC_6x6 = 0x93B4; public const int GL_COMPRESSED_RGBA_ASTC_8x5 = 0x93B5; public const int GL_COMPRESSED_RGBA_ASTC_8x6 = 0x93B6; public const int GL_COMPRESSED_RGBA_ASTC_8x8 = 0x93B7; public const int GL_COMPRESSED_RGBA_ASTC_10x5 = 0x93B8; public const int GL_COMPRESSED_RGBA_ASTC_10x6 = 0x93B9; public const int GL_COMPRESSED_RGBA_ASTC_10x8 = 0x93BA; public const int GL_COMPRESSED_RGBA_ASTC_10x10 = 0x93BB; public const int GL_COMPRESSED_RGBA_ASTC_12x10 = 0x93BC; public const int GL_COMPRESSED_RGBA_ASTC_12x12 = 0x93BD; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4 = 0x93D0; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4 = 0x93D1; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5 = 0x93D2; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5 = 0x93D3; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6 = 0x93D4; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5 = 0x93D5; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6 = 0x93D6; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8 = 0x93D7; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5 = 0x93D8; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6 = 0x93D9; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8 = 0x93DA; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10 = 0x93DB; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10 = 0x93DC; public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12 = 0x93DD; public const int GL_CONTEXT_ROBUST_ACCESS = 0x90F3; #endregion } public enum ShaderType : int { FRAGMENT = 0x8B30, VERTEX = 0x8B31 } public enum BufferType : int { ARRAY_BUFFER = 0x8892, ELEMENT_ARRAY_BUFFER = 0x8893, ARRAY_BUFFER_BINDING = 0x8894 } public enum BufferReadType : int { STREAM_DRAW = 0x88E0, STREAM_READ = 0x88E1, STREAM_COPY = 0x88E2, STATIC_DRAW = 0x88E4, STATIC_READ = 0x88E5, STATIC_COPY = 0x88E6, DYNAMIC_DRAW = 0x88E8, DYNAMIC_READ = 0x88E9, DYNAMIC_COPY = 0x88EA } }