diff --git a/build.zig b/build.zig index 0f71152..8e5c645 100644 --- a/build.zig +++ b/build.zig @@ -28,8 +28,8 @@ pub fn build(b: *std.build.Builder) void { // Argument Parsing Library exe.addPackagePath("clap", "lib/zig-clap/clap.zig"); - // OpenGL Bindings - exe.addPackagePath("gl", "lib/gl_4v5.zig"); + // OpenGL 3.3 Bindings + exe.addPackagePath("gl", "lib/gl.zig"); // Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig const sdk = Sdk.init(b); diff --git a/lib/gl_4v5.zig b/lib/gl.zig similarity index 50% rename from lib/gl_4v5.zig rename to lib/gl.zig index bdaf0e7..fb18118 100644 --- a/lib/gl_4v5.zig +++ b/lib/gl.zig @@ -71,7 +71,6 @@ pub const LINE_STRIP = 0x0003; pub const TRIANGLES = 0x0004; pub const TRIANGLE_STRIP = 0x0005; pub const TRIANGLE_FAN = 0x0006; -pub const COMPRESSED_SRGB8_ETC2 = 0x9275; pub const NEVER = 0x0200; pub const LESS = 0x0201; pub const EQUAL = 0x0202; @@ -230,409 +229,6 @@ pub const TEXTURE_MIN_FILTER = 0x2801; pub const TEXTURE_WRAP_S = 0x2802; pub const TEXTURE_WRAP_T = 0x2803; pub const REPEAT = 0x2901; -pub const MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE; -pub const MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB; -pub const MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266; -pub const MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265; -pub const MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264; -pub const MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263; -pub const MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262; -pub const MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD; -pub const MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC; -pub const MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB; -pub const COMPUTE_SHADER = 0x91B9; -pub const MAX_ELEMENT_INDEX = 0x8D6B; -pub const ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A; -pub const PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69; -pub const COMPRESSED_SIGNED_RG11_EAC = 0x9273; -pub const COMPRESSED_RG11_EAC = 0x9272; -pub const COMPRESSED_SIGNED_R11_EAC = 0x9271; -pub const COMPRESSED_R11_EAC = 0x9270; -pub const COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276; -pub const COMPRESSED_RGB8_ETC2 = 0x9274; -pub const VERTEX_ATTRIB_ARRAY_LONG = 0x874E; -pub const NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9; -pub const TEXTURE_IMMUTABLE_FORMAT = 0x912F; -pub const COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F; -pub const COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E; -pub const COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8D; -pub const COMPRESSED_RGBA_BPTC_UNORM = 0x8E8C; -pub const MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF; -pub const MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE; -pub const MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD; -pub const MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC; -pub const MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB; -pub const MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA; -pub const IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9; -pub const IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8; -pub const IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7; -pub const IMAGE_BINDING_FORMAT = 0x906E; -pub const MAX_IMAGE_SAMPLES = 0x906D; -pub const UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C; -pub const UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B; -pub const UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A; -pub const UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069; -pub const UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068; -pub const UNSIGNED_INT_IMAGE_BUFFER = 0x9067; -pub const UNSIGNED_INT_IMAGE_CUBE = 0x9066; -pub const UNSIGNED_INT_IMAGE_2D_RECT = 0x9065; -pub const UNSIGNED_INT_IMAGE_3D = 0x9064; -pub const INT_IMAGE_CUBE = 0x905B; -pub const INT_IMAGE_2D_RECT = 0x905A; -pub const INT_IMAGE_3D = 0x9059; -pub const INT_IMAGE_2D = 0x9058; -pub const INT_IMAGE_1D = 0x9057; -pub const IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056; -pub const IMAGE_2D_MULTISAMPLE = 0x9055; -pub const IMAGE_CUBE_MAP_ARRAY = 0x9054; -pub const IMAGE_2D_ARRAY = 0x9053; -pub const IMAGE_1D_ARRAY = 0x9052; -pub const IMAGE_BUFFER = 0x9051; -pub const IMAGE_CUBE = 0x9050; -pub const IMAGE_2D_RECT = 0x904F; -pub const IMAGE_3D = 0x904E; -pub const IMAGE_2D = 0x904D; -pub const IMAGE_1D = 0x904C; -pub const IMAGE_BINDING_ACCESS = 0x8F3E; -pub const IMAGE_BINDING_LAYER = 0x8F3D; -pub const IMAGE_BINDING_LAYERED = 0x8F3C; -pub const IMAGE_BINDING_LEVEL = 0x8F3B; -pub const IMAGE_BINDING_NAME = 0x8F3A; -pub const MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39; -pub const MAX_IMAGE_UNITS = 0x8F38; -pub const ALL_BARRIER_BITS = 0xFFFFFFFF; -pub const ATOMIC_COUNTER_BARRIER_BIT = 0x00001000; -pub const TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800; -pub const FRAMEBUFFER_BARRIER_BIT = 0x00000400; -pub const BUFFER_UPDATE_BARRIER_BIT = 0x00000200; -pub const TEXTURE_UPDATE_BARRIER_BIT = 0x00000100; -pub const PIXEL_BUFFER_BARRIER_BIT = 0x00000080; -pub const COMMAND_BARRIER_BIT = 0x00000040; -pub const SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020; -pub const TEXTURE_FETCH_BARRIER_BIT = 0x00000008; -pub const UNIFORM_BARRIER_BIT = 0x00000004; -pub const ELEMENT_ARRAY_BARRIER_BIT = 0x00000002; -pub const VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001; -pub const UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB; -pub const UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA; -pub const ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9; -pub const MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC; -pub const MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8; -pub const MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7; -pub const MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6; -pub const MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5; -pub const MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4; -pub const MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2; -pub const MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1; -pub const MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0; -pub const MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE; -pub const MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD; -pub const MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC; -pub const ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB; -pub const ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA; -pub const ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9; -pub const ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8; -pub const ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7; -pub const ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6; -pub const ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5; -pub const ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4; -pub const ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3; -pub const ATOMIC_COUNTER_BUFFER_START = 0x92C2; -pub const ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1; -pub const ATOMIC_COUNTER_BUFFER = 0x92C0; -pub const MIN_MAP_BUFFER_ALIGNMENT = 0x90BC; -pub const NUM_SAMPLE_COUNTS = 0x9380; -pub const PACK_COMPRESSED_BLOCK_SIZE = 0x912E; -pub const PACK_COMPRESSED_BLOCK_DEPTH = 0x912D; -pub const PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C; -pub const PACK_COMPRESSED_BLOCK_WIDTH = 0x912B; -pub const UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A; -pub const UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129; -pub const UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128; -pub const UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127; -pub const TRANSFORM_FEEDBACK_PAUSED = 0x8E23; -pub const TRANSFORM_FEEDBACK_ACTIVE = 0x8E24; -pub const COPY_WRITE_BUFFER_BINDING = 0x8F37; -pub const COPY_READ_BUFFER_BINDING = 0x8F36; -pub const UNDEFINED_VERTEX = 0x8260; -pub const VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F; -pub const LAYER_PROVOKING_VERTEX = 0x825E; -pub const VIEWPORT_BOUNDS_RANGE = 0x825D; -pub const VIEWPORT_SUBPIXEL_BITS = 0x825C; -pub const MAX_VIEWPORTS = 0x825B; -pub const PROGRAM_PIPELINE_BINDING = 0x825A; -pub const ACTIVE_PROGRAM = 0x8259; -pub const PROGRAM_SEPARABLE = 0x8258; -pub const ALL_SHADER_BITS = 0xFFFFFFFF; -pub const TESS_EVALUATION_SHADER_BIT = 0x00000010; -pub const TESS_CONTROL_SHADER_BIT = 0x00000008; -pub const GEOMETRY_SHADER_BIT = 0x00000004; -pub const FRAGMENT_SHADER_BIT = 0x00000002; -pub const VERTEX_SHADER_BIT = 0x00000001; -pub const PROGRAM_BINARY_FORMATS = 0x87FF; -pub const NUM_PROGRAM_BINARY_FORMATS = 0x87FE; -pub const PROGRAM_BINARY_LENGTH = 0x8741; -pub const PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257; -pub const RGB565 = 0x8D62; -pub const MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; -pub const MAX_VARYING_VECTORS = 0x8DFC; -pub const MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; -pub const NUM_SHADER_BINARY_FORMATS = 0x8DF9; -pub const SHADER_BINARY_FORMATS = 0x8DF8; -pub const SHADER_COMPILER = 0x8DFA; -pub const HIGH_INT = 0x8DF5; -pub const MEDIUM_INT = 0x8DF4; -pub const LOW_INT = 0x8DF3; -pub const HIGH_FLOAT = 0x8DF2; -pub const MEDIUM_FLOAT = 0x8DF1; -pub const LOW_FLOAT = 0x8DF0; -pub const IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; -pub const IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; -pub const FIXED = 0x140C; -pub const MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70; -pub const ISOLINES = 0x8E7A; -pub const TESS_GEN_POINT_MODE = 0x8E79; -pub const TESS_GEN_VERTEX_ORDER = 0x8E78; -pub const TESS_GEN_SPACING = 0x8E77; -pub const TESS_GEN_MODE = 0x8E76; -pub const TESS_CONTROL_OUTPUT_VERTICES = 0x8E75; -pub const PATCH_DEFAULT_OUTER_LEVEL = 0x8E74; -pub const PATCH_DEFAULT_INNER_LEVEL = 0x8E73; -pub const PATCH_VERTICES = 0x8E72; -pub const PATCHES = 0x000E; -pub const VERTEX_BINDING_BUFFER = 0x8F4F; -pub const MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA; -pub const MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9; -pub const VERTEX_BINDING_STRIDE = 0x82D8; -pub const VERTEX_BINDING_OFFSET = 0x82D7; -pub const VERTEX_BINDING_DIVISOR = 0x82D6; -pub const VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5; -pub const VERTEX_ATTRIB_BINDING = 0x82D4; -pub const TEXTURE_IMMUTABLE_LEVELS = 0x82DF; -pub const TEXTURE_VIEW_NUM_LAYERS = 0x82DE; -pub const TEXTURE_VIEW_MIN_LAYER = 0x82DD; -pub const TEXTURE_VIEW_NUM_LEVELS = 0x82DC; -pub const TEXTURE_VIEW_MIN_LEVEL = 0x82DB; -pub const TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F; -pub const TEXTURE_BUFFER_SIZE = 0x919E; -pub const TEXTURE_BUFFER_OFFSET = 0x919D; -pub const DEPTH_STENCIL_TEXTURE_MODE = 0x90EA; -pub const MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39; -pub const SHADER_STORAGE_BARRIER_BIT = 0x00002000; -pub const SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF; -pub const MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE; -pub const MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD; -pub const MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC; -pub const MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB; -pub const MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA; -pub const MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9; -pub const MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8; -pub const MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7; -pub const MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6; -pub const SHADER_STORAGE_BUFFER_SIZE = 0x90D5; -pub const SHADER_STORAGE_BUFFER_START = 0x90D4; -pub const SHADER_STORAGE_BUFFER_BINDING = 0x90D3; -pub const SHADER_STORAGE_BUFFER = 0x90D2; -pub const IS_PER_PATCH = 0x92E7; -pub const LOCATION_INDEX = 0x930F; -pub const LOCATION = 0x930E; -pub const TOP_LEVEL_ARRAY_STRIDE = 0x930D; -pub const TOP_LEVEL_ARRAY_SIZE = 0x930C; -pub const REFERENCED_BY_COMPUTE_SHADER = 0x930B; -pub const REFERENCED_BY_FRAGMENT_SHADER = 0x930A; -pub const REFERENCED_BY_GEOMETRY_SHADER = 0x9309; -pub const REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308; -pub const REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307; -pub const REFERENCED_BY_VERTEX_SHADER = 0x9306; -pub const ACTIVE_VARIABLES = 0x9305; -pub const NUM_ACTIVE_VARIABLES = 0x9304; -pub const BUFFER_DATA_SIZE = 0x9303; -pub const BUFFER_BINDING = 0x9302; -pub const ATOMIC_COUNTER_BUFFER_INDEX = 0x9301; -pub const IS_ROW_MAJOR = 0x9300; -pub const MATRIX_STRIDE = 0x92FF; -pub const ARRAY_STRIDE = 0x92FE; -pub const BLOCK_INDEX = 0x92FD; -pub const OFFSET = 0x92FC; -pub const ARRAY_SIZE = 0x92FB; -pub const TYPE = 0x92FA; -pub const NAME_LENGTH = 0x92F9; -pub const MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8; -pub const MAX_NUM_ACTIVE_VARIABLES = 0x92F7; -pub const MAX_NAME_LENGTH = 0x92F6; -pub const ACTIVE_RESOURCES = 0x92F5; -pub const TRANSFORM_FEEDBACK_VARYING = 0x92F4; -pub const COMPUTE_SUBROUTINE_UNIFORM = 0x92F3; -pub const FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2; -pub const GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1; -pub const TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0; -pub const TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF; -pub const VERTEX_SUBROUTINE_UNIFORM = 0x92EE; -pub const COMPUTE_SUBROUTINE = 0x92ED; -pub const FRAGMENT_SUBROUTINE = 0x92EC; -pub const GEOMETRY_SUBROUTINE = 0x92EB; -pub const TESS_EVALUATION_SUBROUTINE = 0x92EA; -pub const TESS_CONTROL_SUBROUTINE = 0x92E9; -pub const VERTEX_SUBROUTINE = 0x92E8; -pub const SHADER_STORAGE_BLOCK = 0x92E6; -pub const BUFFER_VARIABLE = 0x92E5; -pub const PROGRAM_OUTPUT = 0x92E4; -pub const PROGRAM_INPUT = 0x92E3; -pub const UNIFORM_BLOCK = 0x92E2; -pub const UNIFORM = 0x92E1; -pub const VIEW_CLASS_BPTC_FLOAT = 0x82D3; -pub const VIEW_CLASS_BPTC_UNORM = 0x82D2; -pub const VIEW_CLASS_RGTC2_RG = 0x82D1; -pub const VIEW_CLASS_RGTC1_RED = 0x82D0; -pub const VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF; -pub const VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE; -pub const VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD; -pub const VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC; -pub const VIEW_CLASS_8_BITS = 0x82CB; -pub const VIEW_CLASS_16_BITS = 0x82CA; -pub const VIEW_CLASS_24_BITS = 0x82C9; -pub const VIEW_CLASS_32_BITS = 0x82C8; -pub const VIEW_CLASS_48_BITS = 0x82C7; -pub const VIEW_CLASS_64_BITS = 0x82C6; -pub const VIEW_CLASS_96_BITS = 0x82C5; -pub const VIEW_CLASS_128_BITS = 0x82C4; -pub const IMAGE_CLASS_10_10_10_2 = 0x82C3; -pub const IMAGE_CLASS_11_11_10 = 0x82C2; -pub const IMAGE_CLASS_1_X_8 = 0x82C1; -pub const IMAGE_CLASS_2_X_8 = 0x82C0; -pub const IMAGE_CLASS_4_X_8 = 0x82BF; -pub const IMAGE_CLASS_1_X_16 = 0x82BE; -pub const IMAGE_CLASS_2_X_16 = 0x82BD; -pub const IMAGE_CLASS_4_X_16 = 0x82BC; -pub const IMAGE_CLASS_1_X_32 = 0x82BB; -pub const IMAGE_CLASS_2_X_32 = 0x82BA; -pub const IMAGE_CLASS_4_X_32 = 0x82B9; -pub const CAVEAT_SUPPORT = 0x82B8; -pub const FULL_SUPPORT = 0x82B7; -pub const VIEW_COMPATIBILITY_CLASS = 0x82B6; -pub const TEXTURE_VIEW = 0x82B5; -pub const CLEAR_BUFFER = 0x82B4; -pub const TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3; -pub const TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2; -pub const TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1; -pub const SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF; -pub const SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE; -pub const SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD; -pub const SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC; -pub const IMAGE_PIXEL_TYPE = 0x82AA; -pub const IMAGE_PIXEL_FORMAT = 0x82A9; -pub const IMAGE_COMPATIBILITY_CLASS = 0x82A8; -pub const IMAGE_TEXEL_SIZE = 0x82A7; -pub const SHADER_IMAGE_ATOMIC = 0x82A6; -pub const SHADER_IMAGE_STORE = 0x82A5; -pub const SHADER_IMAGE_LOAD = 0x82A4; -pub const TEXTURE_GATHER_SHADOW = 0x82A3; -pub const TEXTURE_GATHER = 0x82A2; -pub const TEXTURE_SHADOW = 0x82A1; -pub const COMPUTE_TEXTURE = 0x82A0; -pub const FRAGMENT_TEXTURE = 0x829F; -pub const GEOMETRY_TEXTURE = 0x829E; -pub const TESS_EVALUATION_TEXTURE = 0x829D; -pub const TESS_CONTROL_TEXTURE = 0x829C; -pub const VERTEX_TEXTURE = 0x829B; -pub const FILTER = 0x829A; -pub const SRGB_WRITE = 0x8298; -pub const SRGB_READ = 0x8297; -pub const COLOR_ENCODING = 0x8296; -pub const AUTO_GENERATE_MIPMAP = 0x8295; -pub const MANUAL_GENERATE_MIPMAP = 0x8294; -pub const MIPMAP = 0x8293; -pub const GET_TEXTURE_IMAGE_TYPE = 0x8292; -pub const GET_TEXTURE_IMAGE_FORMAT = 0x8291; -pub const TEXTURE_IMAGE_TYPE = 0x8290; -pub const TEXTURE_IMAGE_FORMAT = 0x828F; -pub const READ_PIXELS_TYPE = 0x828E; -pub const READ_PIXELS_FORMAT = 0x828D; -pub const READ_PIXELS = 0x828C; -pub const FRAMEBUFFER_BLEND = 0x828B; -pub const FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A; -pub const FRAMEBUFFER_RENDERABLE = 0x8289; -pub const STENCIL_RENDERABLE = 0x8288; -pub const DEPTH_RENDERABLE = 0x8287; -pub const COLOR_RENDERABLE = 0x8286; -pub const STENCIL_COMPONENTS = 0x8285; -pub const DEPTH_COMPONENTS = 0x8284; -pub const COLOR_COMPONENTS = 0x8283; -pub const MAX_COMBINED_DIMENSIONS = 0x8282; -pub const MAX_LAYERS = 0x8281; -pub const MAX_DEPTH = 0x8280; -pub const MAX_HEIGHT = 0x827F; -pub const MAX_WIDTH = 0x827E; -pub const INTERNALFORMAT_STENCIL_TYPE = 0x827D; -pub const INTERNALFORMAT_DEPTH_TYPE = 0x827C; -pub const INTERNALFORMAT_ALPHA_TYPE = 0x827B; -pub const INTERNALFORMAT_BLUE_TYPE = 0x827A; -pub const INTERNALFORMAT_GREEN_TYPE = 0x8279; -pub const INTERNALFORMAT_RED_TYPE = 0x8278; -pub const INTERNALFORMAT_SHARED_SIZE = 0x8277; -pub const INTERNALFORMAT_STENCIL_SIZE = 0x8276; -pub const INTERNALFORMAT_DEPTH_SIZE = 0x8275; -pub const INTERNALFORMAT_ALPHA_SIZE = 0x8274; -pub const INTERNALFORMAT_BLUE_SIZE = 0x8273; -pub const INTERNALFORMAT_GREEN_SIZE = 0x8272; -pub const INTERNALFORMAT_RED_SIZE = 0x8271; -pub const INTERNALFORMAT_PREFERRED = 0x8270; -pub const INTERNALFORMAT_SUPPORTED = 0x826F; -pub const MAX_FRAMEBUFFER_SAMPLES = 0x9318; -pub const MAX_FRAMEBUFFER_LAYERS = 0x9317; -pub const MAX_FRAMEBUFFER_HEIGHT = 0x9316; -pub const MAX_FRAMEBUFFER_WIDTH = 0x9315; -pub const FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314; -pub const FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313; -pub const FRAMEBUFFER_DEFAULT_LAYERS = 0x9312; -pub const FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311; -pub const FRAMEBUFFER_DEFAULT_WIDTH = 0x9310; -pub const MAX_UNIFORM_LOCATIONS = 0x826E; -pub const CONTEXT_FLAG_DEBUG_BIT = 0x00000002; -pub const DEBUG_OUTPUT = 0x92E0; -pub const MAX_LABEL_LENGTH = 0x82E8; -pub const SAMPLER = 0x82E6; -pub const PROGRAM_PIPELINE = 0x82E4; -pub const QUERY = 0x82E3; -pub const VERTEX_ARRAY = 0x8074; -pub const PROGRAM = 0x82E2; -pub const SHADER = 0x82E1; -pub const BUFFER = 0x82E0; -pub const DEBUG_GROUP_STACK_DEPTH = 0x826D; -pub const MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C; -pub const DEBUG_SEVERITY_NOTIFICATION = 0x826B; -pub const DEBUG_TYPE_POP_GROUP = 0x826A; -pub const DEBUG_TYPE_PUSH_GROUP = 0x8269; -pub const DEBUG_TYPE_MARKER = 0x8268; -pub const DEBUG_SEVERITY_LOW = 0x9148; -pub const DEBUG_SEVERITY_MEDIUM = 0x9147; -pub const DEBUG_SEVERITY_HIGH = 0x9146; -pub const DEBUG_LOGGED_MESSAGES = 0x9145; -pub const MAX_DEBUG_LOGGED_MESSAGES = 0x9144; -pub const MAX_DEBUG_MESSAGE_LENGTH = 0x9143; -pub const DEBUG_TYPE_OTHER = 0x8251; -pub const DEBUG_TYPE_PERFORMANCE = 0x8250; -pub const DEBUG_TYPE_PORTABILITY = 0x824F; -pub const DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E; -pub const DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D; -pub const DEBUG_TYPE_ERROR = 0x824C; -pub const DEBUG_SOURCE_OTHER = 0x824B; -pub const DEBUG_SOURCE_APPLICATION = 0x824A; -pub const DEBUG_SOURCE_THIRD_PARTY = 0x8249; -pub const DEBUG_SOURCE_SHADER_COMPILER = 0x8248; -pub const DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247; -pub const DEBUG_SOURCE_API = 0x8246; -pub const DEBUG_CALLBACK_USER_PARAM = 0x8245; -pub const DEBUG_CALLBACK_FUNCTION = 0x8244; -pub const DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243; -pub const DEBUG_OUTPUT_SYNCHRONOUS = 0x8242; -pub const COMPUTE_SHADER_BIT = 0x00000020; -pub const DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF; -pub const DISPATCH_INDIRECT_BUFFER = 0x90EE; -pub const ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED; -pub const UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC; -pub const COMPUTE_WORK_GROUP_SIZE = 0x8267; -pub const MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF; pub const COLOR_LOGIC_OP = 0x0BF2; pub const POLYGON_OFFSET_UNITS = 0x2A00; pub const POLYGON_OFFSET_POINT = 0x2A01; @@ -663,55 +259,6 @@ pub const RGBA8 = 0x8058; pub const RGB10_A2 = 0x8059; pub const RGBA12 = 0x805A; pub const RGBA16 = 0x805B; -pub const COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279; -pub const COMPRESSED_RGBA8_ETC2_EAC = 0x9278; -pub const COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277; -pub const UNSIGNED_INT_IMAGE_2D = 0x9063; -pub const UNSIGNED_INT_IMAGE_1D = 0x9062; -pub const INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061; -pub const INT_IMAGE_2D_MULTISAMPLE = 0x9060; -pub const INT_IMAGE_CUBE_MAP_ARRAY = 0x905F; -pub const INT_IMAGE_2D_ARRAY = 0x905E; -pub const INT_IMAGE_1D_ARRAY = 0x905D; -pub const INT_IMAGE_BUFFER = 0x905C; -pub const MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3; -pub const MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF; -pub const TRANSFORM_FEEDBACK_BINDING = 0x8E25; -pub const TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24; -pub const TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23; -pub const TRANSFORM_FEEDBACK = 0x8E22; -pub const TESS_CONTROL_SHADER = 0x8E88; -pub const TESS_EVALUATION_SHADER = 0x8E87; -pub const UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1; -pub const UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0; -pub const MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F; -pub const MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E; -pub const MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D; -pub const MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C; -pub const MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A; -pub const MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89; -pub const MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86; -pub const MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85; -pub const MAX_TESS_PATCH_COMPONENTS = 0x8E84; -pub const MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83; -pub const MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82; -pub const MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81; -pub const MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80; -pub const MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F; -pub const MAX_TESS_GEN_LEVEL = 0x8E7E; -pub const MAX_PATCH_VERTICES = 0x8E7D; -pub const FRACTIONAL_EVEN = 0x8E7C; -pub const FRACTIONAL_ODD = 0x8E7B; -pub const QUADS = 0x0007; -pub const MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8; -pub const COMPATIBLE_SUBROUTINES = 0x8E4B; -pub const NUM_COMPATIBLE_SUBROUTINES = 0x8E4A; -pub const MAX_SUBROUTINES = 0x8DE7; -pub const ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49; -pub const ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48; -pub const ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47; -pub const ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6; -pub const ACTIVE_SUBROUTINES = 0x8DE5; pub const UNSIGNED_BYTE_3_3_2 = 0x8032; pub const UNSIGNED_SHORT_4_4_4_4 = 0x8033; pub const UNSIGNED_SHORT_5_5_5_1 = 0x8034; @@ -807,37 +354,6 @@ pub const TEXTURE_COMPRESSED = 0x86A1; pub const NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; pub const COMPRESSED_TEXTURE_FORMATS = 0x86A3; pub const CLAMP_TO_BORDER = 0x812D; -pub const DOUBLE_MAT4x3 = 0x8F4E; -pub const DOUBLE_MAT4x2 = 0x8F4D; -pub const DOUBLE_MAT3x4 = 0x8F4C; -pub const DOUBLE_MAT3x2 = 0x8F4B; -pub const DOUBLE_MAT2x4 = 0x8F4A; -pub const DOUBLE_MAT2x3 = 0x8F49; -pub const DOUBLE_MAT4 = 0x8F48; -pub const DOUBLE_MAT3 = 0x8F47; -pub const DOUBLE_MAT2 = 0x8F46; -pub const DOUBLE_VEC4 = 0x8FFE; -pub const DOUBLE_VEC3 = 0x8FFD; -pub const DOUBLE_VEC2 = 0x8FFC; -pub const MAX_VERTEX_STREAMS = 0x8E71; -pub const FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D; -pub const MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C; -pub const MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B; -pub const MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A; -pub const GEOMETRY_SHADER_INVOCATIONS = 0x887F; -pub const DRAW_INDIRECT_BUFFER_BINDING = 0x8F43; -pub const DRAW_INDIRECT_BUFFER = 0x8F3F; -pub const UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F; -pub const INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E; -pub const SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D; -pub const SAMPLER_CUBE_MAP_ARRAY = 0x900C; -pub const PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B; -pub const TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A; -pub const TEXTURE_CUBE_MAP_ARRAY = 0x9009; -pub const MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F; -pub const MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E; -pub const MIN_SAMPLE_SHADING_VALUE = 0x8C37; -pub const SAMPLE_SHADING = 0x8C36; pub const INT_2_10_10_10_REV = 0x8D9F; pub const TIMESTAMP = 0x8E28; pub const TIME_ELAPSED = 0x88BF; @@ -1361,383 +877,8 @@ pub const UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44; pub const UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45; pub const UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46; pub const INVALID_INDEX = 0xFFFFFFFF; -pub const STACK_UNDERFLOW = 0x0504; -pub const STACK_OVERFLOW = 0x0503; -pub const MAX_VERTEX_ATTRIB_STRIDE = 0x82E5; -pub const PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221; -pub const TEXTURE_BUFFER_BINDING = 0x8C2A; -pub const MAP_PERSISTENT_BIT = 0x0040; -pub const MAP_COHERENT_BIT = 0x0080; -pub const DYNAMIC_STORAGE_BIT = 0x0100; -pub const CLIENT_STORAGE_BIT = 0x0200; -pub const CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000; -pub const BUFFER_IMMUTABLE_STORAGE = 0x821F; -pub const BUFFER_STORAGE_FLAGS = 0x8220; -pub const CLEAR_TEXTURE = 0x9365; -pub const LOCATION_COMPONENT = 0x934A; -pub const TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B; -pub const TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C; -pub const QUERY_BUFFER = 0x9192; -pub const QUERY_BUFFER_BARRIER_BIT = 0x00008000; -pub const QUERY_BUFFER_BINDING = 0x9193; -pub const QUERY_RESULT_NO_WAIT = 0x9194; -pub const MIRROR_CLAMP_TO_EDGE = 0x8743; -pub const CONTEXT_LOST = 0x0507; -pub const NEGATIVE_ONE_TO_ONE = 0x935E; -pub const ZERO_TO_ONE = 0x935F; -pub const CLIP_ORIGIN = 0x935C; -pub const CLIP_DEPTH_MODE = 0x935D; -pub const QUERY_WAIT_INVERTED = 0x8E17; -pub const QUERY_NO_WAIT_INVERTED = 0x8E18; -pub const QUERY_BY_REGION_WAIT_INVERTED = 0x8E19; -pub const QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A; -pub const MAX_CULL_DISTANCES = 0x82F9; -pub const MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA; -pub const TEXTURE_TARGET = 0x1006; -pub const QUERY_TARGET = 0x82EA; -pub const GUILTY_CONTEXT_RESET = 0x8253; -pub const INNOCENT_CONTEXT_RESET = 0x8254; -pub const UNKNOWN_CONTEXT_RESET = 0x8255; -pub const RESET_NOTIFICATION_STRATEGY = 0x8256; -pub const LOSE_CONTEXT_ON_RESET = 0x8252; -pub const NO_RESET_NOTIFICATION = 0x8261; -pub const CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004; -pub const CONTEXT_RELEASE_BEHAVIOR = 0x82FB; -pub const CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC; -pub fn texStorage2D(_target: GLenum, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glTexStorage2D orelse @panic("glTexStorage2D was not bound."))(_target, _levels, _internalformat, _width, _height); -} - -pub fn texStorage1D(_target: GLenum, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei) void { - return (function_pointers.glTexStorage1D orelse @panic("glTexStorage1D was not bound."))(_target, _levels, _internalformat, _width); -} - -pub fn drawTransformFeedbackStreamInstanced(_mode: GLenum, _id: GLuint, _stream: GLuint, _instancecount: GLsizei) void { - return (function_pointers.glDrawTransformFeedbackStreamInstanced orelse @panic("glDrawTransformFeedbackStreamInstanced was not bound."))(_mode, _id, _stream, _instancecount); -} - -pub fn drawTransformFeedbackInstanced(_mode: GLenum, _id: GLuint, _instancecount: GLsizei) void { - return (function_pointers.glDrawTransformFeedbackInstanced orelse @panic("glDrawTransformFeedbackInstanced was not bound."))(_mode, _id, _instancecount); -} - -pub fn texStorage3D(_target: GLenum, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei) void { - return (function_pointers.glTexStorage3D orelse @panic("glTexStorage3D was not bound."))(_target, _levels, _internalformat, _width, _height, _depth); -} - -pub fn memoryBarrier(_barriers: GLbitfield) void { - return (function_pointers.glMemoryBarrier orelse @panic("glMemoryBarrier was not bound."))(_barriers); -} - -pub fn bindImageTexture(_unit: GLuint, _texture: GLuint, _level: GLint, _layered: GLboolean, _layer: GLint, _access: GLenum, _format: GLenum) void { - return (function_pointers.glBindImageTexture orelse @panic("glBindImageTexture was not bound."))(_unit, _texture, _level, _layered, _layer, _access, _format); -} - -pub fn getActiveAtomicCounterBufferiv(_program: GLuint, _bufferIndex: GLuint, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetActiveAtomicCounterBufferiv orelse @panic("glGetActiveAtomicCounterBufferiv was not bound."))(_program, _bufferIndex, _pname, _params); -} - -pub fn getInternalformativ(_target: GLenum, _internalformat: GLenum, _pname: GLenum, _count: GLsizei, _params: [*c]GLint) void { - return (function_pointers.glGetInternalformativ orelse @panic("glGetInternalformativ was not bound."))(_target, _internalformat, _pname, _count, _params); -} - -pub fn drawElementsInstancedBaseVertexBaseInstance(_mode: GLenum, _count: GLsizei, _type: GLenum, _indices: ?*const anyopaque, _instancecount: GLsizei, _basevertex: GLint, _baseinstance: GLuint) void { - return (function_pointers.glDrawElementsInstancedBaseVertexBaseInstance orelse @panic("glDrawElementsInstancedBaseVertexBaseInstance was not bound."))(_mode, _count, _type, _indices, _instancecount, _basevertex, _baseinstance); -} - -pub fn drawElementsInstancedBaseInstance(_mode: GLenum, _count: GLsizei, _type: GLenum, _indices: ?*const anyopaque, _instancecount: GLsizei, _baseinstance: GLuint) void { - return (function_pointers.glDrawElementsInstancedBaseInstance orelse @panic("glDrawElementsInstancedBaseInstance was not bound."))(_mode, _count, _type, _indices, _instancecount, _baseinstance); -} - -pub fn drawArraysInstancedBaseInstance(_mode: GLenum, _first: GLint, _count: GLsizei, _instancecount: GLsizei, _baseinstance: GLuint) void { - return (function_pointers.glDrawArraysInstancedBaseInstance orelse @panic("glDrawArraysInstancedBaseInstance was not bound."))(_mode, _first, _count, _instancecount, _baseinstance); -} - -pub fn getDoublei_v(_target: GLenum, _index: GLuint, _data: [*c]GLdouble) void { - return (function_pointers.glGetDoublei_v orelse @panic("glGetDoublei_v was not bound."))(_target, _index, _data); -} - -pub fn getFloati_v(_target: GLenum, _index: GLuint, _data: [*c]GLfloat) void { - return (function_pointers.glGetFloati_v orelse @panic("glGetFloati_v was not bound."))(_target, _index, _data); -} - -pub fn depthRangeIndexed(_index: GLuint, _n: GLdouble, _f: GLdouble) void { - return (function_pointers.glDepthRangeIndexed orelse @panic("glDepthRangeIndexed was not bound."))(_index, _n, _f); -} - -pub fn depthRangeArrayv(_first: GLuint, _count: GLsizei, _v: [*c]const GLdouble) void { - return (function_pointers.glDepthRangeArrayv orelse @panic("glDepthRangeArrayv was not bound."))(_first, _count, _v); -} - -pub fn scissorIndexedv(_index: GLuint, _v: [*c]const GLint) void { - return (function_pointers.glScissorIndexedv orelse @panic("glScissorIndexedv was not bound."))(_index, _v); -} - -pub fn scissorIndexed(_index: GLuint, _left: GLint, _bottom: GLint, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glScissorIndexed orelse @panic("glScissorIndexed was not bound."))(_index, _left, _bottom, _width, _height); -} - -pub fn scissorArrayv(_first: GLuint, _count: GLsizei, _v: [*c]const GLint) void { - return (function_pointers.glScissorArrayv orelse @panic("glScissorArrayv was not bound."))(_first, _count, _v); -} - -pub fn viewportIndexedfv(_index: GLuint, _v: [*c]const GLfloat) void { - return (function_pointers.glViewportIndexedfv orelse @panic("glViewportIndexedfv was not bound."))(_index, _v); -} - -pub fn viewportIndexedf(_index: GLuint, _x: GLfloat, _y: GLfloat, _w: GLfloat, _h: GLfloat) void { - return (function_pointers.glViewportIndexedf orelse @panic("glViewportIndexedf was not bound."))(_index, _x, _y, _w, _h); -} - -pub fn viewportArrayv(_first: GLuint, _count: GLsizei, _v: [*c]const GLfloat) void { - return (function_pointers.glViewportArrayv orelse @panic("glViewportArrayv was not bound."))(_first, _count, _v); -} - -pub fn getVertexAttribLdv(_index: GLuint, _pname: GLenum, _params: [*c]GLdouble) void { - return (function_pointers.glGetVertexAttribLdv orelse @panic("glGetVertexAttribLdv was not bound."))(_index, _pname, _params); -} - -pub fn vertexAttribLPointer(_index: GLuint, _size: GLint, _type: GLenum, _stride: GLsizei, _pointer: ?*const anyopaque) void { - return (function_pointers.glVertexAttribLPointer orelse @panic("glVertexAttribLPointer was not bound."))(_index, _size, _type, _stride, _pointer); -} - -pub fn vertexAttribL4dv(_index: GLuint, _v: [*c]const GLdouble) void { - return (function_pointers.glVertexAttribL4dv orelse @panic("glVertexAttribL4dv was not bound."))(_index, _v); -} - -pub fn vertexAttribL3dv(_index: GLuint, _v: [*c]const GLdouble) void { - return (function_pointers.glVertexAttribL3dv orelse @panic("glVertexAttribL3dv was not bound."))(_index, _v); -} - -pub fn vertexAttribL2dv(_index: GLuint, _v: [*c]const GLdouble) void { - return (function_pointers.glVertexAttribL2dv orelse @panic("glVertexAttribL2dv was not bound."))(_index, _v); -} - -pub fn vertexAttribL1dv(_index: GLuint, _v: [*c]const GLdouble) void { - return (function_pointers.glVertexAttribL1dv orelse @panic("glVertexAttribL1dv was not bound."))(_index, _v); -} - -pub fn vertexAttribL4d(_index: GLuint, _x: GLdouble, _y: GLdouble, _z: GLdouble, _w: GLdouble) void { - return (function_pointers.glVertexAttribL4d orelse @panic("glVertexAttribL4d was not bound."))(_index, _x, _y, _z, _w); -} - -pub fn vertexAttribL3d(_index: GLuint, _x: GLdouble, _y: GLdouble, _z: GLdouble) void { - return (function_pointers.glVertexAttribL3d orelse @panic("glVertexAttribL3d was not bound."))(_index, _x, _y, _z); -} - -pub fn vertexAttribL2d(_index: GLuint, _x: GLdouble, _y: GLdouble) void { - return (function_pointers.glVertexAttribL2d orelse @panic("glVertexAttribL2d was not bound."))(_index, _x, _y); -} - -pub fn vertexAttribL1d(_index: GLuint, _x: GLdouble) void { - return (function_pointers.glVertexAttribL1d orelse @panic("glVertexAttribL1d was not bound."))(_index, _x); -} - -pub fn validateProgramPipeline(_pipeline: GLuint) void { - return (function_pointers.glValidateProgramPipeline orelse @panic("glValidateProgramPipeline was not bound."))(_pipeline); -} - -pub fn programUniformMatrix4x3dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix4x3dv orelse @panic("glProgramUniformMatrix4x3dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix3x4dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix3x4dv orelse @panic("glProgramUniformMatrix3x4dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix4x2dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix4x2dv orelse @panic("glProgramUniformMatrix4x2dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix2x4dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix2x4dv orelse @panic("glProgramUniformMatrix2x4dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix3x2dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix3x2dv orelse @panic("glProgramUniformMatrix3x2dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix2x3dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix2x3dv orelse @panic("glProgramUniformMatrix2x3dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix4x3fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix4x3fv orelse @panic("glProgramUniformMatrix4x3fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix3x4fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix3x4fv orelse @panic("glProgramUniformMatrix3x4fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix4x2fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix4x2fv orelse @panic("glProgramUniformMatrix4x2fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix2x4fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix2x4fv orelse @panic("glProgramUniformMatrix2x4fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix3x2fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix3x2fv orelse @panic("glProgramUniformMatrix3x2fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix2x3fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix2x3fv orelse @panic("glProgramUniformMatrix2x3fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix4dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix4dv orelse @panic("glProgramUniformMatrix4dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix3dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix3dv orelse @panic("glProgramUniformMatrix3dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix2dv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniformMatrix2dv orelse @panic("glProgramUniformMatrix2dv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix4fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix4fv orelse @panic("glProgramUniformMatrix4fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix3fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix3fv orelse @panic("glProgramUniformMatrix3fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniformMatrix2fv(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniformMatrix2fv orelse @panic("glProgramUniformMatrix2fv was not bound."))(_program, _location, _count, _transpose, _value); -} - -pub fn programUniform4uiv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLuint) void { - return (function_pointers.glProgramUniform4uiv orelse @panic("glProgramUniform4uiv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform4ui(_program: GLuint, _location: GLint, _v0: GLuint, _v1: GLuint, _v2: GLuint, _v3: GLuint) void { - return (function_pointers.glProgramUniform4ui orelse @panic("glProgramUniform4ui was not bound."))(_program, _location, _v0, _v1, _v2, _v3); -} - -pub fn programUniform4dv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniform4dv orelse @panic("glProgramUniform4dv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform4d(_program: GLuint, _location: GLint, _v0: GLdouble, _v1: GLdouble, _v2: GLdouble, _v3: GLdouble) void { - return (function_pointers.glProgramUniform4d orelse @panic("glProgramUniform4d was not bound."))(_program, _location, _v0, _v1, _v2, _v3); -} - -pub fn programUniform4fv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniform4fv orelse @panic("glProgramUniform4fv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform4f(_program: GLuint, _location: GLint, _v0: GLfloat, _v1: GLfloat, _v2: GLfloat, _v3: GLfloat) void { - return (function_pointers.glProgramUniform4f orelse @panic("glProgramUniform4f was not bound."))(_program, _location, _v0, _v1, _v2, _v3); -} - -pub fn programUniform4iv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLint) void { - return (function_pointers.glProgramUniform4iv orelse @panic("glProgramUniform4iv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform4i(_program: GLuint, _location: GLint, _v0: GLint, _v1: GLint, _v2: GLint, _v3: GLint) void { - return (function_pointers.glProgramUniform4i orelse @panic("glProgramUniform4i was not bound."))(_program, _location, _v0, _v1, _v2, _v3); -} - -pub fn programUniform3uiv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLuint) void { - return (function_pointers.glProgramUniform3uiv orelse @panic("glProgramUniform3uiv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform3ui(_program: GLuint, _location: GLint, _v0: GLuint, _v1: GLuint, _v2: GLuint) void { - return (function_pointers.glProgramUniform3ui orelse @panic("glProgramUniform3ui was not bound."))(_program, _location, _v0, _v1, _v2); -} - -pub fn programUniform3dv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniform3dv orelse @panic("glProgramUniform3dv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform3d(_program: GLuint, _location: GLint, _v0: GLdouble, _v1: GLdouble, _v2: GLdouble) void { - return (function_pointers.glProgramUniform3d orelse @panic("glProgramUniform3d was not bound."))(_program, _location, _v0, _v1, _v2); -} - -pub fn programUniform3fv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniform3fv orelse @panic("glProgramUniform3fv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform3f(_program: GLuint, _location: GLint, _v0: GLfloat, _v1: GLfloat, _v2: GLfloat) void { - return (function_pointers.glProgramUniform3f orelse @panic("glProgramUniform3f was not bound."))(_program, _location, _v0, _v1, _v2); -} - -pub fn programUniform3iv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLint) void { - return (function_pointers.glProgramUniform3iv orelse @panic("glProgramUniform3iv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform3i(_program: GLuint, _location: GLint, _v0: GLint, _v1: GLint, _v2: GLint) void { - return (function_pointers.glProgramUniform3i orelse @panic("glProgramUniform3i was not bound."))(_program, _location, _v0, _v1, _v2); -} - -pub fn useProgramStages(_pipeline: GLuint, _stages: GLbitfield, _program: GLuint) void { - return (function_pointers.glUseProgramStages orelse @panic("glUseProgramStages was not bound."))(_pipeline, _stages, _program); -} - -pub fn programParameteri(_program: GLuint, _pname: GLenum, _value: GLint) void { - return (function_pointers.glProgramParameteri orelse @panic("glProgramParameteri was not bound."))(_program, _pname, _value); -} - -pub fn getShaderPrecisionFormat(_shadertype: GLenum, _precisiontype: GLenum, _range: [*c]GLint, _precision: [*c]GLint) void { - return (function_pointers.glGetShaderPrecisionFormat orelse @panic("glGetShaderPrecisionFormat was not bound."))(_shadertype, _precisiontype, _range, _precision); -} - -pub fn shaderBinary(_count: GLsizei, _shaders: [*c]const GLuint, _binaryFormat: GLenum, _binary: ?*const anyopaque, _length: GLsizei) void { - return (function_pointers.glShaderBinary orelse @panic("glShaderBinary was not bound."))(_count, _shaders, _binaryFormat, _binary, _length); -} - -pub fn releaseShaderCompiler() void { - return (function_pointers.glReleaseShaderCompiler orelse @panic("glReleaseShaderCompiler was not bound."))(); -} - -pub fn getQueryIndexediv(_target: GLenum, _index: GLuint, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetQueryIndexediv orelse @panic("glGetQueryIndexediv was not bound."))(_target, _index, _pname, _params); -} - -pub fn endQueryIndexed(_target: GLenum, _index: GLuint) void { - return (function_pointers.glEndQueryIndexed orelse @panic("glEndQueryIndexed was not bound."))(_target, _index); -} - -pub fn beginQueryIndexed(_target: GLenum, _index: GLuint, _id: GLuint) void { - return (function_pointers.glBeginQueryIndexed orelse @panic("glBeginQueryIndexed was not bound."))(_target, _index, _id); -} - -pub fn drawTransformFeedbackStream(_mode: GLenum, _id: GLuint, _stream: GLuint) void { - return (function_pointers.glDrawTransformFeedbackStream orelse @panic("glDrawTransformFeedbackStream was not bound."))(_mode, _id, _stream); -} - -pub fn drawTransformFeedback(_mode: GLenum, _id: GLuint) void { - return (function_pointers.glDrawTransformFeedback orelse @panic("glDrawTransformFeedback was not bound."))(_mode, _id); -} - -pub fn resumeTransformFeedback() void { - return (function_pointers.glResumeTransformFeedback orelse @panic("glResumeTransformFeedback was not bound."))(); -} - -pub fn pauseTransformFeedback() void { - return (function_pointers.glPauseTransformFeedback orelse @panic("glPauseTransformFeedback was not bound."))(); -} - -pub fn getProgramStageiv(_program: GLuint, _shadertype: GLenum, _pname: GLenum, _values: [*c]GLint) void { - return (function_pointers.glGetProgramStageiv orelse @panic("glGetProgramStageiv was not bound."))(_program, _shadertype, _pname, _values); -} - -pub fn getUniformSubroutineuiv(_shadertype: GLenum, _location: GLint, _params: [*c]GLuint) void { - return (function_pointers.glGetUniformSubroutineuiv orelse @panic("glGetUniformSubroutineuiv was not bound."))(_shadertype, _location, _params); -} - -pub fn uniformSubroutinesuiv(_shadertype: GLenum, _count: GLsizei, _indices: [*c]const GLuint) void { - return (function_pointers.glUniformSubroutinesuiv orelse @panic("glUniformSubroutinesuiv was not bound."))(_shadertype, _count, _indices); -} - -pub fn getActiveSubroutineName(_program: GLuint, _shadertype: GLenum, _index: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _name: [*c]GLchar) void { - return (function_pointers.glGetActiveSubroutineName orelse @panic("glGetActiveSubroutineName was not bound."))(_program, _shadertype, _index, _bufSize, _length, _name); -} - pub fn cullFace(_mode: GLenum) void { return (function_pointers.glCullFace orelse @panic("glCullFace was not bound."))(_mode); } @@ -1930,242 +1071,6 @@ pub fn viewport(_x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void { return (function_pointers.glViewport orelse @panic("glViewport was not bound."))(_x, _y, _width, _height); } -pub fn texStorage2DMultisample(_target: GLenum, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _fixedsamplelocations: GLboolean) void { - return (function_pointers.glTexStorage2DMultisample orelse @panic("glTexStorage2DMultisample was not bound."))(_target, _samples, _internalformat, _width, _height, _fixedsamplelocations); -} - -pub fn texBufferRange(_target: GLenum, _internalformat: GLenum, _buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr) void { - return (function_pointers.glTexBufferRange orelse @panic("glTexBufferRange was not bound."))(_target, _internalformat, _buffer, _offset, _size); -} - -pub fn shaderStorageBlockBinding(_program: GLuint, _storageBlockIndex: GLuint, _storageBlockBinding: GLuint) void { - return (function_pointers.glShaderStorageBlockBinding orelse @panic("glShaderStorageBlockBinding was not bound."))(_program, _storageBlockIndex, _storageBlockBinding); -} - -pub fn getProgramResourceLocationIndex(_program: GLuint, _programInterface: GLenum, _name: [*c]const GLchar) GLint { - return (function_pointers.glGetProgramResourceLocationIndex orelse @panic("glGetProgramResourceLocationIndex was not bound."))(_program, _programInterface, _name); -} - -pub fn getProgramResourceLocation(_program: GLuint, _programInterface: GLenum, _name: [*c]const GLchar) GLint { - return (function_pointers.glGetProgramResourceLocation orelse @panic("glGetProgramResourceLocation was not bound."))(_program, _programInterface, _name); -} - -pub fn getProgramResourceiv(_program: GLuint, _programInterface: GLenum, _index: GLuint, _propCount: GLsizei, _props: [*c]const GLenum, _count: GLsizei, _length: [*c]GLsizei, _params: [*c]GLint) void { - return (function_pointers.glGetProgramResourceiv orelse @panic("glGetProgramResourceiv was not bound."))(_program, _programInterface, _index, _propCount, _props, _count, _length, _params); -} - -pub fn getProgramResourceName(_program: GLuint, _programInterface: GLenum, _index: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _name: [*c]GLchar) void { - return (function_pointers.glGetProgramResourceName orelse @panic("glGetProgramResourceName was not bound."))(_program, _programInterface, _index, _bufSize, _length, _name); -} - -pub fn getProgramResourceIndex(_program: GLuint, _programInterface: GLenum, _name: [*c]const GLchar) GLuint { - return (function_pointers.glGetProgramResourceIndex orelse @panic("glGetProgramResourceIndex was not bound."))(_program, _programInterface, _name); -} - -pub fn getProgramInterfaceiv(_program: GLuint, _programInterface: GLenum, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetProgramInterfaceiv orelse @panic("glGetProgramInterfaceiv was not bound."))(_program, _programInterface, _pname, _params); -} - -pub fn multiDrawElementsIndirect(_mode: GLenum, _type: GLenum, _indirect: ?*const anyopaque, _drawcount: GLsizei, _stride: GLsizei) void { - return (function_pointers.glMultiDrawElementsIndirect orelse @panic("glMultiDrawElementsIndirect was not bound."))(_mode, _type, _indirect, _drawcount, _stride); -} - -pub fn multiDrawArraysIndirect(_mode: GLenum, _indirect: ?*const anyopaque, _drawcount: GLsizei, _stride: GLsizei) void { - return (function_pointers.glMultiDrawArraysIndirect orelse @panic("glMultiDrawArraysIndirect was not bound."))(_mode, _indirect, _drawcount, _stride); -} - -pub fn invalidateSubFramebuffer(_target: GLenum, _numAttachments: GLsizei, _attachments: [*c]const GLenum, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glInvalidateSubFramebuffer orelse @panic("glInvalidateSubFramebuffer was not bound."))(_target, _numAttachments, _attachments, _x, _y, _width, _height); -} - -pub fn invalidateFramebuffer(_target: GLenum, _numAttachments: GLsizei, _attachments: [*c]const GLenum) void { - return (function_pointers.glInvalidateFramebuffer orelse @panic("glInvalidateFramebuffer was not bound."))(_target, _numAttachments, _attachments); -} - -pub fn invalidateBufferData(_buffer: GLuint) void { - return (function_pointers.glInvalidateBufferData orelse @panic("glInvalidateBufferData was not bound."))(_buffer); -} - -pub fn invalidateBufferSubData(_buffer: GLuint, _offset: GLintptr, _length: GLsizeiptr) void { - return (function_pointers.glInvalidateBufferSubData orelse @panic("glInvalidateBufferSubData was not bound."))(_buffer, _offset, _length); -} - -pub fn invalidateTexImage(_texture: GLuint, _level: GLint) void { - return (function_pointers.glInvalidateTexImage orelse @panic("glInvalidateTexImage was not bound."))(_texture, _level); -} - -pub fn invalidateTexSubImage(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei) void { - return (function_pointers.glInvalidateTexSubImage orelse @panic("glInvalidateTexSubImage was not bound."))(_texture, _level, _xoffset, _yoffset, _zoffset, _width, _height, _depth); -} - -pub fn getInternalformati64v(_target: GLenum, _internalformat: GLenum, _pname: GLenum, _count: GLsizei, _params: [*c]GLint64) void { - return (function_pointers.glGetInternalformati64v orelse @panic("glGetInternalformati64v was not bound."))(_target, _internalformat, _pname, _count, _params); -} - -pub fn getFramebufferParameteriv(_target: GLenum, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetFramebufferParameteriv orelse @panic("glGetFramebufferParameteriv was not bound."))(_target, _pname, _params); -} - -pub fn framebufferParameteri(_target: GLenum, _pname: GLenum, _param: GLint) void { - return (function_pointers.glFramebufferParameteri orelse @panic("glFramebufferParameteri was not bound."))(_target, _pname, _param); -} - -pub fn copyImageSubData(_srcName: GLuint, _srcTarget: GLenum, _srcLevel: GLint, _srcX: GLint, _srcY: GLint, _srcZ: GLint, _dstName: GLuint, _dstTarget: GLenum, _dstLevel: GLint, _dstX: GLint, _dstY: GLint, _dstZ: GLint, _srcWidth: GLsizei, _srcHeight: GLsizei, _srcDepth: GLsizei) void { - return (function_pointers.glCopyImageSubData orelse @panic("glCopyImageSubData was not bound."))(_srcName, _srcTarget, _srcLevel, _srcX, _srcY, _srcZ, _dstName, _dstTarget, _dstLevel, _dstX, _dstY, _dstZ, _srcWidth, _srcHeight, _srcDepth); -} - -pub fn dispatchComputeIndirect(_indirect: GLintptr) void { - return (function_pointers.glDispatchComputeIndirect orelse @panic("glDispatchComputeIndirect was not bound."))(_indirect); -} - -pub fn dispatchCompute(_num_groups_x: GLuint, _num_groups_y: GLuint, _num_groups_z: GLuint) void { - return (function_pointers.glDispatchCompute orelse @panic("glDispatchCompute was not bound."))(_num_groups_x, _num_groups_y, _num_groups_z); -} - -pub fn clearBufferSubData(_target: GLenum, _internalformat: GLenum, _offset: GLintptr, _size: GLsizeiptr, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void { - return (function_pointers.glClearBufferSubData orelse @panic("glClearBufferSubData was not bound."))(_target, _internalformat, _offset, _size, _format, _type, _data); -} - -pub fn clearBufferData(_target: GLenum, _internalformat: GLenum, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void { - return (function_pointers.glClearBufferData orelse @panic("glClearBufferData was not bound."))(_target, _internalformat, _format, _type, _data); -} - -pub fn getProgramPipelineInfoLog(_pipeline: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _infoLog: [*c]GLchar) void { - return (function_pointers.glGetProgramPipelineInfoLog orelse @panic("glGetProgramPipelineInfoLog was not bound."))(_pipeline, _bufSize, _length, _infoLog); -} - -pub fn programUniform2uiv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLuint) void { - return (function_pointers.glProgramUniform2uiv orelse @panic("glProgramUniform2uiv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform2ui(_program: GLuint, _location: GLint, _v0: GLuint, _v1: GLuint) void { - return (function_pointers.glProgramUniform2ui orelse @panic("glProgramUniform2ui was not bound."))(_program, _location, _v0, _v1); -} - -pub fn programUniform2dv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniform2dv orelse @panic("glProgramUniform2dv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform2d(_program: GLuint, _location: GLint, _v0: GLdouble, _v1: GLdouble) void { - return (function_pointers.glProgramUniform2d orelse @panic("glProgramUniform2d was not bound."))(_program, _location, _v0, _v1); -} - -pub fn programUniform2fv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniform2fv orelse @panic("glProgramUniform2fv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform2f(_program: GLuint, _location: GLint, _v0: GLfloat, _v1: GLfloat) void { - return (function_pointers.glProgramUniform2f orelse @panic("glProgramUniform2f was not bound."))(_program, _location, _v0, _v1); -} - -pub fn programUniform2iv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLint) void { - return (function_pointers.glProgramUniform2iv orelse @panic("glProgramUniform2iv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform2i(_program: GLuint, _location: GLint, _v0: GLint, _v1: GLint) void { - return (function_pointers.glProgramUniform2i orelse @panic("glProgramUniform2i was not bound."))(_program, _location, _v0, _v1); -} - -pub fn programUniform1uiv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLuint) void { - return (function_pointers.glProgramUniform1uiv orelse @panic("glProgramUniform1uiv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform1ui(_program: GLuint, _location: GLint, _v0: GLuint) void { - return (function_pointers.glProgramUniform1ui orelse @panic("glProgramUniform1ui was not bound."))(_program, _location, _v0); -} - -pub fn programUniform1dv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void { - return (function_pointers.glProgramUniform1dv orelse @panic("glProgramUniform1dv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform1d(_program: GLuint, _location: GLint, _v0: GLdouble) void { - return (function_pointers.glProgramUniform1d orelse @panic("glProgramUniform1d was not bound."))(_program, _location, _v0); -} - -pub fn programUniform1fv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLfloat) void { - return (function_pointers.glProgramUniform1fv orelse @panic("glProgramUniform1fv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform1f(_program: GLuint, _location: GLint, _v0: GLfloat) void { - return (function_pointers.glProgramUniform1f orelse @panic("glProgramUniform1f was not bound."))(_program, _location, _v0); -} - -pub fn programUniform1iv(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLint) void { - return (function_pointers.glProgramUniform1iv orelse @panic("glProgramUniform1iv was not bound."))(_program, _location, _count, _value); -} - -pub fn programUniform1i(_program: GLuint, _location: GLint, _v0: GLint) void { - return (function_pointers.glProgramUniform1i orelse @panic("glProgramUniform1i was not bound."))(_program, _location, _v0); -} - -pub fn getProgramPipelineiv(_pipeline: GLuint, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetProgramPipelineiv orelse @panic("glGetProgramPipelineiv was not bound."))(_pipeline, _pname, _params); -} - -pub fn isProgramPipeline(_pipeline: GLuint) GLboolean { - return (function_pointers.glIsProgramPipeline orelse @panic("glIsProgramPipeline was not bound."))(_pipeline); -} - -pub fn genProgramPipelines(_n: GLsizei, _pipelines: [*c]GLuint) void { - return (function_pointers.glGenProgramPipelines orelse @panic("glGenProgramPipelines was not bound."))(_n, _pipelines); -} - -pub fn deleteProgramPipelines(_n: GLsizei, _pipelines: [*c]const GLuint) void { - return (function_pointers.glDeleteProgramPipelines orelse @panic("glDeleteProgramPipelines was not bound."))(_n, _pipelines); -} - -pub fn bindProgramPipeline(_pipeline: GLuint) void { - return (function_pointers.glBindProgramPipeline orelse @panic("glBindProgramPipeline was not bound."))(_pipeline); -} - -pub fn createShaderProgramv(_type: GLenum, _count: GLsizei, _strings: [*c]const [*c]const GLchar) GLuint { - return (function_pointers.glCreateShaderProgramv orelse @panic("glCreateShaderProgramv was not bound."))(_type, _count, _strings); -} - -pub fn activeShaderProgram(_pipeline: GLuint, _program: GLuint) void { - return (function_pointers.glActiveShaderProgram orelse @panic("glActiveShaderProgram was not bound."))(_pipeline, _program); -} - -pub fn programBinary(_program: GLuint, _binaryFormat: GLenum, _binary: ?*const anyopaque, _length: GLsizei) void { - return (function_pointers.glProgramBinary orelse @panic("glProgramBinary was not bound."))(_program, _binaryFormat, _binary, _length); -} - -pub fn getProgramBinary(_program: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _binaryFormat: [*c]GLenum, _binary: ?*anyopaque) void { - return (function_pointers.glGetProgramBinary orelse @panic("glGetProgramBinary was not bound."))(_program, _bufSize, _length, _binaryFormat, _binary); -} - -pub fn clearDepthf(_d: GLfloat) void { - return (function_pointers.glClearDepthf orelse @panic("glClearDepthf was not bound."))(_d); -} - -pub fn depthRangef(_n: GLfloat, _f: GLfloat) void { - return (function_pointers.glDepthRangef orelse @panic("glDepthRangef was not bound."))(_n, _f); -} - -pub fn isTransformFeedback(_id: GLuint) GLboolean { - return (function_pointers.glIsTransformFeedback orelse @panic("glIsTransformFeedback was not bound."))(_id); -} - -pub fn genTransformFeedbacks(_n: GLsizei, _ids: [*c]GLuint) void { - return (function_pointers.glGenTransformFeedbacks orelse @panic("glGenTransformFeedbacks was not bound."))(_n, _ids); -} - -pub fn deleteTransformFeedbacks(_n: GLsizei, _ids: [*c]const GLuint) void { - return (function_pointers.glDeleteTransformFeedbacks orelse @panic("glDeleteTransformFeedbacks was not bound."))(_n, _ids); -} - -pub fn bindTransformFeedback(_target: GLenum, _id: GLuint) void { - return (function_pointers.glBindTransformFeedback orelse @panic("glBindTransformFeedback was not bound."))(_target, _id); -} - -pub fn patchParameterfv(_pname: GLenum, _values: [*c]const GLfloat) void { - return (function_pointers.glPatchParameterfv orelse @panic("glPatchParameterfv was not bound."))(_pname, _values); -} - -pub fn patchParameteri(_pname: GLenum, _value: GLint) void { - return (function_pointers.glPatchParameteri orelse @panic("glPatchParameteri was not bound."))(_pname, _value); -} - pub fn drawArrays(_mode: GLenum, _first: GLint, _count: GLsizei) void { return (function_pointers.glDrawArrays orelse @panic("glDrawArrays was not bound."))(_mode, _first, _count); } @@ -2218,58 +1123,6 @@ pub fn isTexture(_texture: GLuint) GLboolean { return (function_pointers.glIsTexture orelse @panic("glIsTexture was not bound."))(_texture); } -pub fn getActiveSubroutineUniformName(_program: GLuint, _shadertype: GLenum, _index: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _name: [*c]GLchar) void { - return (function_pointers.glGetActiveSubroutineUniformName orelse @panic("glGetActiveSubroutineUniformName was not bound."))(_program, _shadertype, _index, _bufSize, _length, _name); -} - -pub fn getActiveSubroutineUniformiv(_program: GLuint, _shadertype: GLenum, _index: GLuint, _pname: GLenum, _values: [*c]GLint) void { - return (function_pointers.glGetActiveSubroutineUniformiv orelse @panic("glGetActiveSubroutineUniformiv was not bound."))(_program, _shadertype, _index, _pname, _values); -} - -pub fn getSubroutineIndex(_program: GLuint, _shadertype: GLenum, _name: [*c]const GLchar) GLuint { - return (function_pointers.glGetSubroutineIndex orelse @panic("glGetSubroutineIndex was not bound."))(_program, _shadertype, _name); -} - -pub fn getSubroutineUniformLocation(_program: GLuint, _shadertype: GLenum, _name: [*c]const GLchar) GLint { - return (function_pointers.glGetSubroutineUniformLocation orelse @panic("glGetSubroutineUniformLocation was not bound."))(_program, _shadertype, _name); -} - -pub fn getUniformdv(_program: GLuint, _location: GLint, _params: [*c]GLdouble) void { - return (function_pointers.glGetUniformdv orelse @panic("glGetUniformdv was not bound."))(_program, _location, _params); -} - -pub fn uniformMatrix4x3dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix4x3dv orelse @panic("glUniformMatrix4x3dv was not bound."))(_location, _count, _transpose, _value); -} - -pub fn uniformMatrix4x2dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix4x2dv orelse @panic("glUniformMatrix4x2dv was not bound."))(_location, _count, _transpose, _value); -} - -pub fn uniformMatrix3x4dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix3x4dv orelse @panic("glUniformMatrix3x4dv was not bound."))(_location, _count, _transpose, _value); -} - -pub fn uniformMatrix3x2dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix3x2dv orelse @panic("glUniformMatrix3x2dv was not bound."))(_location, _count, _transpose, _value); -} - -pub fn uniformMatrix2x4dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix2x4dv orelse @panic("glUniformMatrix2x4dv was not bound."))(_location, _count, _transpose, _value); -} - -pub fn uniformMatrix2x3dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix2x3dv orelse @panic("glUniformMatrix2x3dv was not bound."))(_location, _count, _transpose, _value); -} - -pub fn uniformMatrix4dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix4dv orelse @panic("glUniformMatrix4dv was not bound."))(_location, _count, _transpose, _value); -} - -pub fn uniformMatrix3dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix3dv orelse @panic("glUniformMatrix3dv was not bound."))(_location, _count, _transpose, _value); -} - pub fn drawRangeElements(_mode: GLenum, _start: GLuint, _end: GLuint, _count: GLsizei, _type: GLenum, _indices: ?*const anyopaque) void { return (function_pointers.glDrawRangeElements orelse @panic("glDrawRangeElements was not bound."))(_mode, _start, _end, _count, _type, _indices); } @@ -2286,70 +1139,6 @@ pub fn copyTexSubImage3D(_target: GLenum, _level: GLint, _xoffset: GLint, _yoffs return (function_pointers.glCopyTexSubImage3D orelse @panic("glCopyTexSubImage3D was not bound."))(_target, _level, _xoffset, _yoffset, _zoffset, _x, _y, _width, _height); } -pub fn uniformMatrix2dv(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void { - return (function_pointers.glUniformMatrix2dv orelse @panic("glUniformMatrix2dv was not bound."))(_location, _count, _transpose, _value); -} - -pub fn uniform4dv(_location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void { - return (function_pointers.glUniform4dv orelse @panic("glUniform4dv was not bound."))(_location, _count, _value); -} - -pub fn uniform3dv(_location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void { - return (function_pointers.glUniform3dv orelse @panic("glUniform3dv was not bound."))(_location, _count, _value); -} - -pub fn uniform2dv(_location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void { - return (function_pointers.glUniform2dv orelse @panic("glUniform2dv was not bound."))(_location, _count, _value); -} - -pub fn uniform1dv(_location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void { - return (function_pointers.glUniform1dv orelse @panic("glUniform1dv was not bound."))(_location, _count, _value); -} - -pub fn uniform4d(_location: GLint, _x: GLdouble, _y: GLdouble, _z: GLdouble, _w: GLdouble) void { - return (function_pointers.glUniform4d orelse @panic("glUniform4d was not bound."))(_location, _x, _y, _z, _w); -} - -pub fn uniform3d(_location: GLint, _x: GLdouble, _y: GLdouble, _z: GLdouble) void { - return (function_pointers.glUniform3d orelse @panic("glUniform3d was not bound."))(_location, _x, _y, _z); -} - -pub fn uniform2d(_location: GLint, _x: GLdouble, _y: GLdouble) void { - return (function_pointers.glUniform2d orelse @panic("glUniform2d was not bound."))(_location, _x, _y); -} - -pub fn uniform1d(_location: GLint, _x: GLdouble) void { - return (function_pointers.glUniform1d orelse @panic("glUniform1d was not bound."))(_location, _x); -} - -pub fn drawElementsIndirect(_mode: GLenum, _type: GLenum, _indirect: ?*const anyopaque) void { - return (function_pointers.glDrawElementsIndirect orelse @panic("glDrawElementsIndirect was not bound."))(_mode, _type, _indirect); -} - -pub fn drawArraysIndirect(_mode: GLenum, _indirect: ?*const anyopaque) void { - return (function_pointers.glDrawArraysIndirect orelse @panic("glDrawArraysIndirect was not bound."))(_mode, _indirect); -} - -pub fn blendFuncSeparatei(_buf: GLuint, _srcRGB: GLenum, _dstRGB: GLenum, _srcAlpha: GLenum, _dstAlpha: GLenum) void { - return (function_pointers.glBlendFuncSeparatei orelse @panic("glBlendFuncSeparatei was not bound."))(_buf, _srcRGB, _dstRGB, _srcAlpha, _dstAlpha); -} - -pub fn blendFunci(_buf: GLuint, _src: GLenum, _dst: GLenum) void { - return (function_pointers.glBlendFunci orelse @panic("glBlendFunci was not bound."))(_buf, _src, _dst); -} - -pub fn blendEquationSeparatei(_buf: GLuint, _modeRGB: GLenum, _modeAlpha: GLenum) void { - return (function_pointers.glBlendEquationSeparatei orelse @panic("glBlendEquationSeparatei was not bound."))(_buf, _modeRGB, _modeAlpha); -} - -pub fn blendEquationi(_buf: GLuint, _mode: GLenum) void { - return (function_pointers.glBlendEquationi orelse @panic("glBlendEquationi was not bound."))(_buf, _mode); -} - -pub fn minSampleShading(_value: GLfloat) void { - return (function_pointers.glMinSampleShading orelse @panic("glMinSampleShading was not bound."))(_value); -} - pub fn activeTexture(_texture: GLenum) void { return (function_pointers.glActiveTexture orelse @panic("glActiveTexture was not bound."))(_texture); } @@ -3465,1061 +2254,11 @@ pub fn getActiveUniformBlockName(_program: GLuint, _uniformBlockIndex: GLuint, _ pub fn uniformBlockBinding(_program: GLuint, _uniformBlockIndex: GLuint, _uniformBlockBinding: GLuint) void { return (function_pointers.glUniformBlockBinding orelse @panic("glUniformBlockBinding was not bound."))(_program, _uniformBlockIndex, _uniformBlockBinding); } - -pub fn texStorage3DMultisample(_target: GLenum, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _fixedsamplelocations: GLboolean) void { - return (function_pointers.glTexStorage3DMultisample orelse @panic("glTexStorage3DMultisample was not bound."))(_target, _samples, _internalformat, _width, _height, _depth, _fixedsamplelocations); -} - -pub fn textureView(_texture: GLuint, _target: GLenum, _origtexture: GLuint, _internalformat: GLenum, _minlevel: GLuint, _numlevels: GLuint, _minlayer: GLuint, _numlayers: GLuint) void { - return (function_pointers.glTextureView orelse @panic("glTextureView was not bound."))(_texture, _target, _origtexture, _internalformat, _minlevel, _numlevels, _minlayer, _numlayers); -} - -pub fn bindVertexBuffer(_bindingindex: GLuint, _buffer: GLuint, _offset: GLintptr, _stride: GLsizei) void { - return (function_pointers.glBindVertexBuffer orelse @panic("glBindVertexBuffer was not bound."))(_bindingindex, _buffer, _offset, _stride); -} - -pub fn vertexAttribFormat(_attribindex: GLuint, _size: GLint, _type: GLenum, _normalized: GLboolean, _relativeoffset: GLuint) void { - return (function_pointers.glVertexAttribFormat orelse @panic("glVertexAttribFormat was not bound."))(_attribindex, _size, _type, _normalized, _relativeoffset); -} - -pub fn vertexAttribIFormat(_attribindex: GLuint, _size: GLint, _type: GLenum, _relativeoffset: GLuint) void { - return (function_pointers.glVertexAttribIFormat orelse @panic("glVertexAttribIFormat was not bound."))(_attribindex, _size, _type, _relativeoffset); -} - -pub fn vertexAttribLFormat(_attribindex: GLuint, _size: GLint, _type: GLenum, _relativeoffset: GLuint) void { - return (function_pointers.glVertexAttribLFormat orelse @panic("glVertexAttribLFormat was not bound."))(_attribindex, _size, _type, _relativeoffset); -} - -pub fn vertexAttribBinding(_attribindex: GLuint, _bindingindex: GLuint) void { - return (function_pointers.glVertexAttribBinding orelse @panic("glVertexAttribBinding was not bound."))(_attribindex, _bindingindex); -} - -pub fn vertexBindingDivisor(_bindingindex: GLuint, _divisor: GLuint) void { - return (function_pointers.glVertexBindingDivisor orelse @panic("glVertexBindingDivisor was not bound."))(_bindingindex, _divisor); -} - -pub fn debugMessageControl(_source: GLenum, _type: GLenum, _severity: GLenum, _count: GLsizei, _ids: [*c]const GLuint, _enabled: GLboolean) void { - return (function_pointers.glDebugMessageControl orelse @panic("glDebugMessageControl was not bound."))(_source, _type, _severity, _count, _ids, _enabled); -} - -pub fn debugMessageInsert(_source: GLenum, _type: GLenum, _id: GLuint, _severity: GLenum, _length: GLsizei, _buf: [*c]const GLchar) void { - return (function_pointers.glDebugMessageInsert orelse @panic("glDebugMessageInsert was not bound."))(_source, _type, _id, _severity, _length, _buf); -} - -pub fn debugMessageCallback(_callback: GLDEBUGPROC, _userParam: ?*const anyopaque) void { - return (function_pointers.glDebugMessageCallback orelse @panic("glDebugMessageCallback was not bound."))(_callback, _userParam); -} - -pub fn getDebugMessageLog(_count: GLuint, _bufSize: GLsizei, _sources: [*c]GLenum, _types: [*c]GLenum, _ids: [*c]GLuint, _severities: [*c]GLenum, _lengths: [*c]GLsizei, _messageLog: [*c]GLchar) GLuint { - return (function_pointers.glGetDebugMessageLog orelse @panic("glGetDebugMessageLog was not bound."))(_count, _bufSize, _sources, _types, _ids, _severities, _lengths, _messageLog); -} - -pub fn pushDebugGroup(_source: GLenum, _id: GLuint, _length: GLsizei, _message: [*c]const GLchar) void { - return (function_pointers.glPushDebugGroup orelse @panic("glPushDebugGroup was not bound."))(_source, _id, _length, _message); -} - -pub fn popDebugGroup() void { - return (function_pointers.glPopDebugGroup orelse @panic("glPopDebugGroup was not bound."))(); -} - -pub fn objectLabel(_identifier: GLenum, _name: GLuint, _length: GLsizei, _label: [*c]const GLchar) void { - return (function_pointers.glObjectLabel orelse @panic("glObjectLabel was not bound."))(_identifier, _name, _length, _label); -} - -pub fn getObjectLabel(_identifier: GLenum, _name: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _label: [*c]GLchar) void { - return (function_pointers.glGetObjectLabel orelse @panic("glGetObjectLabel was not bound."))(_identifier, _name, _bufSize, _length, _label); -} - -pub fn objectPtrLabel(_ptr: ?*const anyopaque, _length: GLsizei, _label: [*c]const GLchar) void { - return (function_pointers.glObjectPtrLabel orelse @panic("glObjectPtrLabel was not bound."))(_ptr, _length, _label); -} - -pub fn getObjectPtrLabel(_ptr: ?*const anyopaque, _bufSize: GLsizei, _length: [*c]GLsizei, _label: [*c]GLchar) void { - return (function_pointers.glGetObjectPtrLabel orelse @panic("glGetObjectPtrLabel was not bound."))(_ptr, _bufSize, _length, _label); -} - -pub fn getPointerv(_pname: GLenum, _params: ?*?*anyopaque) void { - return (function_pointers.glGetPointerv orelse @panic("glGetPointerv was not bound."))(_pname, _params); -} - -pub fn bufferStorage(_target: GLenum, _size: GLsizeiptr, _data: ?*const anyopaque, _flags: GLbitfield) void { - return (function_pointers.glBufferStorage orelse @panic("glBufferStorage was not bound."))(_target, _size, _data, _flags); -} - -pub fn clearTexImage(_texture: GLuint, _level: GLint, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void { - return (function_pointers.glClearTexImage orelse @panic("glClearTexImage was not bound."))(_texture, _level, _format, _type, _data); -} - -pub fn clearTexSubImage(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void { - return (function_pointers.glClearTexSubImage orelse @panic("glClearTexSubImage was not bound."))(_texture, _level, _xoffset, _yoffset, _zoffset, _width, _height, _depth, _format, _type, _data); -} - -pub fn bindBuffersBase(_target: GLenum, _first: GLuint, _count: GLsizei, _buffers: [*c]const GLuint) void { - return (function_pointers.glBindBuffersBase orelse @panic("glBindBuffersBase was not bound."))(_target, _first, _count, _buffers); -} - -pub fn bindBuffersRange(_target: GLenum, _first: GLuint, _count: GLsizei, _buffers: [*c]const GLuint, _offsets: [*c]const GLintptr, _sizes: [*c]const GLsizeiptr) void { - return (function_pointers.glBindBuffersRange orelse @panic("glBindBuffersRange was not bound."))(_target, _first, _count, _buffers, _offsets, _sizes); -} - -pub fn bindTextures(_first: GLuint, _count: GLsizei, _textures: [*c]const GLuint) void { - return (function_pointers.glBindTextures orelse @panic("glBindTextures was not bound."))(_first, _count, _textures); -} - -pub fn bindSamplers(_first: GLuint, _count: GLsizei, _samplers: [*c]const GLuint) void { - return (function_pointers.glBindSamplers orelse @panic("glBindSamplers was not bound."))(_first, _count, _samplers); -} - -pub fn bindImageTextures(_first: GLuint, _count: GLsizei, _textures: [*c]const GLuint) void { - return (function_pointers.glBindImageTextures orelse @panic("glBindImageTextures was not bound."))(_first, _count, _textures); -} - -pub fn bindVertexBuffers(_first: GLuint, _count: GLsizei, _buffers: [*c]const GLuint, _offsets: [*c]const GLintptr, _strides: [*c]const GLsizei) void { - return (function_pointers.glBindVertexBuffers orelse @panic("glBindVertexBuffers was not bound."))(_first, _count, _buffers, _offsets, _strides); -} - -pub fn clipControl(_origin: GLenum, _depth: GLenum) void { - return (function_pointers.glClipControl orelse @panic("glClipControl was not bound."))(_origin, _depth); -} - -pub fn createTransformFeedbacks(_n: GLsizei, _ids: [*c]GLuint) void { - return (function_pointers.glCreateTransformFeedbacks orelse @panic("glCreateTransformFeedbacks was not bound."))(_n, _ids); -} - -pub fn transformFeedbackBufferBase(_xfb: GLuint, _index: GLuint, _buffer: GLuint) void { - return (function_pointers.glTransformFeedbackBufferBase orelse @panic("glTransformFeedbackBufferBase was not bound."))(_xfb, _index, _buffer); -} - -pub fn transformFeedbackBufferRange(_xfb: GLuint, _index: GLuint, _buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr) void { - return (function_pointers.glTransformFeedbackBufferRange orelse @panic("glTransformFeedbackBufferRange was not bound."))(_xfb, _index, _buffer, _offset, _size); -} - -pub fn getTransformFeedbackiv(_xfb: GLuint, _pname: GLenum, _param: [*c]GLint) void { - return (function_pointers.glGetTransformFeedbackiv orelse @panic("glGetTransformFeedbackiv was not bound."))(_xfb, _pname, _param); -} - -pub fn getTransformFeedbacki_v(_xfb: GLuint, _pname: GLenum, _index: GLuint, _param: [*c]GLint) void { - return (function_pointers.glGetTransformFeedbacki_v orelse @panic("glGetTransformFeedbacki_v was not bound."))(_xfb, _pname, _index, _param); -} - -pub fn getTransformFeedbacki64_v(_xfb: GLuint, _pname: GLenum, _index: GLuint, _param: [*c]GLint64) void { - return (function_pointers.glGetTransformFeedbacki64_v orelse @panic("glGetTransformFeedbacki64_v was not bound."))(_xfb, _pname, _index, _param); -} - -pub fn createBuffers(_n: GLsizei, _buffers: [*c]GLuint) void { - return (function_pointers.glCreateBuffers orelse @panic("glCreateBuffers was not bound."))(_n, _buffers); -} - -pub fn namedBufferStorage(_buffer: GLuint, _size: GLsizeiptr, _data: ?*const anyopaque, _flags: GLbitfield) void { - return (function_pointers.glNamedBufferStorage orelse @panic("glNamedBufferStorage was not bound."))(_buffer, _size, _data, _flags); -} - -pub fn namedBufferData(_buffer: GLuint, _size: GLsizeiptr, _data: ?*const anyopaque, _usage: GLenum) void { - return (function_pointers.glNamedBufferData orelse @panic("glNamedBufferData was not bound."))(_buffer, _size, _data, _usage); -} - -pub fn namedBufferSubData(_buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr, _data: ?*const anyopaque) void { - return (function_pointers.glNamedBufferSubData orelse @panic("glNamedBufferSubData was not bound."))(_buffer, _offset, _size, _data); -} - -pub fn copyNamedBufferSubData(_readBuffer: GLuint, _writeBuffer: GLuint, _readOffset: GLintptr, _writeOffset: GLintptr, _size: GLsizeiptr) void { - return (function_pointers.glCopyNamedBufferSubData orelse @panic("glCopyNamedBufferSubData was not bound."))(_readBuffer, _writeBuffer, _readOffset, _writeOffset, _size); -} - -pub fn clearNamedBufferData(_buffer: GLuint, _internalformat: GLenum, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void { - return (function_pointers.glClearNamedBufferData orelse @panic("glClearNamedBufferData was not bound."))(_buffer, _internalformat, _format, _type, _data); -} - -pub fn clearNamedBufferSubData(_buffer: GLuint, _internalformat: GLenum, _offset: GLintptr, _size: GLsizeiptr, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void { - return (function_pointers.glClearNamedBufferSubData orelse @panic("glClearNamedBufferSubData was not bound."))(_buffer, _internalformat, _offset, _size, _format, _type, _data); -} - -pub fn mapNamedBuffer(_buffer: GLuint, _access: GLenum) ?*anyopaque { - return (function_pointers.glMapNamedBuffer orelse @panic("glMapNamedBuffer was not bound."))(_buffer, _access); -} - -pub fn mapNamedBufferRange(_buffer: GLuint, _offset: GLintptr, _length: GLsizeiptr, _access: GLbitfield) ?*anyopaque { - return (function_pointers.glMapNamedBufferRange orelse @panic("glMapNamedBufferRange was not bound."))(_buffer, _offset, _length, _access); -} - -pub fn unmapNamedBuffer(_buffer: GLuint) GLboolean { - return (function_pointers.glUnmapNamedBuffer orelse @panic("glUnmapNamedBuffer was not bound."))(_buffer); -} - -pub fn flushMappedNamedBufferRange(_buffer: GLuint, _offset: GLintptr, _length: GLsizeiptr) void { - return (function_pointers.glFlushMappedNamedBufferRange orelse @panic("glFlushMappedNamedBufferRange was not bound."))(_buffer, _offset, _length); -} - -pub fn getNamedBufferParameteriv(_buffer: GLuint, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetNamedBufferParameteriv orelse @panic("glGetNamedBufferParameteriv was not bound."))(_buffer, _pname, _params); -} - -pub fn getNamedBufferParameteri64v(_buffer: GLuint, _pname: GLenum, _params: [*c]GLint64) void { - return (function_pointers.glGetNamedBufferParameteri64v orelse @panic("glGetNamedBufferParameteri64v was not bound."))(_buffer, _pname, _params); -} - -pub fn getNamedBufferPointerv(_buffer: GLuint, _pname: GLenum, _params: ?*?*anyopaque) void { - return (function_pointers.glGetNamedBufferPointerv orelse @panic("glGetNamedBufferPointerv was not bound."))(_buffer, _pname, _params); -} - -pub fn getNamedBufferSubData(_buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr, _data: ?*anyopaque) void { - return (function_pointers.glGetNamedBufferSubData orelse @panic("glGetNamedBufferSubData was not bound."))(_buffer, _offset, _size, _data); -} - -pub fn createFramebuffers(_n: GLsizei, _framebuffers: [*c]GLuint) void { - return (function_pointers.glCreateFramebuffers orelse @panic("glCreateFramebuffers was not bound."))(_n, _framebuffers); -} - -pub fn namedFramebufferRenderbuffer(_framebuffer: GLuint, _attachment: GLenum, _renderbuffertarget: GLenum, _renderbuffer: GLuint) void { - return (function_pointers.glNamedFramebufferRenderbuffer orelse @panic("glNamedFramebufferRenderbuffer was not bound."))(_framebuffer, _attachment, _renderbuffertarget, _renderbuffer); -} - -pub fn namedFramebufferParameteri(_framebuffer: GLuint, _pname: GLenum, _param: GLint) void { - return (function_pointers.glNamedFramebufferParameteri orelse @panic("glNamedFramebufferParameteri was not bound."))(_framebuffer, _pname, _param); -} - -pub fn namedFramebufferTexture(_framebuffer: GLuint, _attachment: GLenum, _texture: GLuint, _level: GLint) void { - return (function_pointers.glNamedFramebufferTexture orelse @panic("glNamedFramebufferTexture was not bound."))(_framebuffer, _attachment, _texture, _level); -} - -pub fn namedFramebufferTextureLayer(_framebuffer: GLuint, _attachment: GLenum, _texture: GLuint, _level: GLint, _layer: GLint) void { - return (function_pointers.glNamedFramebufferTextureLayer orelse @panic("glNamedFramebufferTextureLayer was not bound."))(_framebuffer, _attachment, _texture, _level, _layer); -} - -pub fn namedFramebufferDrawBuffer(_framebuffer: GLuint, _buf: GLenum) void { - return (function_pointers.glNamedFramebufferDrawBuffer orelse @panic("glNamedFramebufferDrawBuffer was not bound."))(_framebuffer, _buf); -} - -pub fn namedFramebufferDrawBuffers(_framebuffer: GLuint, _n: GLsizei, _bufs: [*c]const GLenum) void { - return (function_pointers.glNamedFramebufferDrawBuffers orelse @panic("glNamedFramebufferDrawBuffers was not bound."))(_framebuffer, _n, _bufs); -} - -pub fn namedFramebufferReadBuffer(_framebuffer: GLuint, _src: GLenum) void { - return (function_pointers.glNamedFramebufferReadBuffer orelse @panic("glNamedFramebufferReadBuffer was not bound."))(_framebuffer, _src); -} - -pub fn invalidateNamedFramebufferData(_framebuffer: GLuint, _numAttachments: GLsizei, _attachments: [*c]const GLenum) void { - return (function_pointers.glInvalidateNamedFramebufferData orelse @panic("glInvalidateNamedFramebufferData was not bound."))(_framebuffer, _numAttachments, _attachments); -} - -pub fn invalidateNamedFramebufferSubData(_framebuffer: GLuint, _numAttachments: GLsizei, _attachments: [*c]const GLenum, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glInvalidateNamedFramebufferSubData orelse @panic("glInvalidateNamedFramebufferSubData was not bound."))(_framebuffer, _numAttachments, _attachments, _x, _y, _width, _height); -} - -pub fn clearNamedFramebufferiv(_framebuffer: GLuint, _buffer: GLenum, _drawbuffer: GLint, _value: [*c]const GLint) void { - return (function_pointers.glClearNamedFramebufferiv orelse @panic("glClearNamedFramebufferiv was not bound."))(_framebuffer, _buffer, _drawbuffer, _value); -} - -pub fn clearNamedFramebufferuiv(_framebuffer: GLuint, _buffer: GLenum, _drawbuffer: GLint, _value: [*c]const GLuint) void { - return (function_pointers.glClearNamedFramebufferuiv orelse @panic("glClearNamedFramebufferuiv was not bound."))(_framebuffer, _buffer, _drawbuffer, _value); -} - -pub fn clearNamedFramebufferfv(_framebuffer: GLuint, _buffer: GLenum, _drawbuffer: GLint, _value: [*c]const GLfloat) void { - return (function_pointers.glClearNamedFramebufferfv orelse @panic("glClearNamedFramebufferfv was not bound."))(_framebuffer, _buffer, _drawbuffer, _value); -} - -pub fn clearNamedFramebufferfi(_framebuffer: GLuint, _buffer: GLenum, _drawbuffer: GLint, _depth: GLfloat, _stencil: GLint) void { - return (function_pointers.glClearNamedFramebufferfi orelse @panic("glClearNamedFramebufferfi was not bound."))(_framebuffer, _buffer, _drawbuffer, _depth, _stencil); -} - -pub fn blitNamedFramebuffer(_readFramebuffer: GLuint, _drawFramebuffer: GLuint, _srcX0: GLint, _srcY0: GLint, _srcX1: GLint, _srcY1: GLint, _dstX0: GLint, _dstY0: GLint, _dstX1: GLint, _dstY1: GLint, _mask: GLbitfield, _filter: GLenum) void { - return (function_pointers.glBlitNamedFramebuffer orelse @panic("glBlitNamedFramebuffer was not bound."))(_readFramebuffer, _drawFramebuffer, _srcX0, _srcY0, _srcX1, _srcY1, _dstX0, _dstY0, _dstX1, _dstY1, _mask, _filter); -} - -pub fn checkNamedFramebufferStatus(_framebuffer: GLuint, _target: GLenum) GLenum { - return (function_pointers.glCheckNamedFramebufferStatus orelse @panic("glCheckNamedFramebufferStatus was not bound."))(_framebuffer, _target); -} - -pub fn getNamedFramebufferParameteriv(_framebuffer: GLuint, _pname: GLenum, _param: [*c]GLint) void { - return (function_pointers.glGetNamedFramebufferParameteriv orelse @panic("glGetNamedFramebufferParameteriv was not bound."))(_framebuffer, _pname, _param); -} - -pub fn getNamedFramebufferAttachmentParameteriv(_framebuffer: GLuint, _attachment: GLenum, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetNamedFramebufferAttachmentParameteriv orelse @panic("glGetNamedFramebufferAttachmentParameteriv was not bound."))(_framebuffer, _attachment, _pname, _params); -} - -pub fn createRenderbuffers(_n: GLsizei, _renderbuffers: [*c]GLuint) void { - return (function_pointers.glCreateRenderbuffers orelse @panic("glCreateRenderbuffers was not bound."))(_n, _renderbuffers); -} - -pub fn namedRenderbufferStorage(_renderbuffer: GLuint, _internalformat: GLenum, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glNamedRenderbufferStorage orelse @panic("glNamedRenderbufferStorage was not bound."))(_renderbuffer, _internalformat, _width, _height); -} - -pub fn namedRenderbufferStorageMultisample(_renderbuffer: GLuint, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glNamedRenderbufferStorageMultisample orelse @panic("glNamedRenderbufferStorageMultisample was not bound."))(_renderbuffer, _samples, _internalformat, _width, _height); -} - -pub fn getNamedRenderbufferParameteriv(_renderbuffer: GLuint, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetNamedRenderbufferParameteriv orelse @panic("glGetNamedRenderbufferParameteriv was not bound."))(_renderbuffer, _pname, _params); -} - -pub fn createTextures(_target: GLenum, _n: GLsizei, _textures: [*c]GLuint) void { - return (function_pointers.glCreateTextures orelse @panic("glCreateTextures was not bound."))(_target, _n, _textures); -} - -pub fn textureBuffer(_texture: GLuint, _internalformat: GLenum, _buffer: GLuint) void { - return (function_pointers.glTextureBuffer orelse @panic("glTextureBuffer was not bound."))(_texture, _internalformat, _buffer); -} - -pub fn textureBufferRange(_texture: GLuint, _internalformat: GLenum, _buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr) void { - return (function_pointers.glTextureBufferRange orelse @panic("glTextureBufferRange was not bound."))(_texture, _internalformat, _buffer, _offset, _size); -} - -pub fn textureStorage1D(_texture: GLuint, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei) void { - return (function_pointers.glTextureStorage1D orelse @panic("glTextureStorage1D was not bound."))(_texture, _levels, _internalformat, _width); -} - -pub fn textureStorage2D(_texture: GLuint, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glTextureStorage2D orelse @panic("glTextureStorage2D was not bound."))(_texture, _levels, _internalformat, _width, _height); -} - -pub fn textureStorage3D(_texture: GLuint, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei) void { - return (function_pointers.glTextureStorage3D orelse @panic("glTextureStorage3D was not bound."))(_texture, _levels, _internalformat, _width, _height, _depth); -} - -pub fn textureStorage2DMultisample(_texture: GLuint, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _fixedsamplelocations: GLboolean) void { - return (function_pointers.glTextureStorage2DMultisample orelse @panic("glTextureStorage2DMultisample was not bound."))(_texture, _samples, _internalformat, _width, _height, _fixedsamplelocations); -} - -pub fn textureStorage3DMultisample(_texture: GLuint, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _fixedsamplelocations: GLboolean) void { - return (function_pointers.glTextureStorage3DMultisample orelse @panic("glTextureStorage3DMultisample was not bound."))(_texture, _samples, _internalformat, _width, _height, _depth, _fixedsamplelocations); -} - -pub fn textureSubImage1D(_texture: GLuint, _level: GLint, _xoffset: GLint, _width: GLsizei, _format: GLenum, _type: GLenum, _pixels: ?*const anyopaque) void { - return (function_pointers.glTextureSubImage1D orelse @panic("glTextureSubImage1D was not bound."))(_texture, _level, _xoffset, _width, _format, _type, _pixels); -} - -pub fn textureSubImage2D(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _width: GLsizei, _height: GLsizei, _format: GLenum, _type: GLenum, _pixels: ?*const anyopaque) void { - return (function_pointers.glTextureSubImage2D orelse @panic("glTextureSubImage2D was not bound."))(_texture, _level, _xoffset, _yoffset, _width, _height, _format, _type, _pixels); -} - -pub fn textureSubImage3D(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _type: GLenum, _pixels: ?*const anyopaque) void { - return (function_pointers.glTextureSubImage3D orelse @panic("glTextureSubImage3D was not bound."))(_texture, _level, _xoffset, _yoffset, _zoffset, _width, _height, _depth, _format, _type, _pixels); -} - -pub fn compressedTextureSubImage1D(_texture: GLuint, _level: GLint, _xoffset: GLint, _width: GLsizei, _format: GLenum, _imageSize: GLsizei, _data: ?*const anyopaque) void { - return (function_pointers.glCompressedTextureSubImage1D orelse @panic("glCompressedTextureSubImage1D was not bound."))(_texture, _level, _xoffset, _width, _format, _imageSize, _data); -} - -pub fn compressedTextureSubImage2D(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _width: GLsizei, _height: GLsizei, _format: GLenum, _imageSize: GLsizei, _data: ?*const anyopaque) void { - return (function_pointers.glCompressedTextureSubImage2D orelse @panic("glCompressedTextureSubImage2D was not bound."))(_texture, _level, _xoffset, _yoffset, _width, _height, _format, _imageSize, _data); -} - -pub fn compressedTextureSubImage3D(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _imageSize: GLsizei, _data: ?*const anyopaque) void { - return (function_pointers.glCompressedTextureSubImage3D orelse @panic("glCompressedTextureSubImage3D was not bound."))(_texture, _level, _xoffset, _yoffset, _zoffset, _width, _height, _depth, _format, _imageSize, _data); -} - -pub fn copyTextureSubImage1D(_texture: GLuint, _level: GLint, _xoffset: GLint, _x: GLint, _y: GLint, _width: GLsizei) void { - return (function_pointers.glCopyTextureSubImage1D orelse @panic("glCopyTextureSubImage1D was not bound."))(_texture, _level, _xoffset, _x, _y, _width); -} - -pub fn copyTextureSubImage2D(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glCopyTextureSubImage2D orelse @panic("glCopyTextureSubImage2D was not bound."))(_texture, _level, _xoffset, _yoffset, _x, _y, _width, _height); -} - -pub fn copyTextureSubImage3D(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void { - return (function_pointers.glCopyTextureSubImage3D orelse @panic("glCopyTextureSubImage3D was not bound."))(_texture, _level, _xoffset, _yoffset, _zoffset, _x, _y, _width, _height); -} - -pub fn textureParameterf(_texture: GLuint, _pname: GLenum, _param: GLfloat) void { - return (function_pointers.glTextureParameterf orelse @panic("glTextureParameterf was not bound."))(_texture, _pname, _param); -} - -pub fn textureParameterfv(_texture: GLuint, _pname: GLenum, _param: [*c]const GLfloat) void { - return (function_pointers.glTextureParameterfv orelse @panic("glTextureParameterfv was not bound."))(_texture, _pname, _param); -} - -pub fn textureParameteri(_texture: GLuint, _pname: GLenum, _param: GLint) void { - return (function_pointers.glTextureParameteri orelse @panic("glTextureParameteri was not bound."))(_texture, _pname, _param); -} - -pub fn textureParameterIiv(_texture: GLuint, _pname: GLenum, _params: [*c]const GLint) void { - return (function_pointers.glTextureParameterIiv orelse @panic("glTextureParameterIiv was not bound."))(_texture, _pname, _params); -} - -pub fn textureParameterIuiv(_texture: GLuint, _pname: GLenum, _params: [*c]const GLuint) void { - return (function_pointers.glTextureParameterIuiv orelse @panic("glTextureParameterIuiv was not bound."))(_texture, _pname, _params); -} - -pub fn textureParameteriv(_texture: GLuint, _pname: GLenum, _param: [*c]const GLint) void { - return (function_pointers.glTextureParameteriv orelse @panic("glTextureParameteriv was not bound."))(_texture, _pname, _param); -} - -pub fn generateTextureMipmap(_texture: GLuint) void { - return (function_pointers.glGenerateTextureMipmap orelse @panic("glGenerateTextureMipmap was not bound."))(_texture); -} - -pub fn bindTextureUnit(_unit: GLuint, _texture: GLuint) void { - return (function_pointers.glBindTextureUnit orelse @panic("glBindTextureUnit was not bound."))(_unit, _texture); -} - -pub fn getTextureImage(_texture: GLuint, _level: GLint, _format: GLenum, _type: GLenum, _bufSize: GLsizei, _pixels: ?*anyopaque) void { - return (function_pointers.glGetTextureImage orelse @panic("glGetTextureImage was not bound."))(_texture, _level, _format, _type, _bufSize, _pixels); -} - -pub fn getCompressedTextureImage(_texture: GLuint, _level: GLint, _bufSize: GLsizei, _pixels: ?*anyopaque) void { - return (function_pointers.glGetCompressedTextureImage orelse @panic("glGetCompressedTextureImage was not bound."))(_texture, _level, _bufSize, _pixels); -} - -pub fn getTextureLevelParameterfv(_texture: GLuint, _level: GLint, _pname: GLenum, _params: [*c]GLfloat) void { - return (function_pointers.glGetTextureLevelParameterfv orelse @panic("glGetTextureLevelParameterfv was not bound."))(_texture, _level, _pname, _params); -} - -pub fn getTextureLevelParameteriv(_texture: GLuint, _level: GLint, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetTextureLevelParameteriv orelse @panic("glGetTextureLevelParameteriv was not bound."))(_texture, _level, _pname, _params); -} - -pub fn getTextureParameterfv(_texture: GLuint, _pname: GLenum, _params: [*c]GLfloat) void { - return (function_pointers.glGetTextureParameterfv orelse @panic("glGetTextureParameterfv was not bound."))(_texture, _pname, _params); -} - -pub fn getTextureParameterIiv(_texture: GLuint, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetTextureParameterIiv orelse @panic("glGetTextureParameterIiv was not bound."))(_texture, _pname, _params); -} - -pub fn getTextureParameterIuiv(_texture: GLuint, _pname: GLenum, _params: [*c]GLuint) void { - return (function_pointers.glGetTextureParameterIuiv orelse @panic("glGetTextureParameterIuiv was not bound."))(_texture, _pname, _params); -} - -pub fn getTextureParameteriv(_texture: GLuint, _pname: GLenum, _params: [*c]GLint) void { - return (function_pointers.glGetTextureParameteriv orelse @panic("glGetTextureParameteriv was not bound."))(_texture, _pname, _params); -} - -pub fn createVertexArrays(_n: GLsizei, _arrays: [*c]GLuint) void { - return (function_pointers.glCreateVertexArrays orelse @panic("glCreateVertexArrays was not bound."))(_n, _arrays); -} - -pub fn disableVertexArrayAttrib(_vaobj: GLuint, _index: GLuint) void { - return (function_pointers.glDisableVertexArrayAttrib orelse @panic("glDisableVertexArrayAttrib was not bound."))(_vaobj, _index); -} - -pub fn enableVertexArrayAttrib(_vaobj: GLuint, _index: GLuint) void { - return (function_pointers.glEnableVertexArrayAttrib orelse @panic("glEnableVertexArrayAttrib was not bound."))(_vaobj, _index); -} - -pub fn vertexArrayElementBuffer(_vaobj: GLuint, _buffer: GLuint) void { - return (function_pointers.glVertexArrayElementBuffer orelse @panic("glVertexArrayElementBuffer was not bound."))(_vaobj, _buffer); -} - -pub fn vertexArrayVertexBuffer(_vaobj: GLuint, _bindingindex: GLuint, _buffer: GLuint, _offset: GLintptr, _stride: GLsizei) void { - return (function_pointers.glVertexArrayVertexBuffer orelse @panic("glVertexArrayVertexBuffer was not bound."))(_vaobj, _bindingindex, _buffer, _offset, _stride); -} - -pub fn vertexArrayVertexBuffers(_vaobj: GLuint, _first: GLuint, _count: GLsizei, _buffers: [*c]const GLuint, _offsets: [*c]const GLintptr, _strides: [*c]const GLsizei) void { - return (function_pointers.glVertexArrayVertexBuffers orelse @panic("glVertexArrayVertexBuffers was not bound."))(_vaobj, _first, _count, _buffers, _offsets, _strides); -} - -pub fn vertexArrayAttribBinding(_vaobj: GLuint, _attribindex: GLuint, _bindingindex: GLuint) void { - return (function_pointers.glVertexArrayAttribBinding orelse @panic("glVertexArrayAttribBinding was not bound."))(_vaobj, _attribindex, _bindingindex); -} - -pub fn vertexArrayAttribFormat(_vaobj: GLuint, _attribindex: GLuint, _size: GLint, _type: GLenum, _normalized: GLboolean, _relativeoffset: GLuint) void { - return (function_pointers.glVertexArrayAttribFormat orelse @panic("glVertexArrayAttribFormat was not bound."))(_vaobj, _attribindex, _size, _type, _normalized, _relativeoffset); -} - -pub fn vertexArrayAttribIFormat(_vaobj: GLuint, _attribindex: GLuint, _size: GLint, _type: GLenum, _relativeoffset: GLuint) void { - return (function_pointers.glVertexArrayAttribIFormat orelse @panic("glVertexArrayAttribIFormat was not bound."))(_vaobj, _attribindex, _size, _type, _relativeoffset); -} - -pub fn vertexArrayAttribLFormat(_vaobj: GLuint, _attribindex: GLuint, _size: GLint, _type: GLenum, _relativeoffset: GLuint) void { - return (function_pointers.glVertexArrayAttribLFormat orelse @panic("glVertexArrayAttribLFormat was not bound."))(_vaobj, _attribindex, _size, _type, _relativeoffset); -} - -pub fn vertexArrayBindingDivisor(_vaobj: GLuint, _bindingindex: GLuint, _divisor: GLuint) void { - return (function_pointers.glVertexArrayBindingDivisor orelse @panic("glVertexArrayBindingDivisor was not bound."))(_vaobj, _bindingindex, _divisor); -} - -pub fn getVertexArrayiv(_vaobj: GLuint, _pname: GLenum, _param: [*c]GLint) void { - return (function_pointers.glGetVertexArrayiv orelse @panic("glGetVertexArrayiv was not bound."))(_vaobj, _pname, _param); -} - -pub fn getVertexArrayIndexediv(_vaobj: GLuint, _index: GLuint, _pname: GLenum, _param: [*c]GLint) void { - return (function_pointers.glGetVertexArrayIndexediv orelse @panic("glGetVertexArrayIndexediv was not bound."))(_vaobj, _index, _pname, _param); -} - -pub fn getVertexArrayIndexed64iv(_vaobj: GLuint, _index: GLuint, _pname: GLenum, _param: [*c]GLint64) void { - return (function_pointers.glGetVertexArrayIndexed64iv orelse @panic("glGetVertexArrayIndexed64iv was not bound."))(_vaobj, _index, _pname, _param); -} - -pub fn createSamplers(_n: GLsizei, _samplers: [*c]GLuint) void { - return (function_pointers.glCreateSamplers orelse @panic("glCreateSamplers was not bound."))(_n, _samplers); -} - -pub fn createProgramPipelines(_n: GLsizei, _pipelines: [*c]GLuint) void { - return (function_pointers.glCreateProgramPipelines orelse @panic("glCreateProgramPipelines was not bound."))(_n, _pipelines); -} - -pub fn createQueries(_target: GLenum, _n: GLsizei, _ids: [*c]GLuint) void { - return (function_pointers.glCreateQueries orelse @panic("glCreateQueries was not bound."))(_target, _n, _ids); -} - -pub fn getQueryBufferObjecti64v(_id: GLuint, _buffer: GLuint, _pname: GLenum, _offset: GLintptr) void { - return (function_pointers.glGetQueryBufferObjecti64v orelse @panic("glGetQueryBufferObjecti64v was not bound."))(_id, _buffer, _pname, _offset); -} - -pub fn getQueryBufferObjectiv(_id: GLuint, _buffer: GLuint, _pname: GLenum, _offset: GLintptr) void { - return (function_pointers.glGetQueryBufferObjectiv orelse @panic("glGetQueryBufferObjectiv was not bound."))(_id, _buffer, _pname, _offset); -} - -pub fn getQueryBufferObjectui64v(_id: GLuint, _buffer: GLuint, _pname: GLenum, _offset: GLintptr) void { - return (function_pointers.glGetQueryBufferObjectui64v orelse @panic("glGetQueryBufferObjectui64v was not bound."))(_id, _buffer, _pname, _offset); -} - -pub fn getQueryBufferObjectuiv(_id: GLuint, _buffer: GLuint, _pname: GLenum, _offset: GLintptr) void { - return (function_pointers.glGetQueryBufferObjectuiv orelse @panic("glGetQueryBufferObjectuiv was not bound."))(_id, _buffer, _pname, _offset); -} - -pub fn memoryBarrierByRegion(_barriers: GLbitfield) void { - return (function_pointers.glMemoryBarrierByRegion orelse @panic("glMemoryBarrierByRegion was not bound."))(_barriers); -} - -pub fn getTextureSubImage(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _type: GLenum, _bufSize: GLsizei, _pixels: ?*anyopaque) void { - return (function_pointers.glGetTextureSubImage orelse @panic("glGetTextureSubImage was not bound."))(_texture, _level, _xoffset, _yoffset, _zoffset, _width, _height, _depth, _format, _type, _bufSize, _pixels); -} - -pub fn getCompressedTextureSubImage(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _bufSize: GLsizei, _pixels: ?*anyopaque) void { - return (function_pointers.glGetCompressedTextureSubImage orelse @panic("glGetCompressedTextureSubImage was not bound."))(_texture, _level, _xoffset, _yoffset, _zoffset, _width, _height, _depth, _bufSize, _pixels); -} - -pub fn getGraphicsResetStatus() GLenum { - return (function_pointers.glGetGraphicsResetStatus orelse @panic("glGetGraphicsResetStatus was not bound."))(); -} - -pub fn getnCompressedTexImage(_target: GLenum, _lod: GLint, _bufSize: GLsizei, _pixels: ?*anyopaque) void { - return (function_pointers.glGetnCompressedTexImage orelse @panic("glGetnCompressedTexImage was not bound."))(_target, _lod, _bufSize, _pixels); -} - -pub fn getnTexImage(_target: GLenum, _level: GLint, _format: GLenum, _type: GLenum, _bufSize: GLsizei, _pixels: ?*anyopaque) void { - return (function_pointers.glGetnTexImage orelse @panic("glGetnTexImage was not bound."))(_target, _level, _format, _type, _bufSize, _pixels); -} - -pub fn getnUniformdv(_program: GLuint, _location: GLint, _bufSize: GLsizei, _params: [*c]GLdouble) void { - return (function_pointers.glGetnUniformdv orelse @panic("glGetnUniformdv was not bound."))(_program, _location, _bufSize, _params); -} - -pub fn getnUniformfv(_program: GLuint, _location: GLint, _bufSize: GLsizei, _params: [*c]GLfloat) void { - return (function_pointers.glGetnUniformfv orelse @panic("glGetnUniformfv was not bound."))(_program, _location, _bufSize, _params); -} - -pub fn getnUniformiv(_program: GLuint, _location: GLint, _bufSize: GLsizei, _params: [*c]GLint) void { - return (function_pointers.glGetnUniformiv orelse @panic("glGetnUniformiv was not bound."))(_program, _location, _bufSize, _params); -} - -pub fn getnUniformuiv(_program: GLuint, _location: GLint, _bufSize: GLsizei, _params: [*c]GLuint) void { - return (function_pointers.glGetnUniformuiv orelse @panic("glGetnUniformuiv was not bound."))(_program, _location, _bufSize, _params); -} - -pub fn readnPixels(_x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei, _format: GLenum, _type: GLenum, _bufSize: GLsizei, _data: ?*anyopaque) void { - return (function_pointers.glReadnPixels orelse @panic("glReadnPixels was not bound."))(_x, _y, _width, _height, _format, _type, _bufSize, _data); -} - -pub fn textureBarrier() void { - return (function_pointers.glTextureBarrier orelse @panic("glTextureBarrier was not bound."))(); -} // Extensions: // Loader API: pub fn load(load_ctx: anytype, get_proc_address: fn(@TypeOf(load_ctx), [:0]const u8) ?*const anyopaque) !void { var success = true; - if(get_proc_address(load_ctx, "glTexStorage2D")) |proc| { - function_pointers.glTexStorage2D = @ptrCast(@TypeOf(function_pointers.glTexStorage2D), proc); - } else { - log.err("entry point glTexStorage2D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTexStorage1D")) |proc| { - function_pointers.glTexStorage1D = @ptrCast(@TypeOf(function_pointers.glTexStorage1D), proc); - } else { - log.err("entry point glTexStorage1D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawTransformFeedbackStreamInstanced")) |proc| { - function_pointers.glDrawTransformFeedbackStreamInstanced = @ptrCast(@TypeOf(function_pointers.glDrawTransformFeedbackStreamInstanced), proc); - } else { - log.err("entry point glDrawTransformFeedbackStreamInstanced not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawTransformFeedbackInstanced")) |proc| { - function_pointers.glDrawTransformFeedbackInstanced = @ptrCast(@TypeOf(function_pointers.glDrawTransformFeedbackInstanced), proc); - } else { - log.err("entry point glDrawTransformFeedbackInstanced not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTexStorage3D")) |proc| { - function_pointers.glTexStorage3D = @ptrCast(@TypeOf(function_pointers.glTexStorage3D), proc); - } else { - log.err("entry point glTexStorage3D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glMemoryBarrier")) |proc| { - function_pointers.glMemoryBarrier = @ptrCast(@TypeOf(function_pointers.glMemoryBarrier), proc); - } else { - log.err("entry point glMemoryBarrier not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindImageTexture")) |proc| { - function_pointers.glBindImageTexture = @ptrCast(@TypeOf(function_pointers.glBindImageTexture), proc); - } else { - log.err("entry point glBindImageTexture not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetActiveAtomicCounterBufferiv")) |proc| { - function_pointers.glGetActiveAtomicCounterBufferiv = @ptrCast(@TypeOf(function_pointers.glGetActiveAtomicCounterBufferiv), proc); - } else { - log.err("entry point glGetActiveAtomicCounterBufferiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetInternalformativ")) |proc| { - function_pointers.glGetInternalformativ = @ptrCast(@TypeOf(function_pointers.glGetInternalformativ), proc); - } else { - log.err("entry point glGetInternalformativ not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawElementsInstancedBaseVertexBaseInstance")) |proc| { - function_pointers.glDrawElementsInstancedBaseVertexBaseInstance = @ptrCast(@TypeOf(function_pointers.glDrawElementsInstancedBaseVertexBaseInstance), proc); - } else { - log.err("entry point glDrawElementsInstancedBaseVertexBaseInstance not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawElementsInstancedBaseInstance")) |proc| { - function_pointers.glDrawElementsInstancedBaseInstance = @ptrCast(@TypeOf(function_pointers.glDrawElementsInstancedBaseInstance), proc); - } else { - log.err("entry point glDrawElementsInstancedBaseInstance not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawArraysInstancedBaseInstance")) |proc| { - function_pointers.glDrawArraysInstancedBaseInstance = @ptrCast(@TypeOf(function_pointers.glDrawArraysInstancedBaseInstance), proc); - } else { - log.err("entry point glDrawArraysInstancedBaseInstance not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetDoublei_v")) |proc| { - function_pointers.glGetDoublei_v = @ptrCast(@TypeOf(function_pointers.glGetDoublei_v), proc); - } else { - log.err("entry point glGetDoublei_v not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetFloati_v")) |proc| { - function_pointers.glGetFloati_v = @ptrCast(@TypeOf(function_pointers.glGetFloati_v), proc); - } else { - log.err("entry point glGetFloati_v not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDepthRangeIndexed")) |proc| { - function_pointers.glDepthRangeIndexed = @ptrCast(@TypeOf(function_pointers.glDepthRangeIndexed), proc); - } else { - log.err("entry point glDepthRangeIndexed not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDepthRangeArrayv")) |proc| { - function_pointers.glDepthRangeArrayv = @ptrCast(@TypeOf(function_pointers.glDepthRangeArrayv), proc); - } else { - log.err("entry point glDepthRangeArrayv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glScissorIndexedv")) |proc| { - function_pointers.glScissorIndexedv = @ptrCast(@TypeOf(function_pointers.glScissorIndexedv), proc); - } else { - log.err("entry point glScissorIndexedv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glScissorIndexed")) |proc| { - function_pointers.glScissorIndexed = @ptrCast(@TypeOf(function_pointers.glScissorIndexed), proc); - } else { - log.err("entry point glScissorIndexed not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glScissorArrayv")) |proc| { - function_pointers.glScissorArrayv = @ptrCast(@TypeOf(function_pointers.glScissorArrayv), proc); - } else { - log.err("entry point glScissorArrayv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glViewportIndexedfv")) |proc| { - function_pointers.glViewportIndexedfv = @ptrCast(@TypeOf(function_pointers.glViewportIndexedfv), proc); - } else { - log.err("entry point glViewportIndexedfv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glViewportIndexedf")) |proc| { - function_pointers.glViewportIndexedf = @ptrCast(@TypeOf(function_pointers.glViewportIndexedf), proc); - } else { - log.err("entry point glViewportIndexedf not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glViewportArrayv")) |proc| { - function_pointers.glViewportArrayv = @ptrCast(@TypeOf(function_pointers.glViewportArrayv), proc); - } else { - log.err("entry point glViewportArrayv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetVertexAttribLdv")) |proc| { - function_pointers.glGetVertexAttribLdv = @ptrCast(@TypeOf(function_pointers.glGetVertexAttribLdv), proc); - } else { - log.err("entry point glGetVertexAttribLdv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribLPointer")) |proc| { - function_pointers.glVertexAttribLPointer = @ptrCast(@TypeOf(function_pointers.glVertexAttribLPointer), proc); - } else { - log.err("entry point glVertexAttribLPointer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribL4dv")) |proc| { - function_pointers.glVertexAttribL4dv = @ptrCast(@TypeOf(function_pointers.glVertexAttribL4dv), proc); - } else { - log.err("entry point glVertexAttribL4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribL3dv")) |proc| { - function_pointers.glVertexAttribL3dv = @ptrCast(@TypeOf(function_pointers.glVertexAttribL3dv), proc); - } else { - log.err("entry point glVertexAttribL3dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribL2dv")) |proc| { - function_pointers.glVertexAttribL2dv = @ptrCast(@TypeOf(function_pointers.glVertexAttribL2dv), proc); - } else { - log.err("entry point glVertexAttribL2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribL1dv")) |proc| { - function_pointers.glVertexAttribL1dv = @ptrCast(@TypeOf(function_pointers.glVertexAttribL1dv), proc); - } else { - log.err("entry point glVertexAttribL1dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribL4d")) |proc| { - function_pointers.glVertexAttribL4d = @ptrCast(@TypeOf(function_pointers.glVertexAttribL4d), proc); - } else { - log.err("entry point glVertexAttribL4d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribL3d")) |proc| { - function_pointers.glVertexAttribL3d = @ptrCast(@TypeOf(function_pointers.glVertexAttribL3d), proc); - } else { - log.err("entry point glVertexAttribL3d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribL2d")) |proc| { - function_pointers.glVertexAttribL2d = @ptrCast(@TypeOf(function_pointers.glVertexAttribL2d), proc); - } else { - log.err("entry point glVertexAttribL2d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribL1d")) |proc| { - function_pointers.glVertexAttribL1d = @ptrCast(@TypeOf(function_pointers.glVertexAttribL1d), proc); - } else { - log.err("entry point glVertexAttribL1d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glValidateProgramPipeline")) |proc| { - function_pointers.glValidateProgramPipeline = @ptrCast(@TypeOf(function_pointers.glValidateProgramPipeline), proc); - } else { - log.err("entry point glValidateProgramPipeline not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix4x3dv")) |proc| { - function_pointers.glProgramUniformMatrix4x3dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix4x3dv), proc); - } else { - log.err("entry point glProgramUniformMatrix4x3dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix3x4dv")) |proc| { - function_pointers.glProgramUniformMatrix3x4dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix3x4dv), proc); - } else { - log.err("entry point glProgramUniformMatrix3x4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix4x2dv")) |proc| { - function_pointers.glProgramUniformMatrix4x2dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix4x2dv), proc); - } else { - log.err("entry point glProgramUniformMatrix4x2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix2x4dv")) |proc| { - function_pointers.glProgramUniformMatrix2x4dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix2x4dv), proc); - } else { - log.err("entry point glProgramUniformMatrix2x4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix3x2dv")) |proc| { - function_pointers.glProgramUniformMatrix3x2dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix3x2dv), proc); - } else { - log.err("entry point glProgramUniformMatrix3x2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix2x3dv")) |proc| { - function_pointers.glProgramUniformMatrix2x3dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix2x3dv), proc); - } else { - log.err("entry point glProgramUniformMatrix2x3dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix4x3fv")) |proc| { - function_pointers.glProgramUniformMatrix4x3fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix4x3fv), proc); - } else { - log.err("entry point glProgramUniformMatrix4x3fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix3x4fv")) |proc| { - function_pointers.glProgramUniformMatrix3x4fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix3x4fv), proc); - } else { - log.err("entry point glProgramUniformMatrix3x4fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix4x2fv")) |proc| { - function_pointers.glProgramUniformMatrix4x2fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix4x2fv), proc); - } else { - log.err("entry point glProgramUniformMatrix4x2fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix2x4fv")) |proc| { - function_pointers.glProgramUniformMatrix2x4fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix2x4fv), proc); - } else { - log.err("entry point glProgramUniformMatrix2x4fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix3x2fv")) |proc| { - function_pointers.glProgramUniformMatrix3x2fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix3x2fv), proc); - } else { - log.err("entry point glProgramUniformMatrix3x2fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix2x3fv")) |proc| { - function_pointers.glProgramUniformMatrix2x3fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix2x3fv), proc); - } else { - log.err("entry point glProgramUniformMatrix2x3fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix4dv")) |proc| { - function_pointers.glProgramUniformMatrix4dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix4dv), proc); - } else { - log.err("entry point glProgramUniformMatrix4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix3dv")) |proc| { - function_pointers.glProgramUniformMatrix3dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix3dv), proc); - } else { - log.err("entry point glProgramUniformMatrix3dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix2dv")) |proc| { - function_pointers.glProgramUniformMatrix2dv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix2dv), proc); - } else { - log.err("entry point glProgramUniformMatrix2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix4fv")) |proc| { - function_pointers.glProgramUniformMatrix4fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix4fv), proc); - } else { - log.err("entry point glProgramUniformMatrix4fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix3fv")) |proc| { - function_pointers.glProgramUniformMatrix3fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix3fv), proc); - } else { - log.err("entry point glProgramUniformMatrix3fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniformMatrix2fv")) |proc| { - function_pointers.glProgramUniformMatrix2fv = @ptrCast(@TypeOf(function_pointers.glProgramUniformMatrix2fv), proc); - } else { - log.err("entry point glProgramUniformMatrix2fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform4uiv")) |proc| { - function_pointers.glProgramUniform4uiv = @ptrCast(@TypeOf(function_pointers.glProgramUniform4uiv), proc); - } else { - log.err("entry point glProgramUniform4uiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform4ui")) |proc| { - function_pointers.glProgramUniform4ui = @ptrCast(@TypeOf(function_pointers.glProgramUniform4ui), proc); - } else { - log.err("entry point glProgramUniform4ui not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform4dv")) |proc| { - function_pointers.glProgramUniform4dv = @ptrCast(@TypeOf(function_pointers.glProgramUniform4dv), proc); - } else { - log.err("entry point glProgramUniform4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform4d")) |proc| { - function_pointers.glProgramUniform4d = @ptrCast(@TypeOf(function_pointers.glProgramUniform4d), proc); - } else { - log.err("entry point glProgramUniform4d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform4fv")) |proc| { - function_pointers.glProgramUniform4fv = @ptrCast(@TypeOf(function_pointers.glProgramUniform4fv), proc); - } else { - log.err("entry point glProgramUniform4fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform4f")) |proc| { - function_pointers.glProgramUniform4f = @ptrCast(@TypeOf(function_pointers.glProgramUniform4f), proc); - } else { - log.err("entry point glProgramUniform4f not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform4iv")) |proc| { - function_pointers.glProgramUniform4iv = @ptrCast(@TypeOf(function_pointers.glProgramUniform4iv), proc); - } else { - log.err("entry point glProgramUniform4iv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform4i")) |proc| { - function_pointers.glProgramUniform4i = @ptrCast(@TypeOf(function_pointers.glProgramUniform4i), proc); - } else { - log.err("entry point glProgramUniform4i not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform3uiv")) |proc| { - function_pointers.glProgramUniform3uiv = @ptrCast(@TypeOf(function_pointers.glProgramUniform3uiv), proc); - } else { - log.err("entry point glProgramUniform3uiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform3ui")) |proc| { - function_pointers.glProgramUniform3ui = @ptrCast(@TypeOf(function_pointers.glProgramUniform3ui), proc); - } else { - log.err("entry point glProgramUniform3ui not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform3dv")) |proc| { - function_pointers.glProgramUniform3dv = @ptrCast(@TypeOf(function_pointers.glProgramUniform3dv), proc); - } else { - log.err("entry point glProgramUniform3dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform3d")) |proc| { - function_pointers.glProgramUniform3d = @ptrCast(@TypeOf(function_pointers.glProgramUniform3d), proc); - } else { - log.err("entry point glProgramUniform3d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform3fv")) |proc| { - function_pointers.glProgramUniform3fv = @ptrCast(@TypeOf(function_pointers.glProgramUniform3fv), proc); - } else { - log.err("entry point glProgramUniform3fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform3f")) |proc| { - function_pointers.glProgramUniform3f = @ptrCast(@TypeOf(function_pointers.glProgramUniform3f), proc); - } else { - log.err("entry point glProgramUniform3f not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform3iv")) |proc| { - function_pointers.glProgramUniform3iv = @ptrCast(@TypeOf(function_pointers.glProgramUniform3iv), proc); - } else { - log.err("entry point glProgramUniform3iv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform3i")) |proc| { - function_pointers.glProgramUniform3i = @ptrCast(@TypeOf(function_pointers.glProgramUniform3i), proc); - } else { - log.err("entry point glProgramUniform3i not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUseProgramStages")) |proc| { - function_pointers.glUseProgramStages = @ptrCast(@TypeOf(function_pointers.glUseProgramStages), proc); - } else { - log.err("entry point glUseProgramStages not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramParameteri")) |proc| { - function_pointers.glProgramParameteri = @ptrCast(@TypeOf(function_pointers.glProgramParameteri), proc); - } else { - log.err("entry point glProgramParameteri not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetShaderPrecisionFormat")) |proc| { - function_pointers.glGetShaderPrecisionFormat = @ptrCast(@TypeOf(function_pointers.glGetShaderPrecisionFormat), proc); - } else { - log.err("entry point glGetShaderPrecisionFormat not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glShaderBinary")) |proc| { - function_pointers.glShaderBinary = @ptrCast(@TypeOf(function_pointers.glShaderBinary), proc); - } else { - log.err("entry point glShaderBinary not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glReleaseShaderCompiler")) |proc| { - function_pointers.glReleaseShaderCompiler = @ptrCast(@TypeOf(function_pointers.glReleaseShaderCompiler), proc); - } else { - log.err("entry point glReleaseShaderCompiler not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetQueryIndexediv")) |proc| { - function_pointers.glGetQueryIndexediv = @ptrCast(@TypeOf(function_pointers.glGetQueryIndexediv), proc); - } else { - log.err("entry point glGetQueryIndexediv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glEndQueryIndexed")) |proc| { - function_pointers.glEndQueryIndexed = @ptrCast(@TypeOf(function_pointers.glEndQueryIndexed), proc); - } else { - log.err("entry point glEndQueryIndexed not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBeginQueryIndexed")) |proc| { - function_pointers.glBeginQueryIndexed = @ptrCast(@TypeOf(function_pointers.glBeginQueryIndexed), proc); - } else { - log.err("entry point glBeginQueryIndexed not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawTransformFeedbackStream")) |proc| { - function_pointers.glDrawTransformFeedbackStream = @ptrCast(@TypeOf(function_pointers.glDrawTransformFeedbackStream), proc); - } else { - log.err("entry point glDrawTransformFeedbackStream not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawTransformFeedback")) |proc| { - function_pointers.glDrawTransformFeedback = @ptrCast(@TypeOf(function_pointers.glDrawTransformFeedback), proc); - } else { - log.err("entry point glDrawTransformFeedback not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glResumeTransformFeedback")) |proc| { - function_pointers.glResumeTransformFeedback = @ptrCast(@TypeOf(function_pointers.glResumeTransformFeedback), proc); - } else { - log.err("entry point glResumeTransformFeedback not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glPauseTransformFeedback")) |proc| { - function_pointers.glPauseTransformFeedback = @ptrCast(@TypeOf(function_pointers.glPauseTransformFeedback), proc); - } else { - log.err("entry point glPauseTransformFeedback not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramStageiv")) |proc| { - function_pointers.glGetProgramStageiv = @ptrCast(@TypeOf(function_pointers.glGetProgramStageiv), proc); - } else { - log.err("entry point glGetProgramStageiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetUniformSubroutineuiv")) |proc| { - function_pointers.glGetUniformSubroutineuiv = @ptrCast(@TypeOf(function_pointers.glGetUniformSubroutineuiv), proc); - } else { - log.err("entry point glGetUniformSubroutineuiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformSubroutinesuiv")) |proc| { - function_pointers.glUniformSubroutinesuiv = @ptrCast(@TypeOf(function_pointers.glUniformSubroutinesuiv), proc); - } else { - log.err("entry point glUniformSubroutinesuiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetActiveSubroutineName")) |proc| { - function_pointers.glGetActiveSubroutineName = @ptrCast(@TypeOf(function_pointers.glGetActiveSubroutineName), proc); - } else { - log.err("entry point glGetActiveSubroutineName not found!", .{}); - success = false; - } if(get_proc_address(load_ctx, "glCullFace")) |proc| { function_pointers.glCullFace = @ptrCast(@TypeOf(function_pointers.glCullFace), proc); } else { @@ -4808,360 +2547,6 @@ pub fn load(load_ctx: anytype, get_proc_address: fn(@TypeOf(load_ctx), [:0]const log.err("entry point glViewport not found!", .{}); success = false; } - if(get_proc_address(load_ctx, "glTexStorage2DMultisample")) |proc| { - function_pointers.glTexStorage2DMultisample = @ptrCast(@TypeOf(function_pointers.glTexStorage2DMultisample), proc); - } else { - log.err("entry point glTexStorage2DMultisample not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTexBufferRange")) |proc| { - function_pointers.glTexBufferRange = @ptrCast(@TypeOf(function_pointers.glTexBufferRange), proc); - } else { - log.err("entry point glTexBufferRange not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glShaderStorageBlockBinding")) |proc| { - function_pointers.glShaderStorageBlockBinding = @ptrCast(@TypeOf(function_pointers.glShaderStorageBlockBinding), proc); - } else { - log.err("entry point glShaderStorageBlockBinding not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramResourceLocationIndex")) |proc| { - function_pointers.glGetProgramResourceLocationIndex = @ptrCast(@TypeOf(function_pointers.glGetProgramResourceLocationIndex), proc); - } else { - log.err("entry point glGetProgramResourceLocationIndex not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramResourceLocation")) |proc| { - function_pointers.glGetProgramResourceLocation = @ptrCast(@TypeOf(function_pointers.glGetProgramResourceLocation), proc); - } else { - log.err("entry point glGetProgramResourceLocation not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramResourceiv")) |proc| { - function_pointers.glGetProgramResourceiv = @ptrCast(@TypeOf(function_pointers.glGetProgramResourceiv), proc); - } else { - log.err("entry point glGetProgramResourceiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramResourceName")) |proc| { - function_pointers.glGetProgramResourceName = @ptrCast(@TypeOf(function_pointers.glGetProgramResourceName), proc); - } else { - log.err("entry point glGetProgramResourceName not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramResourceIndex")) |proc| { - function_pointers.glGetProgramResourceIndex = @ptrCast(@TypeOf(function_pointers.glGetProgramResourceIndex), proc); - } else { - log.err("entry point glGetProgramResourceIndex not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramInterfaceiv")) |proc| { - function_pointers.glGetProgramInterfaceiv = @ptrCast(@TypeOf(function_pointers.glGetProgramInterfaceiv), proc); - } else { - log.err("entry point glGetProgramInterfaceiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glMultiDrawElementsIndirect")) |proc| { - function_pointers.glMultiDrawElementsIndirect = @ptrCast(@TypeOf(function_pointers.glMultiDrawElementsIndirect), proc); - } else { - log.err("entry point glMultiDrawElementsIndirect not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glMultiDrawArraysIndirect")) |proc| { - function_pointers.glMultiDrawArraysIndirect = @ptrCast(@TypeOf(function_pointers.glMultiDrawArraysIndirect), proc); - } else { - log.err("entry point glMultiDrawArraysIndirect not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glInvalidateSubFramebuffer")) |proc| { - function_pointers.glInvalidateSubFramebuffer = @ptrCast(@TypeOf(function_pointers.glInvalidateSubFramebuffer), proc); - } else { - log.err("entry point glInvalidateSubFramebuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glInvalidateFramebuffer")) |proc| { - function_pointers.glInvalidateFramebuffer = @ptrCast(@TypeOf(function_pointers.glInvalidateFramebuffer), proc); - } else { - log.err("entry point glInvalidateFramebuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glInvalidateBufferData")) |proc| { - function_pointers.glInvalidateBufferData = @ptrCast(@TypeOf(function_pointers.glInvalidateBufferData), proc); - } else { - log.err("entry point glInvalidateBufferData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glInvalidateBufferSubData")) |proc| { - function_pointers.glInvalidateBufferSubData = @ptrCast(@TypeOf(function_pointers.glInvalidateBufferSubData), proc); - } else { - log.err("entry point glInvalidateBufferSubData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glInvalidateTexImage")) |proc| { - function_pointers.glInvalidateTexImage = @ptrCast(@TypeOf(function_pointers.glInvalidateTexImage), proc); - } else { - log.err("entry point glInvalidateTexImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glInvalidateTexSubImage")) |proc| { - function_pointers.glInvalidateTexSubImage = @ptrCast(@TypeOf(function_pointers.glInvalidateTexSubImage), proc); - } else { - log.err("entry point glInvalidateTexSubImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetInternalformati64v")) |proc| { - function_pointers.glGetInternalformati64v = @ptrCast(@TypeOf(function_pointers.glGetInternalformati64v), proc); - } else { - log.err("entry point glGetInternalformati64v not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetFramebufferParameteriv")) |proc| { - function_pointers.glGetFramebufferParameteriv = @ptrCast(@TypeOf(function_pointers.glGetFramebufferParameteriv), proc); - } else { - log.err("entry point glGetFramebufferParameteriv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glFramebufferParameteri")) |proc| { - function_pointers.glFramebufferParameteri = @ptrCast(@TypeOf(function_pointers.glFramebufferParameteri), proc); - } else { - log.err("entry point glFramebufferParameteri not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCopyImageSubData")) |proc| { - function_pointers.glCopyImageSubData = @ptrCast(@TypeOf(function_pointers.glCopyImageSubData), proc); - } else { - log.err("entry point glCopyImageSubData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDispatchComputeIndirect")) |proc| { - function_pointers.glDispatchComputeIndirect = @ptrCast(@TypeOf(function_pointers.glDispatchComputeIndirect), proc); - } else { - log.err("entry point glDispatchComputeIndirect not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDispatchCompute")) |proc| { - function_pointers.glDispatchCompute = @ptrCast(@TypeOf(function_pointers.glDispatchCompute), proc); - } else { - log.err("entry point glDispatchCompute not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearBufferSubData")) |proc| { - function_pointers.glClearBufferSubData = @ptrCast(@TypeOf(function_pointers.glClearBufferSubData), proc); - } else { - log.err("entry point glClearBufferSubData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearBufferData")) |proc| { - function_pointers.glClearBufferData = @ptrCast(@TypeOf(function_pointers.glClearBufferData), proc); - } else { - log.err("entry point glClearBufferData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramPipelineInfoLog")) |proc| { - function_pointers.glGetProgramPipelineInfoLog = @ptrCast(@TypeOf(function_pointers.glGetProgramPipelineInfoLog), proc); - } else { - log.err("entry point glGetProgramPipelineInfoLog not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform2uiv")) |proc| { - function_pointers.glProgramUniform2uiv = @ptrCast(@TypeOf(function_pointers.glProgramUniform2uiv), proc); - } else { - log.err("entry point glProgramUniform2uiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform2ui")) |proc| { - function_pointers.glProgramUniform2ui = @ptrCast(@TypeOf(function_pointers.glProgramUniform2ui), proc); - } else { - log.err("entry point glProgramUniform2ui not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform2dv")) |proc| { - function_pointers.glProgramUniform2dv = @ptrCast(@TypeOf(function_pointers.glProgramUniform2dv), proc); - } else { - log.err("entry point glProgramUniform2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform2d")) |proc| { - function_pointers.glProgramUniform2d = @ptrCast(@TypeOf(function_pointers.glProgramUniform2d), proc); - } else { - log.err("entry point glProgramUniform2d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform2fv")) |proc| { - function_pointers.glProgramUniform2fv = @ptrCast(@TypeOf(function_pointers.glProgramUniform2fv), proc); - } else { - log.err("entry point glProgramUniform2fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform2f")) |proc| { - function_pointers.glProgramUniform2f = @ptrCast(@TypeOf(function_pointers.glProgramUniform2f), proc); - } else { - log.err("entry point glProgramUniform2f not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform2iv")) |proc| { - function_pointers.glProgramUniform2iv = @ptrCast(@TypeOf(function_pointers.glProgramUniform2iv), proc); - } else { - log.err("entry point glProgramUniform2iv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform2i")) |proc| { - function_pointers.glProgramUniform2i = @ptrCast(@TypeOf(function_pointers.glProgramUniform2i), proc); - } else { - log.err("entry point glProgramUniform2i not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform1uiv")) |proc| { - function_pointers.glProgramUniform1uiv = @ptrCast(@TypeOf(function_pointers.glProgramUniform1uiv), proc); - } else { - log.err("entry point glProgramUniform1uiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform1ui")) |proc| { - function_pointers.glProgramUniform1ui = @ptrCast(@TypeOf(function_pointers.glProgramUniform1ui), proc); - } else { - log.err("entry point glProgramUniform1ui not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform1dv")) |proc| { - function_pointers.glProgramUniform1dv = @ptrCast(@TypeOf(function_pointers.glProgramUniform1dv), proc); - } else { - log.err("entry point glProgramUniform1dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform1d")) |proc| { - function_pointers.glProgramUniform1d = @ptrCast(@TypeOf(function_pointers.glProgramUniform1d), proc); - } else { - log.err("entry point glProgramUniform1d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform1fv")) |proc| { - function_pointers.glProgramUniform1fv = @ptrCast(@TypeOf(function_pointers.glProgramUniform1fv), proc); - } else { - log.err("entry point glProgramUniform1fv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform1f")) |proc| { - function_pointers.glProgramUniform1f = @ptrCast(@TypeOf(function_pointers.glProgramUniform1f), proc); - } else { - log.err("entry point glProgramUniform1f not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform1iv")) |proc| { - function_pointers.glProgramUniform1iv = @ptrCast(@TypeOf(function_pointers.glProgramUniform1iv), proc); - } else { - log.err("entry point glProgramUniform1iv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramUniform1i")) |proc| { - function_pointers.glProgramUniform1i = @ptrCast(@TypeOf(function_pointers.glProgramUniform1i), proc); - } else { - log.err("entry point glProgramUniform1i not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramPipelineiv")) |proc| { - function_pointers.glGetProgramPipelineiv = @ptrCast(@TypeOf(function_pointers.glGetProgramPipelineiv), proc); - } else { - log.err("entry point glGetProgramPipelineiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glIsProgramPipeline")) |proc| { - function_pointers.glIsProgramPipeline = @ptrCast(@TypeOf(function_pointers.glIsProgramPipeline), proc); - } else { - log.err("entry point glIsProgramPipeline not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGenProgramPipelines")) |proc| { - function_pointers.glGenProgramPipelines = @ptrCast(@TypeOf(function_pointers.glGenProgramPipelines), proc); - } else { - log.err("entry point glGenProgramPipelines not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDeleteProgramPipelines")) |proc| { - function_pointers.glDeleteProgramPipelines = @ptrCast(@TypeOf(function_pointers.glDeleteProgramPipelines), proc); - } else { - log.err("entry point glDeleteProgramPipelines not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindProgramPipeline")) |proc| { - function_pointers.glBindProgramPipeline = @ptrCast(@TypeOf(function_pointers.glBindProgramPipeline), proc); - } else { - log.err("entry point glBindProgramPipeline not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateShaderProgramv")) |proc| { - function_pointers.glCreateShaderProgramv = @ptrCast(@TypeOf(function_pointers.glCreateShaderProgramv), proc); - } else { - log.err("entry point glCreateShaderProgramv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glActiveShaderProgram")) |proc| { - function_pointers.glActiveShaderProgram = @ptrCast(@TypeOf(function_pointers.glActiveShaderProgram), proc); - } else { - log.err("entry point glActiveShaderProgram not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glProgramBinary")) |proc| { - function_pointers.glProgramBinary = @ptrCast(@TypeOf(function_pointers.glProgramBinary), proc); - } else { - log.err("entry point glProgramBinary not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetProgramBinary")) |proc| { - function_pointers.glGetProgramBinary = @ptrCast(@TypeOf(function_pointers.glGetProgramBinary), proc); - } else { - log.err("entry point glGetProgramBinary not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearDepthf")) |proc| { - function_pointers.glClearDepthf = @ptrCast(@TypeOf(function_pointers.glClearDepthf), proc); - } else { - log.err("entry point glClearDepthf not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDepthRangef")) |proc| { - function_pointers.glDepthRangef = @ptrCast(@TypeOf(function_pointers.glDepthRangef), proc); - } else { - log.err("entry point glDepthRangef not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glIsTransformFeedback")) |proc| { - function_pointers.glIsTransformFeedback = @ptrCast(@TypeOf(function_pointers.glIsTransformFeedback), proc); - } else { - log.err("entry point glIsTransformFeedback not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGenTransformFeedbacks")) |proc| { - function_pointers.glGenTransformFeedbacks = @ptrCast(@TypeOf(function_pointers.glGenTransformFeedbacks), proc); - } else { - log.err("entry point glGenTransformFeedbacks not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDeleteTransformFeedbacks")) |proc| { - function_pointers.glDeleteTransformFeedbacks = @ptrCast(@TypeOf(function_pointers.glDeleteTransformFeedbacks), proc); - } else { - log.err("entry point glDeleteTransformFeedbacks not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindTransformFeedback")) |proc| { - function_pointers.glBindTransformFeedback = @ptrCast(@TypeOf(function_pointers.glBindTransformFeedback), proc); - } else { - log.err("entry point glBindTransformFeedback not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glPatchParameterfv")) |proc| { - function_pointers.glPatchParameterfv = @ptrCast(@TypeOf(function_pointers.glPatchParameterfv), proc); - } else { - log.err("entry point glPatchParameterfv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glPatchParameteri")) |proc| { - function_pointers.glPatchParameteri = @ptrCast(@TypeOf(function_pointers.glPatchParameteri), proc); - } else { - log.err("entry point glPatchParameteri not found!", .{}); - success = false; - } if(get_proc_address(load_ctx, "glDrawArrays")) |proc| { function_pointers.glDrawArrays = @ptrCast(@TypeOf(function_pointers.glDrawArrays), proc); } else { @@ -5240,84 +2625,6 @@ pub fn load(load_ctx: anytype, get_proc_address: fn(@TypeOf(load_ctx), [:0]const log.err("entry point glIsTexture not found!", .{}); success = false; } - if(get_proc_address(load_ctx, "glGetActiveSubroutineUniformName")) |proc| { - function_pointers.glGetActiveSubroutineUniformName = @ptrCast(@TypeOf(function_pointers.glGetActiveSubroutineUniformName), proc); - } else { - log.err("entry point glGetActiveSubroutineUniformName not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetActiveSubroutineUniformiv")) |proc| { - function_pointers.glGetActiveSubroutineUniformiv = @ptrCast(@TypeOf(function_pointers.glGetActiveSubroutineUniformiv), proc); - } else { - log.err("entry point glGetActiveSubroutineUniformiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetSubroutineIndex")) |proc| { - function_pointers.glGetSubroutineIndex = @ptrCast(@TypeOf(function_pointers.glGetSubroutineIndex), proc); - } else { - log.err("entry point glGetSubroutineIndex not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetSubroutineUniformLocation")) |proc| { - function_pointers.glGetSubroutineUniformLocation = @ptrCast(@TypeOf(function_pointers.glGetSubroutineUniformLocation), proc); - } else { - log.err("entry point glGetSubroutineUniformLocation not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetUniformdv")) |proc| { - function_pointers.glGetUniformdv = @ptrCast(@TypeOf(function_pointers.glGetUniformdv), proc); - } else { - log.err("entry point glGetUniformdv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformMatrix4x3dv")) |proc| { - function_pointers.glUniformMatrix4x3dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix4x3dv), proc); - } else { - log.err("entry point glUniformMatrix4x3dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformMatrix4x2dv")) |proc| { - function_pointers.glUniformMatrix4x2dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix4x2dv), proc); - } else { - log.err("entry point glUniformMatrix4x2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformMatrix3x4dv")) |proc| { - function_pointers.glUniformMatrix3x4dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix3x4dv), proc); - } else { - log.err("entry point glUniformMatrix3x4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformMatrix3x2dv")) |proc| { - function_pointers.glUniformMatrix3x2dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix3x2dv), proc); - } else { - log.err("entry point glUniformMatrix3x2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformMatrix2x4dv")) |proc| { - function_pointers.glUniformMatrix2x4dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix2x4dv), proc); - } else { - log.err("entry point glUniformMatrix2x4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformMatrix2x3dv")) |proc| { - function_pointers.glUniformMatrix2x3dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix2x3dv), proc); - } else { - log.err("entry point glUniformMatrix2x3dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformMatrix4dv")) |proc| { - function_pointers.glUniformMatrix4dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix4dv), proc); - } else { - log.err("entry point glUniformMatrix4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniformMatrix3dv")) |proc| { - function_pointers.glUniformMatrix3dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix3dv), proc); - } else { - log.err("entry point glUniformMatrix3dv not found!", .{}); - success = false; - } if(get_proc_address(load_ctx, "glDrawRangeElements")) |proc| { function_pointers.glDrawRangeElements = @ptrCast(@TypeOf(function_pointers.glDrawRangeElements), proc); } else { @@ -5342,102 +2649,6 @@ pub fn load(load_ctx: anytype, get_proc_address: fn(@TypeOf(load_ctx), [:0]const log.err("entry point glCopyTexSubImage3D not found!", .{}); success = false; } - if(get_proc_address(load_ctx, "glUniformMatrix2dv")) |proc| { - function_pointers.glUniformMatrix2dv = @ptrCast(@TypeOf(function_pointers.glUniformMatrix2dv), proc); - } else { - log.err("entry point glUniformMatrix2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniform4dv")) |proc| { - function_pointers.glUniform4dv = @ptrCast(@TypeOf(function_pointers.glUniform4dv), proc); - } else { - log.err("entry point glUniform4dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniform3dv")) |proc| { - function_pointers.glUniform3dv = @ptrCast(@TypeOf(function_pointers.glUniform3dv), proc); - } else { - log.err("entry point glUniform3dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniform2dv")) |proc| { - function_pointers.glUniform2dv = @ptrCast(@TypeOf(function_pointers.glUniform2dv), proc); - } else { - log.err("entry point glUniform2dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniform1dv")) |proc| { - function_pointers.glUniform1dv = @ptrCast(@TypeOf(function_pointers.glUniform1dv), proc); - } else { - log.err("entry point glUniform1dv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniform4d")) |proc| { - function_pointers.glUniform4d = @ptrCast(@TypeOf(function_pointers.glUniform4d), proc); - } else { - log.err("entry point glUniform4d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniform3d")) |proc| { - function_pointers.glUniform3d = @ptrCast(@TypeOf(function_pointers.glUniform3d), proc); - } else { - log.err("entry point glUniform3d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniform2d")) |proc| { - function_pointers.glUniform2d = @ptrCast(@TypeOf(function_pointers.glUniform2d), proc); - } else { - log.err("entry point glUniform2d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUniform1d")) |proc| { - function_pointers.glUniform1d = @ptrCast(@TypeOf(function_pointers.glUniform1d), proc); - } else { - log.err("entry point glUniform1d not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawElementsIndirect")) |proc| { - function_pointers.glDrawElementsIndirect = @ptrCast(@TypeOf(function_pointers.glDrawElementsIndirect), proc); - } else { - log.err("entry point glDrawElementsIndirect not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDrawArraysIndirect")) |proc| { - function_pointers.glDrawArraysIndirect = @ptrCast(@TypeOf(function_pointers.glDrawArraysIndirect), proc); - } else { - log.err("entry point glDrawArraysIndirect not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBlendFuncSeparatei")) |proc| { - function_pointers.glBlendFuncSeparatei = @ptrCast(@TypeOf(function_pointers.glBlendFuncSeparatei), proc); - } else { - log.err("entry point glBlendFuncSeparatei not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBlendFunci")) |proc| { - function_pointers.glBlendFunci = @ptrCast(@TypeOf(function_pointers.glBlendFunci), proc); - } else { - log.err("entry point glBlendFunci not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBlendEquationSeparatei")) |proc| { - function_pointers.glBlendEquationSeparatei = @ptrCast(@TypeOf(function_pointers.glBlendEquationSeparatei), proc); - } else { - log.err("entry point glBlendEquationSeparatei not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBlendEquationi")) |proc| { - function_pointers.glBlendEquationi = @ptrCast(@TypeOf(function_pointers.glBlendEquationi), proc); - } else { - log.err("entry point glBlendEquationi not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glMinSampleShading")) |proc| { - function_pointers.glMinSampleShading = @ptrCast(@TypeOf(function_pointers.glMinSampleShading), proc); - } else { - log.err("entry point glMinSampleShading not found!", .{}); - success = false; - } if(get_proc_address(load_ctx, "glActiveTexture")) |proc| { function_pointers.glActiveTexture = @ptrCast(@TypeOf(function_pointers.glActiveTexture), proc); } else { @@ -7112,922 +4323,11 @@ pub fn load(load_ctx: anytype, get_proc_address: fn(@TypeOf(load_ctx), [:0]const log.err("entry point glUniformBlockBinding not found!", .{}); success = false; } - if(get_proc_address(load_ctx, "glTexStorage3DMultisample")) |proc| { - function_pointers.glTexStorage3DMultisample = @ptrCast(@TypeOf(function_pointers.glTexStorage3DMultisample), proc); - } else { - log.err("entry point glTexStorage3DMultisample not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureView")) |proc| { - function_pointers.glTextureView = @ptrCast(@TypeOf(function_pointers.glTextureView), proc); - } else { - log.err("entry point glTextureView not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindVertexBuffer")) |proc| { - function_pointers.glBindVertexBuffer = @ptrCast(@TypeOf(function_pointers.glBindVertexBuffer), proc); - } else { - log.err("entry point glBindVertexBuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribFormat")) |proc| { - function_pointers.glVertexAttribFormat = @ptrCast(@TypeOf(function_pointers.glVertexAttribFormat), proc); - } else { - log.err("entry point glVertexAttribFormat not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribIFormat")) |proc| { - function_pointers.glVertexAttribIFormat = @ptrCast(@TypeOf(function_pointers.glVertexAttribIFormat), proc); - } else { - log.err("entry point glVertexAttribIFormat not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribLFormat")) |proc| { - function_pointers.glVertexAttribLFormat = @ptrCast(@TypeOf(function_pointers.glVertexAttribLFormat), proc); - } else { - log.err("entry point glVertexAttribLFormat not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexAttribBinding")) |proc| { - function_pointers.glVertexAttribBinding = @ptrCast(@TypeOf(function_pointers.glVertexAttribBinding), proc); - } else { - log.err("entry point glVertexAttribBinding not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexBindingDivisor")) |proc| { - function_pointers.glVertexBindingDivisor = @ptrCast(@TypeOf(function_pointers.glVertexBindingDivisor), proc); - } else { - log.err("entry point glVertexBindingDivisor not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDebugMessageControl")) |proc| { - function_pointers.glDebugMessageControl = @ptrCast(@TypeOf(function_pointers.glDebugMessageControl), proc); - } else { - log.err("entry point glDebugMessageControl not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDebugMessageInsert")) |proc| { - function_pointers.glDebugMessageInsert = @ptrCast(@TypeOf(function_pointers.glDebugMessageInsert), proc); - } else { - log.err("entry point glDebugMessageInsert not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDebugMessageCallback")) |proc| { - function_pointers.glDebugMessageCallback = @ptrCast(@TypeOf(function_pointers.glDebugMessageCallback), proc); - } else { - log.err("entry point glDebugMessageCallback not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetDebugMessageLog")) |proc| { - function_pointers.glGetDebugMessageLog = @ptrCast(@TypeOf(function_pointers.glGetDebugMessageLog), proc); - } else { - log.err("entry point glGetDebugMessageLog not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glPushDebugGroup")) |proc| { - function_pointers.glPushDebugGroup = @ptrCast(@TypeOf(function_pointers.glPushDebugGroup), proc); - } else { - log.err("entry point glPushDebugGroup not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glPopDebugGroup")) |proc| { - function_pointers.glPopDebugGroup = @ptrCast(@TypeOf(function_pointers.glPopDebugGroup), proc); - } else { - log.err("entry point glPopDebugGroup not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glObjectLabel")) |proc| { - function_pointers.glObjectLabel = @ptrCast(@TypeOf(function_pointers.glObjectLabel), proc); - } else { - log.err("entry point glObjectLabel not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetObjectLabel")) |proc| { - function_pointers.glGetObjectLabel = @ptrCast(@TypeOf(function_pointers.glGetObjectLabel), proc); - } else { - log.err("entry point glGetObjectLabel not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glObjectPtrLabel")) |proc| { - function_pointers.glObjectPtrLabel = @ptrCast(@TypeOf(function_pointers.glObjectPtrLabel), proc); - } else { - log.err("entry point glObjectPtrLabel not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetObjectPtrLabel")) |proc| { - function_pointers.glGetObjectPtrLabel = @ptrCast(@TypeOf(function_pointers.glGetObjectPtrLabel), proc); - } else { - log.err("entry point glGetObjectPtrLabel not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetPointerv")) |proc| { - function_pointers.glGetPointerv = @ptrCast(@TypeOf(function_pointers.glGetPointerv), proc); - } else { - log.err("entry point glGetPointerv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBufferStorage")) |proc| { - function_pointers.glBufferStorage = @ptrCast(@TypeOf(function_pointers.glBufferStorage), proc); - } else { - log.err("entry point glBufferStorage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearTexImage")) |proc| { - function_pointers.glClearTexImage = @ptrCast(@TypeOf(function_pointers.glClearTexImage), proc); - } else { - log.err("entry point glClearTexImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearTexSubImage")) |proc| { - function_pointers.glClearTexSubImage = @ptrCast(@TypeOf(function_pointers.glClearTexSubImage), proc); - } else { - log.err("entry point glClearTexSubImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindBuffersBase")) |proc| { - function_pointers.glBindBuffersBase = @ptrCast(@TypeOf(function_pointers.glBindBuffersBase), proc); - } else { - log.err("entry point glBindBuffersBase not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindBuffersRange")) |proc| { - function_pointers.glBindBuffersRange = @ptrCast(@TypeOf(function_pointers.glBindBuffersRange), proc); - } else { - log.err("entry point glBindBuffersRange not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindTextures")) |proc| { - function_pointers.glBindTextures = @ptrCast(@TypeOf(function_pointers.glBindTextures), proc); - } else { - log.err("entry point glBindTextures not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindSamplers")) |proc| { - function_pointers.glBindSamplers = @ptrCast(@TypeOf(function_pointers.glBindSamplers), proc); - } else { - log.err("entry point glBindSamplers not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindImageTextures")) |proc| { - function_pointers.glBindImageTextures = @ptrCast(@TypeOf(function_pointers.glBindImageTextures), proc); - } else { - log.err("entry point glBindImageTextures not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindVertexBuffers")) |proc| { - function_pointers.glBindVertexBuffers = @ptrCast(@TypeOf(function_pointers.glBindVertexBuffers), proc); - } else { - log.err("entry point glBindVertexBuffers not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClipControl")) |proc| { - function_pointers.glClipControl = @ptrCast(@TypeOf(function_pointers.glClipControl), proc); - } else { - log.err("entry point glClipControl not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateTransformFeedbacks")) |proc| { - function_pointers.glCreateTransformFeedbacks = @ptrCast(@TypeOf(function_pointers.glCreateTransformFeedbacks), proc); - } else { - log.err("entry point glCreateTransformFeedbacks not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTransformFeedbackBufferBase")) |proc| { - function_pointers.glTransformFeedbackBufferBase = @ptrCast(@TypeOf(function_pointers.glTransformFeedbackBufferBase), proc); - } else { - log.err("entry point glTransformFeedbackBufferBase not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTransformFeedbackBufferRange")) |proc| { - function_pointers.glTransformFeedbackBufferRange = @ptrCast(@TypeOf(function_pointers.glTransformFeedbackBufferRange), proc); - } else { - log.err("entry point glTransformFeedbackBufferRange not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTransformFeedbackiv")) |proc| { - function_pointers.glGetTransformFeedbackiv = @ptrCast(@TypeOf(function_pointers.glGetTransformFeedbackiv), proc); - } else { - log.err("entry point glGetTransformFeedbackiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTransformFeedbacki_v")) |proc| { - function_pointers.glGetTransformFeedbacki_v = @ptrCast(@TypeOf(function_pointers.glGetTransformFeedbacki_v), proc); - } else { - log.err("entry point glGetTransformFeedbacki_v not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTransformFeedbacki64_v")) |proc| { - function_pointers.glGetTransformFeedbacki64_v = @ptrCast(@TypeOf(function_pointers.glGetTransformFeedbacki64_v), proc); - } else { - log.err("entry point glGetTransformFeedbacki64_v not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateBuffers")) |proc| { - function_pointers.glCreateBuffers = @ptrCast(@TypeOf(function_pointers.glCreateBuffers), proc); - } else { - log.err("entry point glCreateBuffers not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedBufferStorage")) |proc| { - function_pointers.glNamedBufferStorage = @ptrCast(@TypeOf(function_pointers.glNamedBufferStorage), proc); - } else { - log.err("entry point glNamedBufferStorage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedBufferData")) |proc| { - function_pointers.glNamedBufferData = @ptrCast(@TypeOf(function_pointers.glNamedBufferData), proc); - } else { - log.err("entry point glNamedBufferData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedBufferSubData")) |proc| { - function_pointers.glNamedBufferSubData = @ptrCast(@TypeOf(function_pointers.glNamedBufferSubData), proc); - } else { - log.err("entry point glNamedBufferSubData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCopyNamedBufferSubData")) |proc| { - function_pointers.glCopyNamedBufferSubData = @ptrCast(@TypeOf(function_pointers.glCopyNamedBufferSubData), proc); - } else { - log.err("entry point glCopyNamedBufferSubData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearNamedBufferData")) |proc| { - function_pointers.glClearNamedBufferData = @ptrCast(@TypeOf(function_pointers.glClearNamedBufferData), proc); - } else { - log.err("entry point glClearNamedBufferData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearNamedBufferSubData")) |proc| { - function_pointers.glClearNamedBufferSubData = @ptrCast(@TypeOf(function_pointers.glClearNamedBufferSubData), proc); - } else { - log.err("entry point glClearNamedBufferSubData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glMapNamedBuffer")) |proc| { - function_pointers.glMapNamedBuffer = @ptrCast(@TypeOf(function_pointers.glMapNamedBuffer), proc); - } else { - log.err("entry point glMapNamedBuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glMapNamedBufferRange")) |proc| { - function_pointers.glMapNamedBufferRange = @ptrCast(@TypeOf(function_pointers.glMapNamedBufferRange), proc); - } else { - log.err("entry point glMapNamedBufferRange not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glUnmapNamedBuffer")) |proc| { - function_pointers.glUnmapNamedBuffer = @ptrCast(@TypeOf(function_pointers.glUnmapNamedBuffer), proc); - } else { - log.err("entry point glUnmapNamedBuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glFlushMappedNamedBufferRange")) |proc| { - function_pointers.glFlushMappedNamedBufferRange = @ptrCast(@TypeOf(function_pointers.glFlushMappedNamedBufferRange), proc); - } else { - log.err("entry point glFlushMappedNamedBufferRange not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetNamedBufferParameteriv")) |proc| { - function_pointers.glGetNamedBufferParameteriv = @ptrCast(@TypeOf(function_pointers.glGetNamedBufferParameteriv), proc); - } else { - log.err("entry point glGetNamedBufferParameteriv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetNamedBufferParameteri64v")) |proc| { - function_pointers.glGetNamedBufferParameteri64v = @ptrCast(@TypeOf(function_pointers.glGetNamedBufferParameteri64v), proc); - } else { - log.err("entry point glGetNamedBufferParameteri64v not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetNamedBufferPointerv")) |proc| { - function_pointers.glGetNamedBufferPointerv = @ptrCast(@TypeOf(function_pointers.glGetNamedBufferPointerv), proc); - } else { - log.err("entry point glGetNamedBufferPointerv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetNamedBufferSubData")) |proc| { - function_pointers.glGetNamedBufferSubData = @ptrCast(@TypeOf(function_pointers.glGetNamedBufferSubData), proc); - } else { - log.err("entry point glGetNamedBufferSubData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateFramebuffers")) |proc| { - function_pointers.glCreateFramebuffers = @ptrCast(@TypeOf(function_pointers.glCreateFramebuffers), proc); - } else { - log.err("entry point glCreateFramebuffers not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedFramebufferRenderbuffer")) |proc| { - function_pointers.glNamedFramebufferRenderbuffer = @ptrCast(@TypeOf(function_pointers.glNamedFramebufferRenderbuffer), proc); - } else { - log.err("entry point glNamedFramebufferRenderbuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedFramebufferParameteri")) |proc| { - function_pointers.glNamedFramebufferParameteri = @ptrCast(@TypeOf(function_pointers.glNamedFramebufferParameteri), proc); - } else { - log.err("entry point glNamedFramebufferParameteri not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedFramebufferTexture")) |proc| { - function_pointers.glNamedFramebufferTexture = @ptrCast(@TypeOf(function_pointers.glNamedFramebufferTexture), proc); - } else { - log.err("entry point glNamedFramebufferTexture not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedFramebufferTextureLayer")) |proc| { - function_pointers.glNamedFramebufferTextureLayer = @ptrCast(@TypeOf(function_pointers.glNamedFramebufferTextureLayer), proc); - } else { - log.err("entry point glNamedFramebufferTextureLayer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedFramebufferDrawBuffer")) |proc| { - function_pointers.glNamedFramebufferDrawBuffer = @ptrCast(@TypeOf(function_pointers.glNamedFramebufferDrawBuffer), proc); - } else { - log.err("entry point glNamedFramebufferDrawBuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedFramebufferDrawBuffers")) |proc| { - function_pointers.glNamedFramebufferDrawBuffers = @ptrCast(@TypeOf(function_pointers.glNamedFramebufferDrawBuffers), proc); - } else { - log.err("entry point glNamedFramebufferDrawBuffers not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedFramebufferReadBuffer")) |proc| { - function_pointers.glNamedFramebufferReadBuffer = @ptrCast(@TypeOf(function_pointers.glNamedFramebufferReadBuffer), proc); - } else { - log.err("entry point glNamedFramebufferReadBuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glInvalidateNamedFramebufferData")) |proc| { - function_pointers.glInvalidateNamedFramebufferData = @ptrCast(@TypeOf(function_pointers.glInvalidateNamedFramebufferData), proc); - } else { - log.err("entry point glInvalidateNamedFramebufferData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glInvalidateNamedFramebufferSubData")) |proc| { - function_pointers.glInvalidateNamedFramebufferSubData = @ptrCast(@TypeOf(function_pointers.glInvalidateNamedFramebufferSubData), proc); - } else { - log.err("entry point glInvalidateNamedFramebufferSubData not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearNamedFramebufferiv")) |proc| { - function_pointers.glClearNamedFramebufferiv = @ptrCast(@TypeOf(function_pointers.glClearNamedFramebufferiv), proc); - } else { - log.err("entry point glClearNamedFramebufferiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearNamedFramebufferuiv")) |proc| { - function_pointers.glClearNamedFramebufferuiv = @ptrCast(@TypeOf(function_pointers.glClearNamedFramebufferuiv), proc); - } else { - log.err("entry point glClearNamedFramebufferuiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearNamedFramebufferfv")) |proc| { - function_pointers.glClearNamedFramebufferfv = @ptrCast(@TypeOf(function_pointers.glClearNamedFramebufferfv), proc); - } else { - log.err("entry point glClearNamedFramebufferfv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glClearNamedFramebufferfi")) |proc| { - function_pointers.glClearNamedFramebufferfi = @ptrCast(@TypeOf(function_pointers.glClearNamedFramebufferfi), proc); - } else { - log.err("entry point glClearNamedFramebufferfi not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBlitNamedFramebuffer")) |proc| { - function_pointers.glBlitNamedFramebuffer = @ptrCast(@TypeOf(function_pointers.glBlitNamedFramebuffer), proc); - } else { - log.err("entry point glBlitNamedFramebuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCheckNamedFramebufferStatus")) |proc| { - function_pointers.glCheckNamedFramebufferStatus = @ptrCast(@TypeOf(function_pointers.glCheckNamedFramebufferStatus), proc); - } else { - log.err("entry point glCheckNamedFramebufferStatus not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetNamedFramebufferParameteriv")) |proc| { - function_pointers.glGetNamedFramebufferParameteriv = @ptrCast(@TypeOf(function_pointers.glGetNamedFramebufferParameteriv), proc); - } else { - log.err("entry point glGetNamedFramebufferParameteriv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetNamedFramebufferAttachmentParameteriv")) |proc| { - function_pointers.glGetNamedFramebufferAttachmentParameteriv = @ptrCast(@TypeOf(function_pointers.glGetNamedFramebufferAttachmentParameteriv), proc); - } else { - log.err("entry point glGetNamedFramebufferAttachmentParameteriv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateRenderbuffers")) |proc| { - function_pointers.glCreateRenderbuffers = @ptrCast(@TypeOf(function_pointers.glCreateRenderbuffers), proc); - } else { - log.err("entry point glCreateRenderbuffers not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedRenderbufferStorage")) |proc| { - function_pointers.glNamedRenderbufferStorage = @ptrCast(@TypeOf(function_pointers.glNamedRenderbufferStorage), proc); - } else { - log.err("entry point glNamedRenderbufferStorage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glNamedRenderbufferStorageMultisample")) |proc| { - function_pointers.glNamedRenderbufferStorageMultisample = @ptrCast(@TypeOf(function_pointers.glNamedRenderbufferStorageMultisample), proc); - } else { - log.err("entry point glNamedRenderbufferStorageMultisample not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetNamedRenderbufferParameteriv")) |proc| { - function_pointers.glGetNamedRenderbufferParameteriv = @ptrCast(@TypeOf(function_pointers.glGetNamedRenderbufferParameteriv), proc); - } else { - log.err("entry point glGetNamedRenderbufferParameteriv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateTextures")) |proc| { - function_pointers.glCreateTextures = @ptrCast(@TypeOf(function_pointers.glCreateTextures), proc); - } else { - log.err("entry point glCreateTextures not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureBuffer")) |proc| { - function_pointers.glTextureBuffer = @ptrCast(@TypeOf(function_pointers.glTextureBuffer), proc); - } else { - log.err("entry point glTextureBuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureBufferRange")) |proc| { - function_pointers.glTextureBufferRange = @ptrCast(@TypeOf(function_pointers.glTextureBufferRange), proc); - } else { - log.err("entry point glTextureBufferRange not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureStorage1D")) |proc| { - function_pointers.glTextureStorage1D = @ptrCast(@TypeOf(function_pointers.glTextureStorage1D), proc); - } else { - log.err("entry point glTextureStorage1D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureStorage2D")) |proc| { - function_pointers.glTextureStorage2D = @ptrCast(@TypeOf(function_pointers.glTextureStorage2D), proc); - } else { - log.err("entry point glTextureStorage2D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureStorage3D")) |proc| { - function_pointers.glTextureStorage3D = @ptrCast(@TypeOf(function_pointers.glTextureStorage3D), proc); - } else { - log.err("entry point glTextureStorage3D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureStorage2DMultisample")) |proc| { - function_pointers.glTextureStorage2DMultisample = @ptrCast(@TypeOf(function_pointers.glTextureStorage2DMultisample), proc); - } else { - log.err("entry point glTextureStorage2DMultisample not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureStorage3DMultisample")) |proc| { - function_pointers.glTextureStorage3DMultisample = @ptrCast(@TypeOf(function_pointers.glTextureStorage3DMultisample), proc); - } else { - log.err("entry point glTextureStorage3DMultisample not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureSubImage1D")) |proc| { - function_pointers.glTextureSubImage1D = @ptrCast(@TypeOf(function_pointers.glTextureSubImage1D), proc); - } else { - log.err("entry point glTextureSubImage1D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureSubImage2D")) |proc| { - function_pointers.glTextureSubImage2D = @ptrCast(@TypeOf(function_pointers.glTextureSubImage2D), proc); - } else { - log.err("entry point glTextureSubImage2D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureSubImage3D")) |proc| { - function_pointers.glTextureSubImage3D = @ptrCast(@TypeOf(function_pointers.glTextureSubImage3D), proc); - } else { - log.err("entry point glTextureSubImage3D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCompressedTextureSubImage1D")) |proc| { - function_pointers.glCompressedTextureSubImage1D = @ptrCast(@TypeOf(function_pointers.glCompressedTextureSubImage1D), proc); - } else { - log.err("entry point glCompressedTextureSubImage1D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCompressedTextureSubImage2D")) |proc| { - function_pointers.glCompressedTextureSubImage2D = @ptrCast(@TypeOf(function_pointers.glCompressedTextureSubImage2D), proc); - } else { - log.err("entry point glCompressedTextureSubImage2D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCompressedTextureSubImage3D")) |proc| { - function_pointers.glCompressedTextureSubImage3D = @ptrCast(@TypeOf(function_pointers.glCompressedTextureSubImage3D), proc); - } else { - log.err("entry point glCompressedTextureSubImage3D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCopyTextureSubImage1D")) |proc| { - function_pointers.glCopyTextureSubImage1D = @ptrCast(@TypeOf(function_pointers.glCopyTextureSubImage1D), proc); - } else { - log.err("entry point glCopyTextureSubImage1D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCopyTextureSubImage2D")) |proc| { - function_pointers.glCopyTextureSubImage2D = @ptrCast(@TypeOf(function_pointers.glCopyTextureSubImage2D), proc); - } else { - log.err("entry point glCopyTextureSubImage2D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCopyTextureSubImage3D")) |proc| { - function_pointers.glCopyTextureSubImage3D = @ptrCast(@TypeOf(function_pointers.glCopyTextureSubImage3D), proc); - } else { - log.err("entry point glCopyTextureSubImage3D not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureParameterf")) |proc| { - function_pointers.glTextureParameterf = @ptrCast(@TypeOf(function_pointers.glTextureParameterf), proc); - } else { - log.err("entry point glTextureParameterf not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureParameterfv")) |proc| { - function_pointers.glTextureParameterfv = @ptrCast(@TypeOf(function_pointers.glTextureParameterfv), proc); - } else { - log.err("entry point glTextureParameterfv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureParameteri")) |proc| { - function_pointers.glTextureParameteri = @ptrCast(@TypeOf(function_pointers.glTextureParameteri), proc); - } else { - log.err("entry point glTextureParameteri not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureParameterIiv")) |proc| { - function_pointers.glTextureParameterIiv = @ptrCast(@TypeOf(function_pointers.glTextureParameterIiv), proc); - } else { - log.err("entry point glTextureParameterIiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureParameterIuiv")) |proc| { - function_pointers.glTextureParameterIuiv = @ptrCast(@TypeOf(function_pointers.glTextureParameterIuiv), proc); - } else { - log.err("entry point glTextureParameterIuiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureParameteriv")) |proc| { - function_pointers.glTextureParameteriv = @ptrCast(@TypeOf(function_pointers.glTextureParameteriv), proc); - } else { - log.err("entry point glTextureParameteriv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGenerateTextureMipmap")) |proc| { - function_pointers.glGenerateTextureMipmap = @ptrCast(@TypeOf(function_pointers.glGenerateTextureMipmap), proc); - } else { - log.err("entry point glGenerateTextureMipmap not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glBindTextureUnit")) |proc| { - function_pointers.glBindTextureUnit = @ptrCast(@TypeOf(function_pointers.glBindTextureUnit), proc); - } else { - log.err("entry point glBindTextureUnit not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTextureImage")) |proc| { - function_pointers.glGetTextureImage = @ptrCast(@TypeOf(function_pointers.glGetTextureImage), proc); - } else { - log.err("entry point glGetTextureImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetCompressedTextureImage")) |proc| { - function_pointers.glGetCompressedTextureImage = @ptrCast(@TypeOf(function_pointers.glGetCompressedTextureImage), proc); - } else { - log.err("entry point glGetCompressedTextureImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTextureLevelParameterfv")) |proc| { - function_pointers.glGetTextureLevelParameterfv = @ptrCast(@TypeOf(function_pointers.glGetTextureLevelParameterfv), proc); - } else { - log.err("entry point glGetTextureLevelParameterfv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTextureLevelParameteriv")) |proc| { - function_pointers.glGetTextureLevelParameteriv = @ptrCast(@TypeOf(function_pointers.glGetTextureLevelParameteriv), proc); - } else { - log.err("entry point glGetTextureLevelParameteriv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTextureParameterfv")) |proc| { - function_pointers.glGetTextureParameterfv = @ptrCast(@TypeOf(function_pointers.glGetTextureParameterfv), proc); - } else { - log.err("entry point glGetTextureParameterfv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTextureParameterIiv")) |proc| { - function_pointers.glGetTextureParameterIiv = @ptrCast(@TypeOf(function_pointers.glGetTextureParameterIiv), proc); - } else { - log.err("entry point glGetTextureParameterIiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTextureParameterIuiv")) |proc| { - function_pointers.glGetTextureParameterIuiv = @ptrCast(@TypeOf(function_pointers.glGetTextureParameterIuiv), proc); - } else { - log.err("entry point glGetTextureParameterIuiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTextureParameteriv")) |proc| { - function_pointers.glGetTextureParameteriv = @ptrCast(@TypeOf(function_pointers.glGetTextureParameteriv), proc); - } else { - log.err("entry point glGetTextureParameteriv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateVertexArrays")) |proc| { - function_pointers.glCreateVertexArrays = @ptrCast(@TypeOf(function_pointers.glCreateVertexArrays), proc); - } else { - log.err("entry point glCreateVertexArrays not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glDisableVertexArrayAttrib")) |proc| { - function_pointers.glDisableVertexArrayAttrib = @ptrCast(@TypeOf(function_pointers.glDisableVertexArrayAttrib), proc); - } else { - log.err("entry point glDisableVertexArrayAttrib not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glEnableVertexArrayAttrib")) |proc| { - function_pointers.glEnableVertexArrayAttrib = @ptrCast(@TypeOf(function_pointers.glEnableVertexArrayAttrib), proc); - } else { - log.err("entry point glEnableVertexArrayAttrib not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexArrayElementBuffer")) |proc| { - function_pointers.glVertexArrayElementBuffer = @ptrCast(@TypeOf(function_pointers.glVertexArrayElementBuffer), proc); - } else { - log.err("entry point glVertexArrayElementBuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexArrayVertexBuffer")) |proc| { - function_pointers.glVertexArrayVertexBuffer = @ptrCast(@TypeOf(function_pointers.glVertexArrayVertexBuffer), proc); - } else { - log.err("entry point glVertexArrayVertexBuffer not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexArrayVertexBuffers")) |proc| { - function_pointers.glVertexArrayVertexBuffers = @ptrCast(@TypeOf(function_pointers.glVertexArrayVertexBuffers), proc); - } else { - log.err("entry point glVertexArrayVertexBuffers not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexArrayAttribBinding")) |proc| { - function_pointers.glVertexArrayAttribBinding = @ptrCast(@TypeOf(function_pointers.glVertexArrayAttribBinding), proc); - } else { - log.err("entry point glVertexArrayAttribBinding not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexArrayAttribFormat")) |proc| { - function_pointers.glVertexArrayAttribFormat = @ptrCast(@TypeOf(function_pointers.glVertexArrayAttribFormat), proc); - } else { - log.err("entry point glVertexArrayAttribFormat not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexArrayAttribIFormat")) |proc| { - function_pointers.glVertexArrayAttribIFormat = @ptrCast(@TypeOf(function_pointers.glVertexArrayAttribIFormat), proc); - } else { - log.err("entry point glVertexArrayAttribIFormat not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexArrayAttribLFormat")) |proc| { - function_pointers.glVertexArrayAttribLFormat = @ptrCast(@TypeOf(function_pointers.glVertexArrayAttribLFormat), proc); - } else { - log.err("entry point glVertexArrayAttribLFormat not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glVertexArrayBindingDivisor")) |proc| { - function_pointers.glVertexArrayBindingDivisor = @ptrCast(@TypeOf(function_pointers.glVertexArrayBindingDivisor), proc); - } else { - log.err("entry point glVertexArrayBindingDivisor not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetVertexArrayiv")) |proc| { - function_pointers.glGetVertexArrayiv = @ptrCast(@TypeOf(function_pointers.glGetVertexArrayiv), proc); - } else { - log.err("entry point glGetVertexArrayiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetVertexArrayIndexediv")) |proc| { - function_pointers.glGetVertexArrayIndexediv = @ptrCast(@TypeOf(function_pointers.glGetVertexArrayIndexediv), proc); - } else { - log.err("entry point glGetVertexArrayIndexediv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetVertexArrayIndexed64iv")) |proc| { - function_pointers.glGetVertexArrayIndexed64iv = @ptrCast(@TypeOf(function_pointers.glGetVertexArrayIndexed64iv), proc); - } else { - log.err("entry point glGetVertexArrayIndexed64iv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateSamplers")) |proc| { - function_pointers.glCreateSamplers = @ptrCast(@TypeOf(function_pointers.glCreateSamplers), proc); - } else { - log.err("entry point glCreateSamplers not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateProgramPipelines")) |proc| { - function_pointers.glCreateProgramPipelines = @ptrCast(@TypeOf(function_pointers.glCreateProgramPipelines), proc); - } else { - log.err("entry point glCreateProgramPipelines not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glCreateQueries")) |proc| { - function_pointers.glCreateQueries = @ptrCast(@TypeOf(function_pointers.glCreateQueries), proc); - } else { - log.err("entry point glCreateQueries not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetQueryBufferObjecti64v")) |proc| { - function_pointers.glGetQueryBufferObjecti64v = @ptrCast(@TypeOf(function_pointers.glGetQueryBufferObjecti64v), proc); - } else { - log.err("entry point glGetQueryBufferObjecti64v not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetQueryBufferObjectiv")) |proc| { - function_pointers.glGetQueryBufferObjectiv = @ptrCast(@TypeOf(function_pointers.glGetQueryBufferObjectiv), proc); - } else { - log.err("entry point glGetQueryBufferObjectiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetQueryBufferObjectui64v")) |proc| { - function_pointers.glGetQueryBufferObjectui64v = @ptrCast(@TypeOf(function_pointers.glGetQueryBufferObjectui64v), proc); - } else { - log.err("entry point glGetQueryBufferObjectui64v not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetQueryBufferObjectuiv")) |proc| { - function_pointers.glGetQueryBufferObjectuiv = @ptrCast(@TypeOf(function_pointers.glGetQueryBufferObjectuiv), proc); - } else { - log.err("entry point glGetQueryBufferObjectuiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glMemoryBarrierByRegion")) |proc| { - function_pointers.glMemoryBarrierByRegion = @ptrCast(@TypeOf(function_pointers.glMemoryBarrierByRegion), proc); - } else { - log.err("entry point glMemoryBarrierByRegion not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetTextureSubImage")) |proc| { - function_pointers.glGetTextureSubImage = @ptrCast(@TypeOf(function_pointers.glGetTextureSubImage), proc); - } else { - log.err("entry point glGetTextureSubImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetCompressedTextureSubImage")) |proc| { - function_pointers.glGetCompressedTextureSubImage = @ptrCast(@TypeOf(function_pointers.glGetCompressedTextureSubImage), proc); - } else { - log.err("entry point glGetCompressedTextureSubImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetGraphicsResetStatus")) |proc| { - function_pointers.glGetGraphicsResetStatus = @ptrCast(@TypeOf(function_pointers.glGetGraphicsResetStatus), proc); - } else { - log.err("entry point glGetGraphicsResetStatus not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetnCompressedTexImage")) |proc| { - function_pointers.glGetnCompressedTexImage = @ptrCast(@TypeOf(function_pointers.glGetnCompressedTexImage), proc); - } else { - log.err("entry point glGetnCompressedTexImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetnTexImage")) |proc| { - function_pointers.glGetnTexImage = @ptrCast(@TypeOf(function_pointers.glGetnTexImage), proc); - } else { - log.err("entry point glGetnTexImage not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetnUniformdv")) |proc| { - function_pointers.glGetnUniformdv = @ptrCast(@TypeOf(function_pointers.glGetnUniformdv), proc); - } else { - log.err("entry point glGetnUniformdv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetnUniformfv")) |proc| { - function_pointers.glGetnUniformfv = @ptrCast(@TypeOf(function_pointers.glGetnUniformfv), proc); - } else { - log.err("entry point glGetnUniformfv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetnUniformiv")) |proc| { - function_pointers.glGetnUniformiv = @ptrCast(@TypeOf(function_pointers.glGetnUniformiv), proc); - } else { - log.err("entry point glGetnUniformiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glGetnUniformuiv")) |proc| { - function_pointers.glGetnUniformuiv = @ptrCast(@TypeOf(function_pointers.glGetnUniformuiv), proc); - } else { - log.err("entry point glGetnUniformuiv not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glReadnPixels")) |proc| { - function_pointers.glReadnPixels = @ptrCast(@TypeOf(function_pointers.glReadnPixels), proc); - } else { - log.err("entry point glReadnPixels not found!", .{}); - success = false; - } - if(get_proc_address(load_ctx, "glTextureBarrier")) |proc| { - function_pointers.glTextureBarrier = @ptrCast(@TypeOf(function_pointers.glTextureBarrier), proc); - } else { - log.err("entry point glTextureBarrier not found!", .{}); - success = false; - } if(!success) return error.EntryPointNotFound; } const function_signatures = struct { - const glTexStorage2D = fn(_target: GLenum, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei) void; - const glTexStorage1D = fn(_target: GLenum, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei) void; - const glDrawTransformFeedbackStreamInstanced = fn(_mode: GLenum, _id: GLuint, _stream: GLuint, _instancecount: GLsizei) void; - const glDrawTransformFeedbackInstanced = fn(_mode: GLenum, _id: GLuint, _instancecount: GLsizei) void; - const glTexStorage3D = fn(_target: GLenum, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei) void; - const glMemoryBarrier = fn(_barriers: GLbitfield) void; - const glBindImageTexture = fn(_unit: GLuint, _texture: GLuint, _level: GLint, _layered: GLboolean, _layer: GLint, _access: GLenum, _format: GLenum) void; - const glGetActiveAtomicCounterBufferiv = fn(_program: GLuint, _bufferIndex: GLuint, _pname: GLenum, _params: [*c]GLint) void; - const glGetInternalformativ = fn(_target: GLenum, _internalformat: GLenum, _pname: GLenum, _count: GLsizei, _params: [*c]GLint) void; - const glDrawElementsInstancedBaseVertexBaseInstance = fn(_mode: GLenum, _count: GLsizei, _type: GLenum, _indices: ?*const anyopaque, _instancecount: GLsizei, _basevertex: GLint, _baseinstance: GLuint) void; - const glDrawElementsInstancedBaseInstance = fn(_mode: GLenum, _count: GLsizei, _type: GLenum, _indices: ?*const anyopaque, _instancecount: GLsizei, _baseinstance: GLuint) void; - const glDrawArraysInstancedBaseInstance = fn(_mode: GLenum, _first: GLint, _count: GLsizei, _instancecount: GLsizei, _baseinstance: GLuint) void; - const glGetDoublei_v = fn(_target: GLenum, _index: GLuint, _data: [*c]GLdouble) void; - const glGetFloati_v = fn(_target: GLenum, _index: GLuint, _data: [*c]GLfloat) void; - const glDepthRangeIndexed = fn(_index: GLuint, _n: GLdouble, _f: GLdouble) void; - const glDepthRangeArrayv = fn(_first: GLuint, _count: GLsizei, _v: [*c]const GLdouble) void; - const glScissorIndexedv = fn(_index: GLuint, _v: [*c]const GLint) void; - const glScissorIndexed = fn(_index: GLuint, _left: GLint, _bottom: GLint, _width: GLsizei, _height: GLsizei) void; - const glScissorArrayv = fn(_first: GLuint, _count: GLsizei, _v: [*c]const GLint) void; - const glViewportIndexedfv = fn(_index: GLuint, _v: [*c]const GLfloat) void; - const glViewportIndexedf = fn(_index: GLuint, _x: GLfloat, _y: GLfloat, _w: GLfloat, _h: GLfloat) void; - const glViewportArrayv = fn(_first: GLuint, _count: GLsizei, _v: [*c]const GLfloat) void; - const glGetVertexAttribLdv = fn(_index: GLuint, _pname: GLenum, _params: [*c]GLdouble) void; - const glVertexAttribLPointer = fn(_index: GLuint, _size: GLint, _type: GLenum, _stride: GLsizei, _pointer: ?*const anyopaque) void; - const glVertexAttribL4dv = fn(_index: GLuint, _v: [*c]const GLdouble) void; - const glVertexAttribL3dv = fn(_index: GLuint, _v: [*c]const GLdouble) void; - const glVertexAttribL2dv = fn(_index: GLuint, _v: [*c]const GLdouble) void; - const glVertexAttribL1dv = fn(_index: GLuint, _v: [*c]const GLdouble) void; - const glVertexAttribL4d = fn(_index: GLuint, _x: GLdouble, _y: GLdouble, _z: GLdouble, _w: GLdouble) void; - const glVertexAttribL3d = fn(_index: GLuint, _x: GLdouble, _y: GLdouble, _z: GLdouble) void; - const glVertexAttribL2d = fn(_index: GLuint, _x: GLdouble, _y: GLdouble) void; - const glVertexAttribL1d = fn(_index: GLuint, _x: GLdouble) void; - const glValidateProgramPipeline = fn(_pipeline: GLuint) void; - const glProgramUniformMatrix4x3dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix3x4dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix4x2dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix2x4dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix3x2dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix2x3dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix4x3fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniformMatrix3x4fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniformMatrix4x2fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniformMatrix2x4fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniformMatrix3x2fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniformMatrix2x3fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniformMatrix4dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix3dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix2dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glProgramUniformMatrix4fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniformMatrix3fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniformMatrix2fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLfloat) void; - const glProgramUniform4uiv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLuint) void; - const glProgramUniform4ui = fn(_program: GLuint, _location: GLint, _v0: GLuint, _v1: GLuint, _v2: GLuint, _v3: GLuint) void; - const glProgramUniform4dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void; - const glProgramUniform4d = fn(_program: GLuint, _location: GLint, _v0: GLdouble, _v1: GLdouble, _v2: GLdouble, _v3: GLdouble) void; - const glProgramUniform4fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLfloat) void; - const glProgramUniform4f = fn(_program: GLuint, _location: GLint, _v0: GLfloat, _v1: GLfloat, _v2: GLfloat, _v3: GLfloat) void; - const glProgramUniform4iv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLint) void; - const glProgramUniform4i = fn(_program: GLuint, _location: GLint, _v0: GLint, _v1: GLint, _v2: GLint, _v3: GLint) void; - const glProgramUniform3uiv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLuint) void; - const glProgramUniform3ui = fn(_program: GLuint, _location: GLint, _v0: GLuint, _v1: GLuint, _v2: GLuint) void; - const glProgramUniform3dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void; - const glProgramUniform3d = fn(_program: GLuint, _location: GLint, _v0: GLdouble, _v1: GLdouble, _v2: GLdouble) void; - const glProgramUniform3fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLfloat) void; - const glProgramUniform3f = fn(_program: GLuint, _location: GLint, _v0: GLfloat, _v1: GLfloat, _v2: GLfloat) void; - const glProgramUniform3iv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLint) void; - const glProgramUniform3i = fn(_program: GLuint, _location: GLint, _v0: GLint, _v1: GLint, _v2: GLint) void; - const glUseProgramStages = fn(_pipeline: GLuint, _stages: GLbitfield, _program: GLuint) void; - const glProgramParameteri = fn(_program: GLuint, _pname: GLenum, _value: GLint) void; - const glGetShaderPrecisionFormat = fn(_shadertype: GLenum, _precisiontype: GLenum, _range: [*c]GLint, _precision: [*c]GLint) void; - const glShaderBinary = fn(_count: GLsizei, _shaders: [*c]const GLuint, _binaryFormat: GLenum, _binary: ?*const anyopaque, _length: GLsizei) void; - const glReleaseShaderCompiler = fn() void; - const glGetQueryIndexediv = fn(_target: GLenum, _index: GLuint, _pname: GLenum, _params: [*c]GLint) void; - const glEndQueryIndexed = fn(_target: GLenum, _index: GLuint) void; - const glBeginQueryIndexed = fn(_target: GLenum, _index: GLuint, _id: GLuint) void; - const glDrawTransformFeedbackStream = fn(_mode: GLenum, _id: GLuint, _stream: GLuint) void; - const glDrawTransformFeedback = fn(_mode: GLenum, _id: GLuint) void; - const glResumeTransformFeedback = fn() void; - const glPauseTransformFeedback = fn() void; - const glGetProgramStageiv = fn(_program: GLuint, _shadertype: GLenum, _pname: GLenum, _values: [*c]GLint) void; - const glGetUniformSubroutineuiv = fn(_shadertype: GLenum, _location: GLint, _params: [*c]GLuint) void; - const glUniformSubroutinesuiv = fn(_shadertype: GLenum, _count: GLsizei, _indices: [*c]const GLuint) void; - const glGetActiveSubroutineName = fn(_program: GLuint, _shadertype: GLenum, _index: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _name: [*c]GLchar) void; const glCullFace = fn(_mode: GLenum) void; const glFrontFace = fn(_mode: GLenum) void; const glHint = fn(_target: GLenum, _mode: GLenum) void; @@ -8076,65 +4376,6 @@ const function_signatures = struct { const glIsEnabled = fn(_cap: GLenum) GLboolean; const glDepthRange = fn(_n: GLdouble, _f: GLdouble) void; const glViewport = fn(_x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void; - const glTexStorage2DMultisample = fn(_target: GLenum, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _fixedsamplelocations: GLboolean) void; - const glTexBufferRange = fn(_target: GLenum, _internalformat: GLenum, _buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr) void; - const glShaderStorageBlockBinding = fn(_program: GLuint, _storageBlockIndex: GLuint, _storageBlockBinding: GLuint) void; - const glGetProgramResourceLocationIndex = fn(_program: GLuint, _programInterface: GLenum, _name: [*c]const GLchar) GLint; - const glGetProgramResourceLocation = fn(_program: GLuint, _programInterface: GLenum, _name: [*c]const GLchar) GLint; - const glGetProgramResourceiv = fn(_program: GLuint, _programInterface: GLenum, _index: GLuint, _propCount: GLsizei, _props: [*c]const GLenum, _count: GLsizei, _length: [*c]GLsizei, _params: [*c]GLint) void; - const glGetProgramResourceName = fn(_program: GLuint, _programInterface: GLenum, _index: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _name: [*c]GLchar) void; - const glGetProgramResourceIndex = fn(_program: GLuint, _programInterface: GLenum, _name: [*c]const GLchar) GLuint; - const glGetProgramInterfaceiv = fn(_program: GLuint, _programInterface: GLenum, _pname: GLenum, _params: [*c]GLint) void; - const glMultiDrawElementsIndirect = fn(_mode: GLenum, _type: GLenum, _indirect: ?*const anyopaque, _drawcount: GLsizei, _stride: GLsizei) void; - const glMultiDrawArraysIndirect = fn(_mode: GLenum, _indirect: ?*const anyopaque, _drawcount: GLsizei, _stride: GLsizei) void; - const glInvalidateSubFramebuffer = fn(_target: GLenum, _numAttachments: GLsizei, _attachments: [*c]const GLenum, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void; - const glInvalidateFramebuffer = fn(_target: GLenum, _numAttachments: GLsizei, _attachments: [*c]const GLenum) void; - const glInvalidateBufferData = fn(_buffer: GLuint) void; - const glInvalidateBufferSubData = fn(_buffer: GLuint, _offset: GLintptr, _length: GLsizeiptr) void; - const glInvalidateTexImage = fn(_texture: GLuint, _level: GLint) void; - const glInvalidateTexSubImage = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei) void; - const glGetInternalformati64v = fn(_target: GLenum, _internalformat: GLenum, _pname: GLenum, _count: GLsizei, _params: [*c]GLint64) void; - const glGetFramebufferParameteriv = fn(_target: GLenum, _pname: GLenum, _params: [*c]GLint) void; - const glFramebufferParameteri = fn(_target: GLenum, _pname: GLenum, _param: GLint) void; - const glCopyImageSubData = fn(_srcName: GLuint, _srcTarget: GLenum, _srcLevel: GLint, _srcX: GLint, _srcY: GLint, _srcZ: GLint, _dstName: GLuint, _dstTarget: GLenum, _dstLevel: GLint, _dstX: GLint, _dstY: GLint, _dstZ: GLint, _srcWidth: GLsizei, _srcHeight: GLsizei, _srcDepth: GLsizei) void; - const glDispatchComputeIndirect = fn(_indirect: GLintptr) void; - const glDispatchCompute = fn(_num_groups_x: GLuint, _num_groups_y: GLuint, _num_groups_z: GLuint) void; - const glClearBufferSubData = fn(_target: GLenum, _internalformat: GLenum, _offset: GLintptr, _size: GLsizeiptr, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void; - const glClearBufferData = fn(_target: GLenum, _internalformat: GLenum, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void; - const glGetProgramPipelineInfoLog = fn(_pipeline: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _infoLog: [*c]GLchar) void; - const glProgramUniform2uiv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLuint) void; - const glProgramUniform2ui = fn(_program: GLuint, _location: GLint, _v0: GLuint, _v1: GLuint) void; - const glProgramUniform2dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void; - const glProgramUniform2d = fn(_program: GLuint, _location: GLint, _v0: GLdouble, _v1: GLdouble) void; - const glProgramUniform2fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLfloat) void; - const glProgramUniform2f = fn(_program: GLuint, _location: GLint, _v0: GLfloat, _v1: GLfloat) void; - const glProgramUniform2iv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLint) void; - const glProgramUniform2i = fn(_program: GLuint, _location: GLint, _v0: GLint, _v1: GLint) void; - const glProgramUniform1uiv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLuint) void; - const glProgramUniform1ui = fn(_program: GLuint, _location: GLint, _v0: GLuint) void; - const glProgramUniform1dv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void; - const glProgramUniform1d = fn(_program: GLuint, _location: GLint, _v0: GLdouble) void; - const glProgramUniform1fv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLfloat) void; - const glProgramUniform1f = fn(_program: GLuint, _location: GLint, _v0: GLfloat) void; - const glProgramUniform1iv = fn(_program: GLuint, _location: GLint, _count: GLsizei, _value: [*c]const GLint) void; - const glProgramUniform1i = fn(_program: GLuint, _location: GLint, _v0: GLint) void; - const glGetProgramPipelineiv = fn(_pipeline: GLuint, _pname: GLenum, _params: [*c]GLint) void; - const glIsProgramPipeline = fn(_pipeline: GLuint) GLboolean; - const glGenProgramPipelines = fn(_n: GLsizei, _pipelines: [*c]GLuint) void; - const glDeleteProgramPipelines = fn(_n: GLsizei, _pipelines: [*c]const GLuint) void; - const glBindProgramPipeline = fn(_pipeline: GLuint) void; - const glCreateShaderProgramv = fn(_type: GLenum, _count: GLsizei, _strings: [*c]const [*c]const GLchar) GLuint; - const glActiveShaderProgram = fn(_pipeline: GLuint, _program: GLuint) void; - const glProgramBinary = fn(_program: GLuint, _binaryFormat: GLenum, _binary: ?*const anyopaque, _length: GLsizei) void; - const glGetProgramBinary = fn(_program: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _binaryFormat: [*c]GLenum, _binary: ?*anyopaque) void; - const glClearDepthf = fn(_d: GLfloat) void; - const glDepthRangef = fn(_n: GLfloat, _f: GLfloat) void; - const glIsTransformFeedback = fn(_id: GLuint) GLboolean; - const glGenTransformFeedbacks = fn(_n: GLsizei, _ids: [*c]GLuint) void; - const glDeleteTransformFeedbacks = fn(_n: GLsizei, _ids: [*c]const GLuint) void; - const glBindTransformFeedback = fn(_target: GLenum, _id: GLuint) void; - const glPatchParameterfv = fn(_pname: GLenum, _values: [*c]const GLfloat) void; - const glPatchParameteri = fn(_pname: GLenum, _value: GLint) void; const glDrawArrays = fn(_mode: GLenum, _first: GLint, _count: GLsizei) void; const glDrawElements = fn(_mode: GLenum, _count: GLsizei, _type: GLenum, _indices: ?*const anyopaque) void; const glPolygonOffset = fn(_factor: GLfloat, _units: GLfloat) void; @@ -8148,39 +4389,10 @@ const function_signatures = struct { const glDeleteTextures = fn(_n: GLsizei, _textures: [*c]const GLuint) void; const glGenTextures = fn(_n: GLsizei, _textures: [*c]GLuint) void; const glIsTexture = fn(_texture: GLuint) GLboolean; - const glGetActiveSubroutineUniformName = fn(_program: GLuint, _shadertype: GLenum, _index: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _name: [*c]GLchar) void; - const glGetActiveSubroutineUniformiv = fn(_program: GLuint, _shadertype: GLenum, _index: GLuint, _pname: GLenum, _values: [*c]GLint) void; - const glGetSubroutineIndex = fn(_program: GLuint, _shadertype: GLenum, _name: [*c]const GLchar) GLuint; - const glGetSubroutineUniformLocation = fn(_program: GLuint, _shadertype: GLenum, _name: [*c]const GLchar) GLint; - const glGetUniformdv = fn(_program: GLuint, _location: GLint, _params: [*c]GLdouble) void; - const glUniformMatrix4x3dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glUniformMatrix4x2dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glUniformMatrix3x4dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glUniformMatrix3x2dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glUniformMatrix2x4dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glUniformMatrix2x3dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glUniformMatrix4dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glUniformMatrix3dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; const glDrawRangeElements = fn(_mode: GLenum, _start: GLuint, _end: GLuint, _count: GLsizei, _type: GLenum, _indices: ?*const anyopaque) void; const glTexImage3D = fn(_target: GLenum, _level: GLint, _internalformat: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _border: GLint, _format: GLenum, _type: GLenum, _pixels: ?*const anyopaque) void; const glTexSubImage3D = fn(_target: GLenum, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _type: GLenum, _pixels: ?*const anyopaque) void; const glCopyTexSubImage3D = fn(_target: GLenum, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void; - const glUniformMatrix2dv = fn(_location: GLint, _count: GLsizei, _transpose: GLboolean, _value: [*c]const GLdouble) void; - const glUniform4dv = fn(_location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void; - const glUniform3dv = fn(_location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void; - const glUniform2dv = fn(_location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void; - const glUniform1dv = fn(_location: GLint, _count: GLsizei, _value: [*c]const GLdouble) void; - const glUniform4d = fn(_location: GLint, _x: GLdouble, _y: GLdouble, _z: GLdouble, _w: GLdouble) void; - const glUniform3d = fn(_location: GLint, _x: GLdouble, _y: GLdouble, _z: GLdouble) void; - const glUniform2d = fn(_location: GLint, _x: GLdouble, _y: GLdouble) void; - const glUniform1d = fn(_location: GLint, _x: GLdouble) void; - const glDrawElementsIndirect = fn(_mode: GLenum, _type: GLenum, _indirect: ?*const anyopaque) void; - const glDrawArraysIndirect = fn(_mode: GLenum, _indirect: ?*const anyopaque) void; - const glBlendFuncSeparatei = fn(_buf: GLuint, _srcRGB: GLenum, _dstRGB: GLenum, _srcAlpha: GLenum, _dstAlpha: GLenum) void; - const glBlendFunci = fn(_buf: GLuint, _src: GLenum, _dst: GLenum) void; - const glBlendEquationSeparatei = fn(_buf: GLuint, _modeRGB: GLenum, _modeAlpha: GLenum) void; - const glBlendEquationi = fn(_buf: GLuint, _mode: GLenum) void; - const glMinSampleShading = fn(_value: GLfloat) void; const glActiveTexture = fn(_texture: GLenum) void; const glSampleCoverage = fn(_value: GLfloat, _invert: GLboolean) void; const glCompressedTexImage3D = fn(_target: GLenum, _level: GLint, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _border: GLint, _imageSize: GLsizei, _data: ?*const anyopaque) void; @@ -8460,230 +4672,9 @@ const function_signatures = struct { const glGetActiveUniformBlockiv = fn(_program: GLuint, _uniformBlockIndex: GLuint, _pname: GLenum, _params: [*c]GLint) void; const glGetActiveUniformBlockName = fn(_program: GLuint, _uniformBlockIndex: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _uniformBlockName: [*c]GLchar) void; const glUniformBlockBinding = fn(_program: GLuint, _uniformBlockIndex: GLuint, _uniformBlockBinding: GLuint) void; - const glTexStorage3DMultisample = fn(_target: GLenum, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _fixedsamplelocations: GLboolean) void; - const glTextureView = fn(_texture: GLuint, _target: GLenum, _origtexture: GLuint, _internalformat: GLenum, _minlevel: GLuint, _numlevels: GLuint, _minlayer: GLuint, _numlayers: GLuint) void; - const glBindVertexBuffer = fn(_bindingindex: GLuint, _buffer: GLuint, _offset: GLintptr, _stride: GLsizei) void; - const glVertexAttribFormat = fn(_attribindex: GLuint, _size: GLint, _type: GLenum, _normalized: GLboolean, _relativeoffset: GLuint) void; - const glVertexAttribIFormat = fn(_attribindex: GLuint, _size: GLint, _type: GLenum, _relativeoffset: GLuint) void; - const glVertexAttribLFormat = fn(_attribindex: GLuint, _size: GLint, _type: GLenum, _relativeoffset: GLuint) void; - const glVertexAttribBinding = fn(_attribindex: GLuint, _bindingindex: GLuint) void; - const glVertexBindingDivisor = fn(_bindingindex: GLuint, _divisor: GLuint) void; - const glDebugMessageControl = fn(_source: GLenum, _type: GLenum, _severity: GLenum, _count: GLsizei, _ids: [*c]const GLuint, _enabled: GLboolean) void; - const glDebugMessageInsert = fn(_source: GLenum, _type: GLenum, _id: GLuint, _severity: GLenum, _length: GLsizei, _buf: [*c]const GLchar) void; - const glDebugMessageCallback = fn(_callback: GLDEBUGPROC, _userParam: ?*const anyopaque) void; - const glGetDebugMessageLog = fn(_count: GLuint, _bufSize: GLsizei, _sources: [*c]GLenum, _types: [*c]GLenum, _ids: [*c]GLuint, _severities: [*c]GLenum, _lengths: [*c]GLsizei, _messageLog: [*c]GLchar) GLuint; - const glPushDebugGroup = fn(_source: GLenum, _id: GLuint, _length: GLsizei, _message: [*c]const GLchar) void; - const glPopDebugGroup = fn() void; - const glObjectLabel = fn(_identifier: GLenum, _name: GLuint, _length: GLsizei, _label: [*c]const GLchar) void; - const glGetObjectLabel = fn(_identifier: GLenum, _name: GLuint, _bufSize: GLsizei, _length: [*c]GLsizei, _label: [*c]GLchar) void; - const glObjectPtrLabel = fn(_ptr: ?*const anyopaque, _length: GLsizei, _label: [*c]const GLchar) void; - const glGetObjectPtrLabel = fn(_ptr: ?*const anyopaque, _bufSize: GLsizei, _length: [*c]GLsizei, _label: [*c]GLchar) void; - const glGetPointerv = fn(_pname: GLenum, _params: ?*?*anyopaque) void; - const glBufferStorage = fn(_target: GLenum, _size: GLsizeiptr, _data: ?*const anyopaque, _flags: GLbitfield) void; - const glClearTexImage = fn(_texture: GLuint, _level: GLint, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void; - const glClearTexSubImage = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void; - const glBindBuffersBase = fn(_target: GLenum, _first: GLuint, _count: GLsizei, _buffers: [*c]const GLuint) void; - const glBindBuffersRange = fn(_target: GLenum, _first: GLuint, _count: GLsizei, _buffers: [*c]const GLuint, _offsets: [*c]const GLintptr, _sizes: [*c]const GLsizeiptr) void; - const glBindTextures = fn(_first: GLuint, _count: GLsizei, _textures: [*c]const GLuint) void; - const glBindSamplers = fn(_first: GLuint, _count: GLsizei, _samplers: [*c]const GLuint) void; - const glBindImageTextures = fn(_first: GLuint, _count: GLsizei, _textures: [*c]const GLuint) void; - const glBindVertexBuffers = fn(_first: GLuint, _count: GLsizei, _buffers: [*c]const GLuint, _offsets: [*c]const GLintptr, _strides: [*c]const GLsizei) void; - const glClipControl = fn(_origin: GLenum, _depth: GLenum) void; - const glCreateTransformFeedbacks = fn(_n: GLsizei, _ids: [*c]GLuint) void; - const glTransformFeedbackBufferBase = fn(_xfb: GLuint, _index: GLuint, _buffer: GLuint) void; - const glTransformFeedbackBufferRange = fn(_xfb: GLuint, _index: GLuint, _buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr) void; - const glGetTransformFeedbackiv = fn(_xfb: GLuint, _pname: GLenum, _param: [*c]GLint) void; - const glGetTransformFeedbacki_v = fn(_xfb: GLuint, _pname: GLenum, _index: GLuint, _param: [*c]GLint) void; - const glGetTransformFeedbacki64_v = fn(_xfb: GLuint, _pname: GLenum, _index: GLuint, _param: [*c]GLint64) void; - const glCreateBuffers = fn(_n: GLsizei, _buffers: [*c]GLuint) void; - const glNamedBufferStorage = fn(_buffer: GLuint, _size: GLsizeiptr, _data: ?*const anyopaque, _flags: GLbitfield) void; - const glNamedBufferData = fn(_buffer: GLuint, _size: GLsizeiptr, _data: ?*const anyopaque, _usage: GLenum) void; - const glNamedBufferSubData = fn(_buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr, _data: ?*const anyopaque) void; - const glCopyNamedBufferSubData = fn(_readBuffer: GLuint, _writeBuffer: GLuint, _readOffset: GLintptr, _writeOffset: GLintptr, _size: GLsizeiptr) void; - const glClearNamedBufferData = fn(_buffer: GLuint, _internalformat: GLenum, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void; - const glClearNamedBufferSubData = fn(_buffer: GLuint, _internalformat: GLenum, _offset: GLintptr, _size: GLsizeiptr, _format: GLenum, _type: GLenum, _data: ?*const anyopaque) void; - const glMapNamedBuffer = fn(_buffer: GLuint, _access: GLenum) ?*anyopaque; - const glMapNamedBufferRange = fn(_buffer: GLuint, _offset: GLintptr, _length: GLsizeiptr, _access: GLbitfield) ?*anyopaque; - const glUnmapNamedBuffer = fn(_buffer: GLuint) GLboolean; - const glFlushMappedNamedBufferRange = fn(_buffer: GLuint, _offset: GLintptr, _length: GLsizeiptr) void; - const glGetNamedBufferParameteriv = fn(_buffer: GLuint, _pname: GLenum, _params: [*c]GLint) void; - const glGetNamedBufferParameteri64v = fn(_buffer: GLuint, _pname: GLenum, _params: [*c]GLint64) void; - const glGetNamedBufferPointerv = fn(_buffer: GLuint, _pname: GLenum, _params: ?*?*anyopaque) void; - const glGetNamedBufferSubData = fn(_buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr, _data: ?*anyopaque) void; - const glCreateFramebuffers = fn(_n: GLsizei, _framebuffers: [*c]GLuint) void; - const glNamedFramebufferRenderbuffer = fn(_framebuffer: GLuint, _attachment: GLenum, _renderbuffertarget: GLenum, _renderbuffer: GLuint) void; - const glNamedFramebufferParameteri = fn(_framebuffer: GLuint, _pname: GLenum, _param: GLint) void; - const glNamedFramebufferTexture = fn(_framebuffer: GLuint, _attachment: GLenum, _texture: GLuint, _level: GLint) void; - const glNamedFramebufferTextureLayer = fn(_framebuffer: GLuint, _attachment: GLenum, _texture: GLuint, _level: GLint, _layer: GLint) void; - const glNamedFramebufferDrawBuffer = fn(_framebuffer: GLuint, _buf: GLenum) void; - const glNamedFramebufferDrawBuffers = fn(_framebuffer: GLuint, _n: GLsizei, _bufs: [*c]const GLenum) void; - const glNamedFramebufferReadBuffer = fn(_framebuffer: GLuint, _src: GLenum) void; - const glInvalidateNamedFramebufferData = fn(_framebuffer: GLuint, _numAttachments: GLsizei, _attachments: [*c]const GLenum) void; - const glInvalidateNamedFramebufferSubData = fn(_framebuffer: GLuint, _numAttachments: GLsizei, _attachments: [*c]const GLenum, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void; - const glClearNamedFramebufferiv = fn(_framebuffer: GLuint, _buffer: GLenum, _drawbuffer: GLint, _value: [*c]const GLint) void; - const glClearNamedFramebufferuiv = fn(_framebuffer: GLuint, _buffer: GLenum, _drawbuffer: GLint, _value: [*c]const GLuint) void; - const glClearNamedFramebufferfv = fn(_framebuffer: GLuint, _buffer: GLenum, _drawbuffer: GLint, _value: [*c]const GLfloat) void; - const glClearNamedFramebufferfi = fn(_framebuffer: GLuint, _buffer: GLenum, _drawbuffer: GLint, _depth: GLfloat, _stencil: GLint) void; - const glBlitNamedFramebuffer = fn(_readFramebuffer: GLuint, _drawFramebuffer: GLuint, _srcX0: GLint, _srcY0: GLint, _srcX1: GLint, _srcY1: GLint, _dstX0: GLint, _dstY0: GLint, _dstX1: GLint, _dstY1: GLint, _mask: GLbitfield, _filter: GLenum) void; - const glCheckNamedFramebufferStatus = fn(_framebuffer: GLuint, _target: GLenum) GLenum; - const glGetNamedFramebufferParameteriv = fn(_framebuffer: GLuint, _pname: GLenum, _param: [*c]GLint) void; - const glGetNamedFramebufferAttachmentParameteriv = fn(_framebuffer: GLuint, _attachment: GLenum, _pname: GLenum, _params: [*c]GLint) void; - const glCreateRenderbuffers = fn(_n: GLsizei, _renderbuffers: [*c]GLuint) void; - const glNamedRenderbufferStorage = fn(_renderbuffer: GLuint, _internalformat: GLenum, _width: GLsizei, _height: GLsizei) void; - const glNamedRenderbufferStorageMultisample = fn(_renderbuffer: GLuint, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei) void; - const glGetNamedRenderbufferParameteriv = fn(_renderbuffer: GLuint, _pname: GLenum, _params: [*c]GLint) void; - const glCreateTextures = fn(_target: GLenum, _n: GLsizei, _textures: [*c]GLuint) void; - const glTextureBuffer = fn(_texture: GLuint, _internalformat: GLenum, _buffer: GLuint) void; - const glTextureBufferRange = fn(_texture: GLuint, _internalformat: GLenum, _buffer: GLuint, _offset: GLintptr, _size: GLsizeiptr) void; - const glTextureStorage1D = fn(_texture: GLuint, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei) void; - const glTextureStorage2D = fn(_texture: GLuint, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei) void; - const glTextureStorage3D = fn(_texture: GLuint, _levels: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei) void; - const glTextureStorage2DMultisample = fn(_texture: GLuint, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _fixedsamplelocations: GLboolean) void; - const glTextureStorage3DMultisample = fn(_texture: GLuint, _samples: GLsizei, _internalformat: GLenum, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _fixedsamplelocations: GLboolean) void; - const glTextureSubImage1D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _width: GLsizei, _format: GLenum, _type: GLenum, _pixels: ?*const anyopaque) void; - const glTextureSubImage2D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _width: GLsizei, _height: GLsizei, _format: GLenum, _type: GLenum, _pixels: ?*const anyopaque) void; - const glTextureSubImage3D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _type: GLenum, _pixels: ?*const anyopaque) void; - const glCompressedTextureSubImage1D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _width: GLsizei, _format: GLenum, _imageSize: GLsizei, _data: ?*const anyopaque) void; - const glCompressedTextureSubImage2D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _width: GLsizei, _height: GLsizei, _format: GLenum, _imageSize: GLsizei, _data: ?*const anyopaque) void; - const glCompressedTextureSubImage3D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _imageSize: GLsizei, _data: ?*const anyopaque) void; - const glCopyTextureSubImage1D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _x: GLint, _y: GLint, _width: GLsizei) void; - const glCopyTextureSubImage2D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void; - const glCopyTextureSubImage3D = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei) void; - const glTextureParameterf = fn(_texture: GLuint, _pname: GLenum, _param: GLfloat) void; - const glTextureParameterfv = fn(_texture: GLuint, _pname: GLenum, _param: [*c]const GLfloat) void; - const glTextureParameteri = fn(_texture: GLuint, _pname: GLenum, _param: GLint) void; - const glTextureParameterIiv = fn(_texture: GLuint, _pname: GLenum, _params: [*c]const GLint) void; - const glTextureParameterIuiv = fn(_texture: GLuint, _pname: GLenum, _params: [*c]const GLuint) void; - const glTextureParameteriv = fn(_texture: GLuint, _pname: GLenum, _param: [*c]const GLint) void; - const glGenerateTextureMipmap = fn(_texture: GLuint) void; - const glBindTextureUnit = fn(_unit: GLuint, _texture: GLuint) void; - const glGetTextureImage = fn(_texture: GLuint, _level: GLint, _format: GLenum, _type: GLenum, _bufSize: GLsizei, _pixels: ?*anyopaque) void; - const glGetCompressedTextureImage = fn(_texture: GLuint, _level: GLint, _bufSize: GLsizei, _pixels: ?*anyopaque) void; - const glGetTextureLevelParameterfv = fn(_texture: GLuint, _level: GLint, _pname: GLenum, _params: [*c]GLfloat) void; - const glGetTextureLevelParameteriv = fn(_texture: GLuint, _level: GLint, _pname: GLenum, _params: [*c]GLint) void; - const glGetTextureParameterfv = fn(_texture: GLuint, _pname: GLenum, _params: [*c]GLfloat) void; - const glGetTextureParameterIiv = fn(_texture: GLuint, _pname: GLenum, _params: [*c]GLint) void; - const glGetTextureParameterIuiv = fn(_texture: GLuint, _pname: GLenum, _params: [*c]GLuint) void; - const glGetTextureParameteriv = fn(_texture: GLuint, _pname: GLenum, _params: [*c]GLint) void; - const glCreateVertexArrays = fn(_n: GLsizei, _arrays: [*c]GLuint) void; - const glDisableVertexArrayAttrib = fn(_vaobj: GLuint, _index: GLuint) void; - const glEnableVertexArrayAttrib = fn(_vaobj: GLuint, _index: GLuint) void; - const glVertexArrayElementBuffer = fn(_vaobj: GLuint, _buffer: GLuint) void; - const glVertexArrayVertexBuffer = fn(_vaobj: GLuint, _bindingindex: GLuint, _buffer: GLuint, _offset: GLintptr, _stride: GLsizei) void; - const glVertexArrayVertexBuffers = fn(_vaobj: GLuint, _first: GLuint, _count: GLsizei, _buffers: [*c]const GLuint, _offsets: [*c]const GLintptr, _strides: [*c]const GLsizei) void; - const glVertexArrayAttribBinding = fn(_vaobj: GLuint, _attribindex: GLuint, _bindingindex: GLuint) void; - const glVertexArrayAttribFormat = fn(_vaobj: GLuint, _attribindex: GLuint, _size: GLint, _type: GLenum, _normalized: GLboolean, _relativeoffset: GLuint) void; - const glVertexArrayAttribIFormat = fn(_vaobj: GLuint, _attribindex: GLuint, _size: GLint, _type: GLenum, _relativeoffset: GLuint) void; - const glVertexArrayAttribLFormat = fn(_vaobj: GLuint, _attribindex: GLuint, _size: GLint, _type: GLenum, _relativeoffset: GLuint) void; - const glVertexArrayBindingDivisor = fn(_vaobj: GLuint, _bindingindex: GLuint, _divisor: GLuint) void; - const glGetVertexArrayiv = fn(_vaobj: GLuint, _pname: GLenum, _param: [*c]GLint) void; - const glGetVertexArrayIndexediv = fn(_vaobj: GLuint, _index: GLuint, _pname: GLenum, _param: [*c]GLint) void; - const glGetVertexArrayIndexed64iv = fn(_vaobj: GLuint, _index: GLuint, _pname: GLenum, _param: [*c]GLint64) void; - const glCreateSamplers = fn(_n: GLsizei, _samplers: [*c]GLuint) void; - const glCreateProgramPipelines = fn(_n: GLsizei, _pipelines: [*c]GLuint) void; - const glCreateQueries = fn(_target: GLenum, _n: GLsizei, _ids: [*c]GLuint) void; - const glGetQueryBufferObjecti64v = fn(_id: GLuint, _buffer: GLuint, _pname: GLenum, _offset: GLintptr) void; - const glGetQueryBufferObjectiv = fn(_id: GLuint, _buffer: GLuint, _pname: GLenum, _offset: GLintptr) void; - const glGetQueryBufferObjectui64v = fn(_id: GLuint, _buffer: GLuint, _pname: GLenum, _offset: GLintptr) void; - const glGetQueryBufferObjectuiv = fn(_id: GLuint, _buffer: GLuint, _pname: GLenum, _offset: GLintptr) void; - const glMemoryBarrierByRegion = fn(_barriers: GLbitfield) void; - const glGetTextureSubImage = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _format: GLenum, _type: GLenum, _bufSize: GLsizei, _pixels: ?*anyopaque) void; - const glGetCompressedTextureSubImage = fn(_texture: GLuint, _level: GLint, _xoffset: GLint, _yoffset: GLint, _zoffset: GLint, _width: GLsizei, _height: GLsizei, _depth: GLsizei, _bufSize: GLsizei, _pixels: ?*anyopaque) void; - const glGetGraphicsResetStatus = fn() GLenum; - const glGetnCompressedTexImage = fn(_target: GLenum, _lod: GLint, _bufSize: GLsizei, _pixels: ?*anyopaque) void; - const glGetnTexImage = fn(_target: GLenum, _level: GLint, _format: GLenum, _type: GLenum, _bufSize: GLsizei, _pixels: ?*anyopaque) void; - const glGetnUniformdv = fn(_program: GLuint, _location: GLint, _bufSize: GLsizei, _params: [*c]GLdouble) void; - const glGetnUniformfv = fn(_program: GLuint, _location: GLint, _bufSize: GLsizei, _params: [*c]GLfloat) void; - const glGetnUniformiv = fn(_program: GLuint, _location: GLint, _bufSize: GLsizei, _params: [*c]GLint) void; - const glGetnUniformuiv = fn(_program: GLuint, _location: GLint, _bufSize: GLsizei, _params: [*c]GLuint) void; - const glReadnPixels = fn(_x: GLint, _y: GLint, _width: GLsizei, _height: GLsizei, _format: GLenum, _type: GLenum, _bufSize: GLsizei, _data: ?*anyopaque) void; - const glTextureBarrier = fn() void; }; const function_pointers = struct { - var glTexStorage2D: ?FnPtr(function_signatures.glTexStorage2D) = null; - var glTexStorage1D: ?FnPtr(function_signatures.glTexStorage1D) = null; - var glDrawTransformFeedbackStreamInstanced: ?FnPtr(function_signatures.glDrawTransformFeedbackStreamInstanced) = null; - var glDrawTransformFeedbackInstanced: ?FnPtr(function_signatures.glDrawTransformFeedbackInstanced) = null; - var glTexStorage3D: ?FnPtr(function_signatures.glTexStorage3D) = null; - var glMemoryBarrier: ?FnPtr(function_signatures.glMemoryBarrier) = null; - var glBindImageTexture: ?FnPtr(function_signatures.glBindImageTexture) = null; - var glGetActiveAtomicCounterBufferiv: ?FnPtr(function_signatures.glGetActiveAtomicCounterBufferiv) = null; - var glGetInternalformativ: ?FnPtr(function_signatures.glGetInternalformativ) = null; - var glDrawElementsInstancedBaseVertexBaseInstance: ?FnPtr(function_signatures.glDrawElementsInstancedBaseVertexBaseInstance) = null; - var glDrawElementsInstancedBaseInstance: ?FnPtr(function_signatures.glDrawElementsInstancedBaseInstance) = null; - var glDrawArraysInstancedBaseInstance: ?FnPtr(function_signatures.glDrawArraysInstancedBaseInstance) = null; - var glGetDoublei_v: ?FnPtr(function_signatures.glGetDoublei_v) = null; - var glGetFloati_v: ?FnPtr(function_signatures.glGetFloati_v) = null; - var glDepthRangeIndexed: ?FnPtr(function_signatures.glDepthRangeIndexed) = null; - var glDepthRangeArrayv: ?FnPtr(function_signatures.glDepthRangeArrayv) = null; - var glScissorIndexedv: ?FnPtr(function_signatures.glScissorIndexedv) = null; - var glScissorIndexed: ?FnPtr(function_signatures.glScissorIndexed) = null; - var glScissorArrayv: ?FnPtr(function_signatures.glScissorArrayv) = null; - var glViewportIndexedfv: ?FnPtr(function_signatures.glViewportIndexedfv) = null; - var glViewportIndexedf: ?FnPtr(function_signatures.glViewportIndexedf) = null; - var glViewportArrayv: ?FnPtr(function_signatures.glViewportArrayv) = null; - var glGetVertexAttribLdv: ?FnPtr(function_signatures.glGetVertexAttribLdv) = null; - var glVertexAttribLPointer: ?FnPtr(function_signatures.glVertexAttribLPointer) = null; - var glVertexAttribL4dv: ?FnPtr(function_signatures.glVertexAttribL4dv) = null; - var glVertexAttribL3dv: ?FnPtr(function_signatures.glVertexAttribL3dv) = null; - var glVertexAttribL2dv: ?FnPtr(function_signatures.glVertexAttribL2dv) = null; - var glVertexAttribL1dv: ?FnPtr(function_signatures.glVertexAttribL1dv) = null; - var glVertexAttribL4d: ?FnPtr(function_signatures.glVertexAttribL4d) = null; - var glVertexAttribL3d: ?FnPtr(function_signatures.glVertexAttribL3d) = null; - var glVertexAttribL2d: ?FnPtr(function_signatures.glVertexAttribL2d) = null; - var glVertexAttribL1d: ?FnPtr(function_signatures.glVertexAttribL1d) = null; - var glValidateProgramPipeline: ?FnPtr(function_signatures.glValidateProgramPipeline) = null; - var glProgramUniformMatrix4x3dv: ?FnPtr(function_signatures.glProgramUniformMatrix4x3dv) = null; - var glProgramUniformMatrix3x4dv: ?FnPtr(function_signatures.glProgramUniformMatrix3x4dv) = null; - var glProgramUniformMatrix4x2dv: ?FnPtr(function_signatures.glProgramUniformMatrix4x2dv) = null; - var glProgramUniformMatrix2x4dv: ?FnPtr(function_signatures.glProgramUniformMatrix2x4dv) = null; - var glProgramUniformMatrix3x2dv: ?FnPtr(function_signatures.glProgramUniformMatrix3x2dv) = null; - var glProgramUniformMatrix2x3dv: ?FnPtr(function_signatures.glProgramUniformMatrix2x3dv) = null; - var glProgramUniformMatrix4x3fv: ?FnPtr(function_signatures.glProgramUniformMatrix4x3fv) = null; - var glProgramUniformMatrix3x4fv: ?FnPtr(function_signatures.glProgramUniformMatrix3x4fv) = null; - var glProgramUniformMatrix4x2fv: ?FnPtr(function_signatures.glProgramUniformMatrix4x2fv) = null; - var glProgramUniformMatrix2x4fv: ?FnPtr(function_signatures.glProgramUniformMatrix2x4fv) = null; - var glProgramUniformMatrix3x2fv: ?FnPtr(function_signatures.glProgramUniformMatrix3x2fv) = null; - var glProgramUniformMatrix2x3fv: ?FnPtr(function_signatures.glProgramUniformMatrix2x3fv) = null; - var glProgramUniformMatrix4dv: ?FnPtr(function_signatures.glProgramUniformMatrix4dv) = null; - var glProgramUniformMatrix3dv: ?FnPtr(function_signatures.glProgramUniformMatrix3dv) = null; - var glProgramUniformMatrix2dv: ?FnPtr(function_signatures.glProgramUniformMatrix2dv) = null; - var glProgramUniformMatrix4fv: ?FnPtr(function_signatures.glProgramUniformMatrix4fv) = null; - var glProgramUniformMatrix3fv: ?FnPtr(function_signatures.glProgramUniformMatrix3fv) = null; - var glProgramUniformMatrix2fv: ?FnPtr(function_signatures.glProgramUniformMatrix2fv) = null; - var glProgramUniform4uiv: ?FnPtr(function_signatures.glProgramUniform4uiv) = null; - var glProgramUniform4ui: ?FnPtr(function_signatures.glProgramUniform4ui) = null; - var glProgramUniform4dv: ?FnPtr(function_signatures.glProgramUniform4dv) = null; - var glProgramUniform4d: ?FnPtr(function_signatures.glProgramUniform4d) = null; - var glProgramUniform4fv: ?FnPtr(function_signatures.glProgramUniform4fv) = null; - var glProgramUniform4f: ?FnPtr(function_signatures.glProgramUniform4f) = null; - var glProgramUniform4iv: ?FnPtr(function_signatures.glProgramUniform4iv) = null; - var glProgramUniform4i: ?FnPtr(function_signatures.glProgramUniform4i) = null; - var glProgramUniform3uiv: ?FnPtr(function_signatures.glProgramUniform3uiv) = null; - var glProgramUniform3ui: ?FnPtr(function_signatures.glProgramUniform3ui) = null; - var glProgramUniform3dv: ?FnPtr(function_signatures.glProgramUniform3dv) = null; - var glProgramUniform3d: ?FnPtr(function_signatures.glProgramUniform3d) = null; - var glProgramUniform3fv: ?FnPtr(function_signatures.glProgramUniform3fv) = null; - var glProgramUniform3f: ?FnPtr(function_signatures.glProgramUniform3f) = null; - var glProgramUniform3iv: ?FnPtr(function_signatures.glProgramUniform3iv) = null; - var glProgramUniform3i: ?FnPtr(function_signatures.glProgramUniform3i) = null; - var glUseProgramStages: ?FnPtr(function_signatures.glUseProgramStages) = null; - var glProgramParameteri: ?FnPtr(function_signatures.glProgramParameteri) = null; - var glGetShaderPrecisionFormat: ?FnPtr(function_signatures.glGetShaderPrecisionFormat) = null; - var glShaderBinary: ?FnPtr(function_signatures.glShaderBinary) = null; - var glReleaseShaderCompiler: ?FnPtr(function_signatures.glReleaseShaderCompiler) = null; - var glGetQueryIndexediv: ?FnPtr(function_signatures.glGetQueryIndexediv) = null; - var glEndQueryIndexed: ?FnPtr(function_signatures.glEndQueryIndexed) = null; - var glBeginQueryIndexed: ?FnPtr(function_signatures.glBeginQueryIndexed) = null; - var glDrawTransformFeedbackStream: ?FnPtr(function_signatures.glDrawTransformFeedbackStream) = null; - var glDrawTransformFeedback: ?FnPtr(function_signatures.glDrawTransformFeedback) = null; - var glResumeTransformFeedback: ?FnPtr(function_signatures.glResumeTransformFeedback) = null; - var glPauseTransformFeedback: ?FnPtr(function_signatures.glPauseTransformFeedback) = null; - var glGetProgramStageiv: ?FnPtr(function_signatures.glGetProgramStageiv) = null; - var glGetUniformSubroutineuiv: ?FnPtr(function_signatures.glGetUniformSubroutineuiv) = null; - var glUniformSubroutinesuiv: ?FnPtr(function_signatures.glUniformSubroutinesuiv) = null; - var glGetActiveSubroutineName: ?FnPtr(function_signatures.glGetActiveSubroutineName) = null; var glCullFace: ?FnPtr(function_signatures.glCullFace) = null; var glFrontFace: ?FnPtr(function_signatures.glFrontFace) = null; var glHint: ?FnPtr(function_signatures.glHint) = null; @@ -8732,65 +4723,6 @@ const function_pointers = struct { var glIsEnabled: ?FnPtr(function_signatures.glIsEnabled) = null; var glDepthRange: ?FnPtr(function_signatures.glDepthRange) = null; var glViewport: ?FnPtr(function_signatures.glViewport) = null; - var glTexStorage2DMultisample: ?FnPtr(function_signatures.glTexStorage2DMultisample) = null; - var glTexBufferRange: ?FnPtr(function_signatures.glTexBufferRange) = null; - var glShaderStorageBlockBinding: ?FnPtr(function_signatures.glShaderStorageBlockBinding) = null; - var glGetProgramResourceLocationIndex: ?FnPtr(function_signatures.glGetProgramResourceLocationIndex) = null; - var glGetProgramResourceLocation: ?FnPtr(function_signatures.glGetProgramResourceLocation) = null; - var glGetProgramResourceiv: ?FnPtr(function_signatures.glGetProgramResourceiv) = null; - var glGetProgramResourceName: ?FnPtr(function_signatures.glGetProgramResourceName) = null; - var glGetProgramResourceIndex: ?FnPtr(function_signatures.glGetProgramResourceIndex) = null; - var glGetProgramInterfaceiv: ?FnPtr(function_signatures.glGetProgramInterfaceiv) = null; - var glMultiDrawElementsIndirect: ?FnPtr(function_signatures.glMultiDrawElementsIndirect) = null; - var glMultiDrawArraysIndirect: ?FnPtr(function_signatures.glMultiDrawArraysIndirect) = null; - var glInvalidateSubFramebuffer: ?FnPtr(function_signatures.glInvalidateSubFramebuffer) = null; - var glInvalidateFramebuffer: ?FnPtr(function_signatures.glInvalidateFramebuffer) = null; - var glInvalidateBufferData: ?FnPtr(function_signatures.glInvalidateBufferData) = null; - var glInvalidateBufferSubData: ?FnPtr(function_signatures.glInvalidateBufferSubData) = null; - var glInvalidateTexImage: ?FnPtr(function_signatures.glInvalidateTexImage) = null; - var glInvalidateTexSubImage: ?FnPtr(function_signatures.glInvalidateTexSubImage) = null; - var glGetInternalformati64v: ?FnPtr(function_signatures.glGetInternalformati64v) = null; - var glGetFramebufferParameteriv: ?FnPtr(function_signatures.glGetFramebufferParameteriv) = null; - var glFramebufferParameteri: ?FnPtr(function_signatures.glFramebufferParameteri) = null; - var glCopyImageSubData: ?FnPtr(function_signatures.glCopyImageSubData) = null; - var glDispatchComputeIndirect: ?FnPtr(function_signatures.glDispatchComputeIndirect) = null; - var glDispatchCompute: ?FnPtr(function_signatures.glDispatchCompute) = null; - var glClearBufferSubData: ?FnPtr(function_signatures.glClearBufferSubData) = null; - var glClearBufferData: ?FnPtr(function_signatures.glClearBufferData) = null; - var glGetProgramPipelineInfoLog: ?FnPtr(function_signatures.glGetProgramPipelineInfoLog) = null; - var glProgramUniform2uiv: ?FnPtr(function_signatures.glProgramUniform2uiv) = null; - var glProgramUniform2ui: ?FnPtr(function_signatures.glProgramUniform2ui) = null; - var glProgramUniform2dv: ?FnPtr(function_signatures.glProgramUniform2dv) = null; - var glProgramUniform2d: ?FnPtr(function_signatures.glProgramUniform2d) = null; - var glProgramUniform2fv: ?FnPtr(function_signatures.glProgramUniform2fv) = null; - var glProgramUniform2f: ?FnPtr(function_signatures.glProgramUniform2f) = null; - var glProgramUniform2iv: ?FnPtr(function_signatures.glProgramUniform2iv) = null; - var glProgramUniform2i: ?FnPtr(function_signatures.glProgramUniform2i) = null; - var glProgramUniform1uiv: ?FnPtr(function_signatures.glProgramUniform1uiv) = null; - var glProgramUniform1ui: ?FnPtr(function_signatures.glProgramUniform1ui) = null; - var glProgramUniform1dv: ?FnPtr(function_signatures.glProgramUniform1dv) = null; - var glProgramUniform1d: ?FnPtr(function_signatures.glProgramUniform1d) = null; - var glProgramUniform1fv: ?FnPtr(function_signatures.glProgramUniform1fv) = null; - var glProgramUniform1f: ?FnPtr(function_signatures.glProgramUniform1f) = null; - var glProgramUniform1iv: ?FnPtr(function_signatures.glProgramUniform1iv) = null; - var glProgramUniform1i: ?FnPtr(function_signatures.glProgramUniform1i) = null; - var glGetProgramPipelineiv: ?FnPtr(function_signatures.glGetProgramPipelineiv) = null; - var glIsProgramPipeline: ?FnPtr(function_signatures.glIsProgramPipeline) = null; - var glGenProgramPipelines: ?FnPtr(function_signatures.glGenProgramPipelines) = null; - var glDeleteProgramPipelines: ?FnPtr(function_signatures.glDeleteProgramPipelines) = null; - var glBindProgramPipeline: ?FnPtr(function_signatures.glBindProgramPipeline) = null; - var glCreateShaderProgramv: ?FnPtr(function_signatures.glCreateShaderProgramv) = null; - var glActiveShaderProgram: ?FnPtr(function_signatures.glActiveShaderProgram) = null; - var glProgramBinary: ?FnPtr(function_signatures.glProgramBinary) = null; - var glGetProgramBinary: ?FnPtr(function_signatures.glGetProgramBinary) = null; - var glClearDepthf: ?FnPtr(function_signatures.glClearDepthf) = null; - var glDepthRangef: ?FnPtr(function_signatures.glDepthRangef) = null; - var glIsTransformFeedback: ?FnPtr(function_signatures.glIsTransformFeedback) = null; - var glGenTransformFeedbacks: ?FnPtr(function_signatures.glGenTransformFeedbacks) = null; - var glDeleteTransformFeedbacks: ?FnPtr(function_signatures.glDeleteTransformFeedbacks) = null; - var glBindTransformFeedback: ?FnPtr(function_signatures.glBindTransformFeedback) = null; - var glPatchParameterfv: ?FnPtr(function_signatures.glPatchParameterfv) = null; - var glPatchParameteri: ?FnPtr(function_signatures.glPatchParameteri) = null; var glDrawArrays: ?FnPtr(function_signatures.glDrawArrays) = null; var glDrawElements: ?FnPtr(function_signatures.glDrawElements) = null; var glPolygonOffset: ?FnPtr(function_signatures.glPolygonOffset) = null; @@ -8804,39 +4736,10 @@ const function_pointers = struct { var glDeleteTextures: ?FnPtr(function_signatures.glDeleteTextures) = null; var glGenTextures: ?FnPtr(function_signatures.glGenTextures) = null; var glIsTexture: ?FnPtr(function_signatures.glIsTexture) = null; - var glGetActiveSubroutineUniformName: ?FnPtr(function_signatures.glGetActiveSubroutineUniformName) = null; - var glGetActiveSubroutineUniformiv: ?FnPtr(function_signatures.glGetActiveSubroutineUniformiv) = null; - var glGetSubroutineIndex: ?FnPtr(function_signatures.glGetSubroutineIndex) = null; - var glGetSubroutineUniformLocation: ?FnPtr(function_signatures.glGetSubroutineUniformLocation) = null; - var glGetUniformdv: ?FnPtr(function_signatures.glGetUniformdv) = null; - var glUniformMatrix4x3dv: ?FnPtr(function_signatures.glUniformMatrix4x3dv) = null; - var glUniformMatrix4x2dv: ?FnPtr(function_signatures.glUniformMatrix4x2dv) = null; - var glUniformMatrix3x4dv: ?FnPtr(function_signatures.glUniformMatrix3x4dv) = null; - var glUniformMatrix3x2dv: ?FnPtr(function_signatures.glUniformMatrix3x2dv) = null; - var glUniformMatrix2x4dv: ?FnPtr(function_signatures.glUniformMatrix2x4dv) = null; - var glUniformMatrix2x3dv: ?FnPtr(function_signatures.glUniformMatrix2x3dv) = null; - var glUniformMatrix4dv: ?FnPtr(function_signatures.glUniformMatrix4dv) = null; - var glUniformMatrix3dv: ?FnPtr(function_signatures.glUniformMatrix3dv) = null; var glDrawRangeElements: ?FnPtr(function_signatures.glDrawRangeElements) = null; var glTexImage3D: ?FnPtr(function_signatures.glTexImage3D) = null; var glTexSubImage3D: ?FnPtr(function_signatures.glTexSubImage3D) = null; var glCopyTexSubImage3D: ?FnPtr(function_signatures.glCopyTexSubImage3D) = null; - var glUniformMatrix2dv: ?FnPtr(function_signatures.glUniformMatrix2dv) = null; - var glUniform4dv: ?FnPtr(function_signatures.glUniform4dv) = null; - var glUniform3dv: ?FnPtr(function_signatures.glUniform3dv) = null; - var glUniform2dv: ?FnPtr(function_signatures.glUniform2dv) = null; - var glUniform1dv: ?FnPtr(function_signatures.glUniform1dv) = null; - var glUniform4d: ?FnPtr(function_signatures.glUniform4d) = null; - var glUniform3d: ?FnPtr(function_signatures.glUniform3d) = null; - var glUniform2d: ?FnPtr(function_signatures.glUniform2d) = null; - var glUniform1d: ?FnPtr(function_signatures.glUniform1d) = null; - var glDrawElementsIndirect: ?FnPtr(function_signatures.glDrawElementsIndirect) = null; - var glDrawArraysIndirect: ?FnPtr(function_signatures.glDrawArraysIndirect) = null; - var glBlendFuncSeparatei: ?FnPtr(function_signatures.glBlendFuncSeparatei) = null; - var glBlendFunci: ?FnPtr(function_signatures.glBlendFunci) = null; - var glBlendEquationSeparatei: ?FnPtr(function_signatures.glBlendEquationSeparatei) = null; - var glBlendEquationi: ?FnPtr(function_signatures.glBlendEquationi) = null; - var glMinSampleShading: ?FnPtr(function_signatures.glMinSampleShading) = null; var glActiveTexture: ?FnPtr(function_signatures.glActiveTexture) = null; var glSampleCoverage: ?FnPtr(function_signatures.glSampleCoverage) = null; var glCompressedTexImage3D: ?FnPtr(function_signatures.glCompressedTexImage3D) = null; @@ -9116,144 +5019,6 @@ const function_pointers = struct { var glGetActiveUniformBlockiv: ?FnPtr(function_signatures.glGetActiveUniformBlockiv) = null; var glGetActiveUniformBlockName: ?FnPtr(function_signatures.glGetActiveUniformBlockName) = null; var glUniformBlockBinding: ?FnPtr(function_signatures.glUniformBlockBinding) = null; - var glTexStorage3DMultisample: ?FnPtr(function_signatures.glTexStorage3DMultisample) = null; - var glTextureView: ?FnPtr(function_signatures.glTextureView) = null; - var glBindVertexBuffer: ?FnPtr(function_signatures.glBindVertexBuffer) = null; - var glVertexAttribFormat: ?FnPtr(function_signatures.glVertexAttribFormat) = null; - var glVertexAttribIFormat: ?FnPtr(function_signatures.glVertexAttribIFormat) = null; - var glVertexAttribLFormat: ?FnPtr(function_signatures.glVertexAttribLFormat) = null; - var glVertexAttribBinding: ?FnPtr(function_signatures.glVertexAttribBinding) = null; - var glVertexBindingDivisor: ?FnPtr(function_signatures.glVertexBindingDivisor) = null; - var glDebugMessageControl: ?FnPtr(function_signatures.glDebugMessageControl) = null; - var glDebugMessageInsert: ?FnPtr(function_signatures.glDebugMessageInsert) = null; - var glDebugMessageCallback: ?FnPtr(function_signatures.glDebugMessageCallback) = null; - var glGetDebugMessageLog: ?FnPtr(function_signatures.glGetDebugMessageLog) = null; - var glPushDebugGroup: ?FnPtr(function_signatures.glPushDebugGroup) = null; - var glPopDebugGroup: ?FnPtr(function_signatures.glPopDebugGroup) = null; - var glObjectLabel: ?FnPtr(function_signatures.glObjectLabel) = null; - var glGetObjectLabel: ?FnPtr(function_signatures.glGetObjectLabel) = null; - var glObjectPtrLabel: ?FnPtr(function_signatures.glObjectPtrLabel) = null; - var glGetObjectPtrLabel: ?FnPtr(function_signatures.glGetObjectPtrLabel) = null; - var glGetPointerv: ?FnPtr(function_signatures.glGetPointerv) = null; - var glBufferStorage: ?FnPtr(function_signatures.glBufferStorage) = null; - var glClearTexImage: ?FnPtr(function_signatures.glClearTexImage) = null; - var glClearTexSubImage: ?FnPtr(function_signatures.glClearTexSubImage) = null; - var glBindBuffersBase: ?FnPtr(function_signatures.glBindBuffersBase) = null; - var glBindBuffersRange: ?FnPtr(function_signatures.glBindBuffersRange) = null; - var glBindTextures: ?FnPtr(function_signatures.glBindTextures) = null; - var glBindSamplers: ?FnPtr(function_signatures.glBindSamplers) = null; - var glBindImageTextures: ?FnPtr(function_signatures.glBindImageTextures) = null; - var glBindVertexBuffers: ?FnPtr(function_signatures.glBindVertexBuffers) = null; - var glClipControl: ?FnPtr(function_signatures.glClipControl) = null; - var glCreateTransformFeedbacks: ?FnPtr(function_signatures.glCreateTransformFeedbacks) = null; - var glTransformFeedbackBufferBase: ?FnPtr(function_signatures.glTransformFeedbackBufferBase) = null; - var glTransformFeedbackBufferRange: ?FnPtr(function_signatures.glTransformFeedbackBufferRange) = null; - var glGetTransformFeedbackiv: ?FnPtr(function_signatures.glGetTransformFeedbackiv) = null; - var glGetTransformFeedbacki_v: ?FnPtr(function_signatures.glGetTransformFeedbacki_v) = null; - var glGetTransformFeedbacki64_v: ?FnPtr(function_signatures.glGetTransformFeedbacki64_v) = null; - var glCreateBuffers: ?FnPtr(function_signatures.glCreateBuffers) = null; - var glNamedBufferStorage: ?FnPtr(function_signatures.glNamedBufferStorage) = null; - var glNamedBufferData: ?FnPtr(function_signatures.glNamedBufferData) = null; - var glNamedBufferSubData: ?FnPtr(function_signatures.glNamedBufferSubData) = null; - var glCopyNamedBufferSubData: ?FnPtr(function_signatures.glCopyNamedBufferSubData) = null; - var glClearNamedBufferData: ?FnPtr(function_signatures.glClearNamedBufferData) = null; - var glClearNamedBufferSubData: ?FnPtr(function_signatures.glClearNamedBufferSubData) = null; - var glMapNamedBuffer: ?FnPtr(function_signatures.glMapNamedBuffer) = null; - var glMapNamedBufferRange: ?FnPtr(function_signatures.glMapNamedBufferRange) = null; - var glUnmapNamedBuffer: ?FnPtr(function_signatures.glUnmapNamedBuffer) = null; - var glFlushMappedNamedBufferRange: ?FnPtr(function_signatures.glFlushMappedNamedBufferRange) = null; - var glGetNamedBufferParameteriv: ?FnPtr(function_signatures.glGetNamedBufferParameteriv) = null; - var glGetNamedBufferParameteri64v: ?FnPtr(function_signatures.glGetNamedBufferParameteri64v) = null; - var glGetNamedBufferPointerv: ?FnPtr(function_signatures.glGetNamedBufferPointerv) = null; - var glGetNamedBufferSubData: ?FnPtr(function_signatures.glGetNamedBufferSubData) = null; - var glCreateFramebuffers: ?FnPtr(function_signatures.glCreateFramebuffers) = null; - var glNamedFramebufferRenderbuffer: ?FnPtr(function_signatures.glNamedFramebufferRenderbuffer) = null; - var glNamedFramebufferParameteri: ?FnPtr(function_signatures.glNamedFramebufferParameteri) = null; - var glNamedFramebufferTexture: ?FnPtr(function_signatures.glNamedFramebufferTexture) = null; - var glNamedFramebufferTextureLayer: ?FnPtr(function_signatures.glNamedFramebufferTextureLayer) = null; - var glNamedFramebufferDrawBuffer: ?FnPtr(function_signatures.glNamedFramebufferDrawBuffer) = null; - var glNamedFramebufferDrawBuffers: ?FnPtr(function_signatures.glNamedFramebufferDrawBuffers) = null; - var glNamedFramebufferReadBuffer: ?FnPtr(function_signatures.glNamedFramebufferReadBuffer) = null; - var glInvalidateNamedFramebufferData: ?FnPtr(function_signatures.glInvalidateNamedFramebufferData) = null; - var glInvalidateNamedFramebufferSubData: ?FnPtr(function_signatures.glInvalidateNamedFramebufferSubData) = null; - var glClearNamedFramebufferiv: ?FnPtr(function_signatures.glClearNamedFramebufferiv) = null; - var glClearNamedFramebufferuiv: ?FnPtr(function_signatures.glClearNamedFramebufferuiv) = null; - var glClearNamedFramebufferfv: ?FnPtr(function_signatures.glClearNamedFramebufferfv) = null; - var glClearNamedFramebufferfi: ?FnPtr(function_signatures.glClearNamedFramebufferfi) = null; - var glBlitNamedFramebuffer: ?FnPtr(function_signatures.glBlitNamedFramebuffer) = null; - var glCheckNamedFramebufferStatus: ?FnPtr(function_signatures.glCheckNamedFramebufferStatus) = null; - var glGetNamedFramebufferParameteriv: ?FnPtr(function_signatures.glGetNamedFramebufferParameteriv) = null; - var glGetNamedFramebufferAttachmentParameteriv: ?FnPtr(function_signatures.glGetNamedFramebufferAttachmentParameteriv) = null; - var glCreateRenderbuffers: ?FnPtr(function_signatures.glCreateRenderbuffers) = null; - var glNamedRenderbufferStorage: ?FnPtr(function_signatures.glNamedRenderbufferStorage) = null; - var glNamedRenderbufferStorageMultisample: ?FnPtr(function_signatures.glNamedRenderbufferStorageMultisample) = null; - var glGetNamedRenderbufferParameteriv: ?FnPtr(function_signatures.glGetNamedRenderbufferParameteriv) = null; - var glCreateTextures: ?FnPtr(function_signatures.glCreateTextures) = null; - var glTextureBuffer: ?FnPtr(function_signatures.glTextureBuffer) = null; - var glTextureBufferRange: ?FnPtr(function_signatures.glTextureBufferRange) = null; - var glTextureStorage1D: ?FnPtr(function_signatures.glTextureStorage1D) = null; - var glTextureStorage2D: ?FnPtr(function_signatures.glTextureStorage2D) = null; - var glTextureStorage3D: ?FnPtr(function_signatures.glTextureStorage3D) = null; - var glTextureStorage2DMultisample: ?FnPtr(function_signatures.glTextureStorage2DMultisample) = null; - var glTextureStorage3DMultisample: ?FnPtr(function_signatures.glTextureStorage3DMultisample) = null; - var glTextureSubImage1D: ?FnPtr(function_signatures.glTextureSubImage1D) = null; - var glTextureSubImage2D: ?FnPtr(function_signatures.glTextureSubImage2D) = null; - var glTextureSubImage3D: ?FnPtr(function_signatures.glTextureSubImage3D) = null; - var glCompressedTextureSubImage1D: ?FnPtr(function_signatures.glCompressedTextureSubImage1D) = null; - var glCompressedTextureSubImage2D: ?FnPtr(function_signatures.glCompressedTextureSubImage2D) = null; - var glCompressedTextureSubImage3D: ?FnPtr(function_signatures.glCompressedTextureSubImage3D) = null; - var glCopyTextureSubImage1D: ?FnPtr(function_signatures.glCopyTextureSubImage1D) = null; - var glCopyTextureSubImage2D: ?FnPtr(function_signatures.glCopyTextureSubImage2D) = null; - var glCopyTextureSubImage3D: ?FnPtr(function_signatures.glCopyTextureSubImage3D) = null; - var glTextureParameterf: ?FnPtr(function_signatures.glTextureParameterf) = null; - var glTextureParameterfv: ?FnPtr(function_signatures.glTextureParameterfv) = null; - var glTextureParameteri: ?FnPtr(function_signatures.glTextureParameteri) = null; - var glTextureParameterIiv: ?FnPtr(function_signatures.glTextureParameterIiv) = null; - var glTextureParameterIuiv: ?FnPtr(function_signatures.glTextureParameterIuiv) = null; - var glTextureParameteriv: ?FnPtr(function_signatures.glTextureParameteriv) = null; - var glGenerateTextureMipmap: ?FnPtr(function_signatures.glGenerateTextureMipmap) = null; - var glBindTextureUnit: ?FnPtr(function_signatures.glBindTextureUnit) = null; - var glGetTextureImage: ?FnPtr(function_signatures.glGetTextureImage) = null; - var glGetCompressedTextureImage: ?FnPtr(function_signatures.glGetCompressedTextureImage) = null; - var glGetTextureLevelParameterfv: ?FnPtr(function_signatures.glGetTextureLevelParameterfv) = null; - var glGetTextureLevelParameteriv: ?FnPtr(function_signatures.glGetTextureLevelParameteriv) = null; - var glGetTextureParameterfv: ?FnPtr(function_signatures.glGetTextureParameterfv) = null; - var glGetTextureParameterIiv: ?FnPtr(function_signatures.glGetTextureParameterIiv) = null; - var glGetTextureParameterIuiv: ?FnPtr(function_signatures.glGetTextureParameterIuiv) = null; - var glGetTextureParameteriv: ?FnPtr(function_signatures.glGetTextureParameteriv) = null; - var glCreateVertexArrays: ?FnPtr(function_signatures.glCreateVertexArrays) = null; - var glDisableVertexArrayAttrib: ?FnPtr(function_signatures.glDisableVertexArrayAttrib) = null; - var glEnableVertexArrayAttrib: ?FnPtr(function_signatures.glEnableVertexArrayAttrib) = null; - var glVertexArrayElementBuffer: ?FnPtr(function_signatures.glVertexArrayElementBuffer) = null; - var glVertexArrayVertexBuffer: ?FnPtr(function_signatures.glVertexArrayVertexBuffer) = null; - var glVertexArrayVertexBuffers: ?FnPtr(function_signatures.glVertexArrayVertexBuffers) = null; - var glVertexArrayAttribBinding: ?FnPtr(function_signatures.glVertexArrayAttribBinding) = null; - var glVertexArrayAttribFormat: ?FnPtr(function_signatures.glVertexArrayAttribFormat) = null; - var glVertexArrayAttribIFormat: ?FnPtr(function_signatures.glVertexArrayAttribIFormat) = null; - var glVertexArrayAttribLFormat: ?FnPtr(function_signatures.glVertexArrayAttribLFormat) = null; - var glVertexArrayBindingDivisor: ?FnPtr(function_signatures.glVertexArrayBindingDivisor) = null; - var glGetVertexArrayiv: ?FnPtr(function_signatures.glGetVertexArrayiv) = null; - var glGetVertexArrayIndexediv: ?FnPtr(function_signatures.glGetVertexArrayIndexediv) = null; - var glGetVertexArrayIndexed64iv: ?FnPtr(function_signatures.glGetVertexArrayIndexed64iv) = null; - var glCreateSamplers: ?FnPtr(function_signatures.glCreateSamplers) = null; - var glCreateProgramPipelines: ?FnPtr(function_signatures.glCreateProgramPipelines) = null; - var glCreateQueries: ?FnPtr(function_signatures.glCreateQueries) = null; - var glGetQueryBufferObjecti64v: ?FnPtr(function_signatures.glGetQueryBufferObjecti64v) = null; - var glGetQueryBufferObjectiv: ?FnPtr(function_signatures.glGetQueryBufferObjectiv) = null; - var glGetQueryBufferObjectui64v: ?FnPtr(function_signatures.glGetQueryBufferObjectui64v) = null; - var glGetQueryBufferObjectuiv: ?FnPtr(function_signatures.glGetQueryBufferObjectuiv) = null; - var glMemoryBarrierByRegion: ?FnPtr(function_signatures.glMemoryBarrierByRegion) = null; - var glGetTextureSubImage: ?FnPtr(function_signatures.glGetTextureSubImage) = null; - var glGetCompressedTextureSubImage: ?FnPtr(function_signatures.glGetCompressedTextureSubImage) = null; - var glGetGraphicsResetStatus: ?FnPtr(function_signatures.glGetGraphicsResetStatus) = null; - var glGetnCompressedTexImage: ?FnPtr(function_signatures.glGetnCompressedTexImage) = null; - var glGetnTexImage: ?FnPtr(function_signatures.glGetnTexImage) = null; - var glGetnUniformdv: ?FnPtr(function_signatures.glGetnUniformdv) = null; - var glGetnUniformfv: ?FnPtr(function_signatures.glGetnUniformfv) = null; - var glGetnUniformiv: ?FnPtr(function_signatures.glGetnUniformiv) = null; - var glGetnUniformuiv: ?FnPtr(function_signatures.glGetnUniformuiv) = null; - var glReadnPixels: ?FnPtr(function_signatures.glReadnPixels) = null; - var glTextureBarrier: ?FnPtr(function_signatures.glTextureBarrier) = null; }; test {