blob: 40951490b9488504130485305d692df14783a041 [file] [log] [blame]
/*
* Copyright 2015, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* THIS FILE WAS GENERATED BY apic. DO NOT EDIT.
*/
#ifndef GAPII_GLES_TYPES_H
#define GAPII_GLES_TYPES_H
#include "slice.h"
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include <stdint.h>
#include <string.h>
namespace gapii {
namespace TextureKind {
static const uint32_t UNDEFINED = 0;
static const uint32_t TEXTURE2D = 1;
static const uint32_t CUBEMAP = 2;
}
namespace GLenum {
static const uint32_t GL_LINE_LOOP = 2;
static const uint32_t GL_LINE_STRIP = 3;
static const uint32_t GL_LINES = 1;
static const uint32_t GL_POINTS = 0;
static const uint32_t GL_TRIANGLE_FAN = 6;
static const uint32_t GL_TRIANGLE_STRIP = 5;
static const uint32_t GL_TRIANGLES = 4;
static const uint32_t GL_UNSIGNED_BYTE = 5121;
static const uint32_t GL_UNSIGNED_SHORT = 5123;
static const uint32_t GL_UNSIGNED_INT = 5125;
static const uint32_t GL_TEXTURE_2D = 3553;
static const uint32_t GL_TEXTURE_CUBE_MAP = 34067;
static const uint32_t GL_TEXTURE_EXTERNAL_OES = 36197;
static const uint32_t GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 34070;
static const uint32_t GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072;
static const uint32_t GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074;
static const uint32_t GL_TEXTURE_CUBE_MAP_POSITIVE_X = 34069;
static const uint32_t GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 34071;
static const uint32_t GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 34073;
static const uint32_t GL_ALPHA = 6406;
static const uint32_t GL_RGB = 6407;
static const uint32_t GL_RGBA = 6408;
static const uint32_t GL_LUMINANCE = 6409;
static const uint32_t GL_LUMINANCE_ALPHA = 6410;
static const uint32_t GL_RED = 6403;
static const uint32_t GL_RED_INTEGER = 36244;
static const uint32_t GL_RG = 33319;
static const uint32_t GL_RG_INTEGER = 33320;
static const uint32_t GL_RGB_INTEGER = 36248;
static const uint32_t GL_RGBA_INTEGER = 36249;
static const uint32_t GL_DEPTH_COMPONENT = 6402;
static const uint32_t GL_DEPTH_COMPONENT16 = 33189;
static const uint32_t GL_DEPTH_STENCIL = 34041;
static const uint32_t GL_DEPTH24_STENCIL8 = 35056;
static const uint32_t GL_RGBA4 = 32854;
static const uint32_t GL_RGB5_A1 = 32855;
static const uint32_t GL_RGB565 = 36194;
static const uint32_t GL_RGBA8 = 32856;
static const uint32_t GL_STENCIL_INDEX8 = 36168;
static const uint32_t GL_HALF_FLOAT_ARB = 5131;
static const uint32_t GL_HALF_FLOAT_OES = 36193;
static const uint32_t GL_ETC1_RGB8_OES = 36196;
static const uint32_t GL_ATC_RGB_AMD = 35986;
static const uint32_t GL_ATC_RGBA_EXPLICIT_ALPHA_AMD = 35987;
static const uint32_t GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD = 34798;
static const uint32_t GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 33776;
static const uint32_t GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 33777;
static const uint32_t GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 33778;
static const uint32_t GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 33779;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_4x4_KHR = 37808;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_5x4_KHR = 37809;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_5x5_KHR = 37810;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_6x5_KHR = 37811;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_6x6_KHR = 37812;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_8x5_KHR = 37813;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_8x6_KHR = 37814;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_8x8_KHR = 37815;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_10x5_KHR = 37816;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_10x6_KHR = 37817;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_10x8_KHR = 37818;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_10x10_KHR = 37819;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_12x10_KHR = 37820;
static const uint32_t GL_COMPRESSED_RGBA_ASTC_12x12_KHR = 37821;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 37840;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 37841;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 37842;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 37843;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 37844;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 37845;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 37846;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 37847;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 37848;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 37849;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 37850;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 37851;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 37852;
static const uint32_t GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 37853;
static const uint32_t GL_COMPRESSED_LUMINANCE_LATC1_NV = 35952;
static const uint32_t GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_NV = 35953;
static const uint32_t GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_NV = 35954;
static const uint32_t GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_NV = 35955;
static const uint32_t GL_FLOAT = 5126;
static const uint32_t GL_UNSIGNED_SHORT_4_4_4_4 = 32819;
static const uint32_t GL_UNSIGNED_SHORT_5_5_5_1 = 32820;
static const uint32_t GL_UNSIGNED_SHORT_5_6_5 = 33635;
static const uint32_t GL_UNSIGNED_INT_24_8 = 34042;
static const uint32_t GL_COLOR_ATTACHMENT0 = 36064;
static const uint32_t GL_DEPTH_ATTACHMENT = 36096;
static const uint32_t GL_STENCIL_ATTACHMENT = 36128;
static const uint32_t GL_NONE = 0;
static const uint32_t GL_RENDERBUFFER = 36161;
static const uint32_t GL_TEXTURE = 5890;
static const uint32_t GL_FRAMEBUFFER = 36160;
static const uint32_t GL_READ_FRAMEBUFFER = 36008;
static const uint32_t GL_DRAW_FRAMEBUFFER = 36009;
static const uint32_t GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 36048;
static const uint32_t GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 36049;
static const uint32_t GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 36050;
static const uint32_t GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 36051;
static const uint32_t GL_FRAMEBUFFER_COMPLETE = 36053;
static const uint32_t GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 36054;
static const uint32_t GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 36055;
static const uint32_t GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 36057;
static const uint32_t GL_FRAMEBUFFER_UNSUPPORTED = 36061;
static const uint32_t GL_RENDERBUFFER_WIDTH = 36162;
static const uint32_t GL_RENDERBUFFER_HEIGHT = 36163;
static const uint32_t GL_RENDERBUFFER_INTERNAL_FORMAT = 36164;
static const uint32_t GL_RENDERBUFFER_RED_SIZE = 36176;
static const uint32_t GL_RENDERBUFFER_GREEN_SIZE = 36177;
static const uint32_t GL_RENDERBUFFER_BLUE_SIZE = 36178;
static const uint32_t GL_RENDERBUFFER_ALPHA_SIZE = 36179;
static const uint32_t GL_RENDERBUFFER_DEPTH_SIZE = 36180;
static const uint32_t GL_RENDERBUFFER_STENCIL_SIZE = 36181;
static const uint32_t GL_BUFFER_SIZE = 34660;
static const uint32_t GL_BUFFER_USAGE = 34661;
static const uint32_t GL_TEXTURE0 = 33984;
static const uint32_t GL_TEXTURE1 = 33985;
static const uint32_t GL_TEXTURE2 = 33986;
static const uint32_t GL_TEXTURE3 = 33987;
static const uint32_t GL_TEXTURE4 = 33988;
static const uint32_t GL_TEXTURE5 = 33989;
static const uint32_t GL_TEXTURE6 = 33990;
static const uint32_t GL_TEXTURE7 = 33991;
static const uint32_t GL_TEXTURE8 = 33992;
static const uint32_t GL_TEXTURE9 = 33993;
static const uint32_t GL_TEXTURE10 = 33994;
static const uint32_t GL_TEXTURE11 = 33995;
static const uint32_t GL_TEXTURE12 = 33996;
static const uint32_t GL_TEXTURE13 = 33997;
static const uint32_t GL_TEXTURE14 = 33998;
static const uint32_t GL_TEXTURE15 = 33999;
static const uint32_t GL_TEXTURE16 = 34000;
static const uint32_t GL_TEXTURE17 = 34001;
static const uint32_t GL_TEXTURE18 = 34002;
static const uint32_t GL_TEXTURE19 = 34003;
static const uint32_t GL_TEXTURE20 = 34004;
static const uint32_t GL_TEXTURE21 = 34005;
static const uint32_t GL_TEXTURE22 = 34006;
static const uint32_t GL_TEXTURE23 = 34007;
static const uint32_t GL_TEXTURE24 = 34008;
static const uint32_t GL_TEXTURE25 = 34009;
static const uint32_t GL_TEXTURE26 = 34010;
static const uint32_t GL_TEXTURE27 = 34011;
static const uint32_t GL_TEXTURE28 = 34012;
static const uint32_t GL_TEXTURE29 = 34013;
static const uint32_t GL_TEXTURE30 = 34014;
static const uint32_t GL_TEXTURE31 = 34015;
static const uint32_t GL_DYNAMIC_DRAW = 35048;
static const uint32_t GL_STATIC_DRAW = 35044;
static const uint32_t GL_STREAM_DRAW = 35040;
static const uint32_t GL_VERTEX_SHADER = 35633;
static const uint32_t GL_FRAGMENT_SHADER = 35632;
static const uint32_t GL_ACTIVE_TEXTURE = 34016;
static const uint32_t GL_ALIASED_LINE_WIDTH_RANGE = 33902;
static const uint32_t GL_ALIASED_POINT_SIZE_RANGE = 33901;
static const uint32_t GL_ALPHA_BITS = 3413;
static const uint32_t GL_ARRAY_BUFFER_BINDING = 34964;
static const uint32_t GL_BLEND = 3042;
static const uint32_t GL_BLEND_COLOR = 32773;
static const uint32_t GL_BLEND_DST_ALPHA = 32970;
static const uint32_t GL_BLEND_DST_RGB = 32968;
static const uint32_t GL_BLEND_EQUATION_ALPHA = 34877;
static const uint32_t GL_BLEND_EQUATION_RGB = 32777;
static const uint32_t GL_BLEND_SRC_ALPHA = 32971;
static const uint32_t GL_BLEND_SRC_RGB = 32969;
static const uint32_t GL_BLUE_BITS = 3412;
static const uint32_t GL_COLOR_CLEAR_VALUE = 3106;
static const uint32_t GL_COLOR_WRITEMASK = 3107;
static const uint32_t GL_COMPRESSED_TEXTURE_FORMATS = 34467;
static const uint32_t GL_CULL_FACE = 2884;
static const uint32_t GL_CULL_FACE_MODE = 2885;
static const uint32_t GL_CURRENT_PROGRAM = 35725;
static const uint32_t GL_DEPTH_BITS = 3414;
static const uint32_t GL_DEPTH_CLEAR_VALUE = 2931;
static const uint32_t GL_DEPTH_FUNC = 2932;
static const uint32_t GL_DEPTH_RANGE = 2928;
static const uint32_t GL_DEPTH_TEST = 2929;
static const uint32_t GL_DEPTH_WRITEMASK = 2930;
static const uint32_t GL_DITHER = 3024;
static const uint32_t GL_ELEMENT_ARRAY_BUFFER_BINDING = 34965;
static const uint32_t GL_FRAMEBUFFER_BINDING = 36006;
static const uint32_t GL_FRONT_FACE = 2886;
static const uint32_t GL_GENERATE_MIPMAP_HINT = 33170;
static const uint32_t GL_GREEN_BITS = 3411;
static const uint32_t GL_IMPLEMENTATION_COLOR_READ_FORMAT = 35739;
static const uint32_t GL_IMPLEMENTATION_COLOR_READ_TYPE = 35738;
static const uint32_t GL_LINE_WIDTH = 2849;
static const uint32_t GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 35661;
static const uint32_t GL_MAX_CUBE_MAP_TEXTURE_SIZE = 34076;
static const uint32_t GL_MAX_FRAGMENT_UNIFORM_VECTORS = 36349;
static const uint32_t GL_MAX_RENDERBUFFER_SIZE = 34024;
static const uint32_t GL_MAX_TEXTURE_IMAGE_UNITS = 34930;
static const uint32_t GL_MAX_TEXTURE_SIZE = 3379;
static const uint32_t GL_MAX_VARYING_VECTORS = 36348;
static const uint32_t GL_MAX_VERTEX_ATTRIBS = 34921;
static const uint32_t GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 35660;
static const uint32_t GL_MAX_VERTEX_UNIFORM_VECTORS = 36347;
static const uint32_t GL_MAX_VIEWPORT_DIMS = 3386;
static const uint32_t GL_NUM_COMPRESSED_TEXTURE_FORMATS = 34466;
static const uint32_t GL_NUM_SHADER_BINARY_FORMATS = 36345;
static const uint32_t GL_PACK_ALIGNMENT = 3333;
static const uint32_t GL_POLYGON_OFFSET_FACTOR = 32824;
static const uint32_t GL_POLYGON_OFFSET_FILL = 32823;
static const uint32_t GL_POLYGON_OFFSET_UNITS = 10752;
static const uint32_t GL_RED_BITS = 3410;
static const uint32_t GL_RENDERBUFFER_BINDING = 36007;
static const uint32_t GL_SAMPLE_ALPHA_TO_COVERAGE = 32926;
static const uint32_t GL_SAMPLE_BUFFERS = 32936;
static const uint32_t GL_SAMPLE_COVERAGE = 32928;
static const uint32_t GL_SAMPLE_COVERAGE_INVERT = 32939;
static const uint32_t GL_SAMPLE_COVERAGE_VALUE = 32938;
static const uint32_t GL_SAMPLES = 32937;
static const uint32_t GL_SCISSOR_BOX = 3088;
static const uint32_t GL_SCISSOR_TEST = 3089;
static const uint32_t GL_SHADER_BINARY_FORMATS = 36344;
static const uint32_t GL_SHADER_COMPILER = 36346;
static const uint32_t GL_STENCIL_BACK_FAIL = 34817;
static const uint32_t GL_STENCIL_BACK_FUNC = 34816;
static const uint32_t GL_STENCIL_BACK_PASS_DEPTH_FAIL = 34818;
static const uint32_t GL_STENCIL_BACK_PASS_DEPTH_PASS = 34819;
static const uint32_t GL_STENCIL_BACK_REF = 36003;
static const uint32_t GL_STENCIL_BACK_VALUE_MASK = 36004;
static const uint32_t GL_STENCIL_BACK_WRITEMASK = 36005;
static const uint32_t GL_STENCIL_BITS = 3415;
static const uint32_t GL_STENCIL_CLEAR_VALUE = 2961;
static const uint32_t GL_STENCIL_FAIL = 2964;
static const uint32_t GL_STENCIL_FUNC = 2962;
static const uint32_t GL_STENCIL_PASS_DEPTH_FAIL = 2965;
static const uint32_t GL_STENCIL_PASS_DEPTH_PASS = 2966;
static const uint32_t GL_STENCIL_REF = 2967;
static const uint32_t GL_STENCIL_TEST = 2960;
static const uint32_t GL_STENCIL_VALUE_MASK = 2963;
static const uint32_t GL_STENCIL_WRITEMASK = 2968;
static const uint32_t GL_SUBPIXEL_BITS = 3408;
static const uint32_t GL_TEXTURE_BINDING_2D = 32873;
static const uint32_t GL_TEXTURE_BINDING_CUBE_MAP = 34068;
static const uint32_t GL_UNPACK_ALIGNMENT = 3317;
static const uint32_t GL_VIEWPORT = 2978;
static const uint32_t GL_READ_FRAMEBUFFER_BINDING = 36010;
static const uint32_t GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 34047;
static const uint32_t GL_GPU_DISJOINT_EXT = 36795;
static const uint32_t GL_FRONT = 1028;
static const uint32_t GL_BACK = 1029;
static const uint32_t GL_FRONT_AND_BACK = 1032;
static const uint32_t GL_VERTEX_ARRAY = 32884;
static const uint32_t GL_NORMAL_ARRAY = 32885;
static const uint32_t GL_COLOR_ARRAY = 32886;
static const uint32_t GL_TEXTURE_COORD_ARRAY = 32888;
static const uint32_t GL_POINT_SIZE_ARRAY_OES = 35740;
static const uint32_t GL_EXTENSIONS = 7939;
static const uint32_t GL_RENDERER = 7937;
static const uint32_t GL_VENDOR = 7936;
static const uint32_t GL_VERSION = 7938;
static const uint32_t GL_BYTE = 5120;
static const uint32_t GL_FIXED = 5132;
static const uint32_t GL_SHORT = 5122;
static const uint32_t GL_FLOAT_VEC2 = 35664;
static const uint32_t GL_FLOAT_VEC3 = 35665;
static const uint32_t GL_FLOAT_VEC4 = 35666;
static const uint32_t GL_FLOAT_MAT2 = 35674;
static const uint32_t GL_FLOAT_MAT3 = 35675;
static const uint32_t GL_FLOAT_MAT4 = 35676;
static const uint32_t GL_INT = 5124;
static const uint32_t GL_INT_VEC2 = 35667;
static const uint32_t GL_INT_VEC3 = 35668;
static const uint32_t GL_INT_VEC4 = 35669;
static const uint32_t GL_BOOL = 35670;
static const uint32_t GL_BOOL_VEC2 = 35671;
static const uint32_t GL_BOOL_VEC3 = 35672;
static const uint32_t GL_BOOL_VEC4 = 35673;
static const uint32_t GL_SAMPLER_2D = 35678;
static const uint32_t GL_SAMPLER_CUBE = 35680;
static const uint32_t GL_NO_ERROR = 0;
static const uint32_t GL_INVALID_ENUM = 1280;
static const uint32_t GL_INVALID_VALUE = 1281;
static const uint32_t GL_INVALID_OPERATION = 1282;
static const uint32_t GL_INVALID_FRAMEBUFFER_OPERATION = 1286;
static const uint32_t GL_OUT_OF_MEMORY = 1285;
static const uint32_t GL_DONT_CARE = 4352;
static const uint32_t GL_FASTEST = 4353;
static const uint32_t GL_NICEST = 4354;
static const uint32_t GL_COLOR_EXT = 6144;
static const uint32_t GL_DEPTH_EXT = 6145;
static const uint32_t GL_STENCIL_EXT = 6146;
static const uint32_t GL_DELETE_STATUS = 35712;
static const uint32_t GL_LINK_STATUS = 35714;
static const uint32_t GL_VALIDATE_STATUS = 35715;
static const uint32_t GL_INFO_LOG_LENGTH = 35716;
static const uint32_t GL_ATTACHED_SHADERS = 35717;
static const uint32_t GL_ACTIVE_ATTRIBUTES = 35721;
static const uint32_t GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 35722;
static const uint32_t GL_ACTIVE_UNIFORMS = 35718;
static const uint32_t GL_ACTIVE_UNIFORM_MAX_LENGTH = 35719;
static const uint32_t GL_SHADER_TYPE = 35663;
static const uint32_t GL_COMPILE_STATUS = 35713;
static const uint32_t GL_SHADER_SOURCE_LENGTH = 35720;
static const uint32_t GL_TEXTURE_MIN_FILTER = 10241;
static const uint32_t GL_TEXTURE_MAG_FILTER = 10240;
static const uint32_t GL_TEXTURE_WRAP_S = 10242;
static const uint32_t GL_TEXTURE_WRAP_T = 10243;
static const uint32_t GL_TEXTURE_MAX_ANISOTROPY_EXT = 34046;
static const uint32_t GL_TEXTURE_SWIZZLE_R = 36418;
static const uint32_t GL_TEXTURE_SWIZZLE_G = 36419;
static const uint32_t GL_TEXTURE_SWIZZLE_B = 36420;
static const uint32_t GL_TEXTURE_SWIZZLE_A = 36421;
static const uint32_t GL_NEAREST = 9728;
static const uint32_t GL_LINEAR = 9729;
static const uint32_t GL_NEAREST_MIPMAP_NEAREST = 9984;
static const uint32_t GL_LINEAR_MIPMAP_NEAREST = 9985;
static const uint32_t GL_NEAREST_MIPMAP_LINEAR = 9986;
static const uint32_t GL_LINEAR_MIPMAP_LINEAR = 9987;
static const uint32_t GL_CLAMP_TO_EDGE = 33071;
static const uint32_t GL_MIRRORED_REPEAT = 33648;
static const uint32_t GL_REPEAT = 10497;
static const uint32_t GL_GREEN = 6404;
static const uint32_t GL_BLUE = 6405;
static const uint32_t GL_ZERO = 0;
static const uint32_t GL_ONE = 1;
static const uint32_t GL_SRC_COLOR = 768;
static const uint32_t GL_ONE_MINUS_SRC_COLOR = 769;
static const uint32_t GL_DST_COLOR = 774;
static const uint32_t GL_ONE_MINUS_DST_COLOR = 775;
static const uint32_t GL_SRC_ALPHA = 770;
static const uint32_t GL_ONE_MINUS_SRC_ALPHA = 771;
static const uint32_t GL_DST_ALPHA = 772;
static const uint32_t GL_ONE_MINUS_DST_ALPHA = 773;
static const uint32_t GL_CONSTANT_COLOR = 32769;
static const uint32_t GL_ONE_MINUS_CONSTANT_COLOR = 32770;
static const uint32_t GL_CONSTANT_ALPHA = 32771;
static const uint32_t GL_ONE_MINUS_CONSTANT_ALPHA = 32772;
static const uint32_t GL_SRC_ALPHA_SATURATE = 776;
static const uint32_t GL_LOW_FLOAT = 36336;
static const uint32_t GL_MEDIUM_FLOAT = 36337;
static const uint32_t GL_HIGH_FLOAT = 36338;
static const uint32_t GL_LOW_INT = 36339;
static const uint32_t GL_MEDIUM_INT = 36340;
static const uint32_t GL_HIGH_INT = 36341;
static const uint32_t GL_NEVER = 512;
static const uint32_t GL_LESS = 513;
static const uint32_t GL_EQUAL = 514;
static const uint32_t GL_LEQUAL = 515;
static const uint32_t GL_GREATER = 516;
static const uint32_t GL_NOTEQUAL = 517;
static const uint32_t GL_GEQUAL = 518;
static const uint32_t GL_ALWAYS = 519;
static const uint32_t GL_KEEP = 7680;
static const uint32_t GL_REPLACE = 7681;
static const uint32_t GL_INCR = 7682;
static const uint32_t GL_INCR_WRAP = 34055;
static const uint32_t GL_DECR = 7683;
static const uint32_t GL_DECR_WRAP = 34056;
static const uint32_t GL_INVERT = 5386;
static const uint32_t GL_CW = 2304;
static const uint32_t GL_CCW = 2305;
static const uint32_t GL_FUNC_ADD = 32774;
static const uint32_t GL_FUNC_SUBTRACT = 32778;
static const uint32_t GL_FUNC_REVERSE_SUBTRACT = 32779;
static const uint32_t GL_ARRAY_BUFFER = 34962;
static const uint32_t GL_COPY_READ_BUFFER = 36662;
static const uint32_t GL_COPY_WRITE_BUFFER = 36663;
static const uint32_t GL_ELEMENT_ARRAY_BUFFER = 34963;
static const uint32_t GL_PIXEL_PACK_BUFFER = 35051;
static const uint32_t GL_PIXEL_UNPACK_BUFFER = 35052;
static const uint32_t GL_TRANSFORM_FEEDBACK_BUFFER = 35982;
static const uint32_t GL_UNIFORM_BUFFER = 35345;
static const uint32_t GL_RENDERBUFFER_OES = 36161;
static const uint32_t GL_GUILTY_CONTEXT_RESET_EXT = 33363;
static const uint32_t GL_INNOCENT_CONTEXT_RESET_EXT = 33364;
static const uint32_t GL_UNKNOWN_CONTEXT_RESET_EXT = 33365;
static const uint32_t GL_CURRENT_QUERY = 34917;
static const uint32_t GL_QUERY_COUNTER_BITS_EXT = 34916;
static const uint32_t GL_QUERY_RESULT = 34918;
static const uint32_t GL_QUERY_RESULT_AVAILABLE = 34919;
static const uint32_t GL_ANY_SAMPLES_PASSED = 35887;
static const uint32_t GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 36202;
static const uint32_t GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 35976;
static const uint32_t GL_TIME_ELAPSED_EXT = 35007;
static const uint32_t GL_TIMESTAMP_EXT = 36392;
static const uint32_t GL_UNIFORM_BLOCK_BINDING = 35391;
static const uint32_t GL_UNIFORM_BLOCK_DATA_SIZE = 35392;
static const uint32_t GL_UNIFORM_BLOCK_NAME_LENGTH = 35393;
static const uint32_t GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 35394;
static const uint32_t GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 35395;
static const uint32_t GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 35396;
static const uint32_t GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 35397;
static const uint32_t GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 35398;
}
namespace GLbitfield {
static const uint32_t GL_COLOR_BUFFER_BIT0_QCOM = 1;
static const uint32_t GL_COLOR_BUFFER_BIT1_QCOM = 2;
static const uint32_t GL_COLOR_BUFFER_BIT2_QCOM = 4;
static const uint32_t GL_COLOR_BUFFER_BIT3_QCOM = 8;
static const uint32_t GL_COLOR_BUFFER_BIT4_QCOM = 16;
static const uint32_t GL_COLOR_BUFFER_BIT5_QCOM = 32;
static const uint32_t GL_COLOR_BUFFER_BIT6_QCOM = 64;
static const uint32_t GL_COLOR_BUFFER_BIT7_QCOM = 128;
static const uint32_t GL_DEPTH_BUFFER_BIT0_QCOM = 256;
static const uint32_t GL_DEPTH_BUFFER_BIT1_QCOM = 512;
static const uint32_t GL_DEPTH_BUFFER_BIT2_QCOM = 1024;
static const uint32_t GL_DEPTH_BUFFER_BIT3_QCOM = 2048;
static const uint32_t GL_DEPTH_BUFFER_BIT4_QCOM = 4096;
static const uint32_t GL_DEPTH_BUFFER_BIT5_QCOM = 8192;
static const uint32_t GL_DEPTH_BUFFER_BIT6_QCOM = 16384;
static const uint32_t GL_DEPTH_BUFFER_BIT7_QCOM = 32768;
static const uint32_t GL_STENCIL_BUFFER_BIT0_QCOM = 65536;
static const uint32_t GL_STENCIL_BUFFER_BIT1_QCOM = 131072;
static const uint32_t GL_STENCIL_BUFFER_BIT2_QCOM = 262144;
static const uint32_t GL_STENCIL_BUFFER_BIT3_QCOM = 524288;
static const uint32_t GL_STENCIL_BUFFER_BIT4_QCOM = 1048576;
static const uint32_t GL_STENCIL_BUFFER_BIT5_QCOM = 2097152;
static const uint32_t GL_STENCIL_BUFFER_BIT6_QCOM = 4194304;
static const uint32_t GL_STENCIL_BUFFER_BIT7_QCOM = 8388608;
static const uint32_t GL_MULTISAMPLE_BUFFER_BIT0_QCOM = 16777216;
static const uint32_t GL_MULTISAMPLE_BUFFER_BIT1_QCOM = 33554432;
static const uint32_t GL_MULTISAMPLE_BUFFER_BIT2_QCOM = 67108864;
static const uint32_t GL_MULTISAMPLE_BUFFER_BIT3_QCOM = 134217728;
static const uint32_t GL_MULTISAMPLE_BUFFER_BIT4_QCOM = 268435456;
static const uint32_t GL_MULTISAMPLE_BUFFER_BIT5_QCOM = 536870912;
static const uint32_t GL_MULTISAMPLE_BUFFER_BIT6_QCOM = 1073741824;
static const uint32_t GL_MULTISAMPLE_BUFFER_BIT7_QCOM = 2147483648;
static const uint32_t GL_COLOR_BUFFER_BIT = 16384;
static const uint32_t GL_DEPTH_BUFFER_BIT = 256;
static const uint32_t GL_STENCIL_BUFFER_BIT = 1024;
static const uint32_t GL_MAP_READ_BIT = 1;
static const uint32_t GL_MAP_WRITE_BIT = 2;
static const uint32_t GL_MAP_INVALIDATE_RANGE_BIT = 4;
static const uint32_t GL_MAP_INVALIDATE_BUFFER_BIT = 8;
static const uint32_t GL_MAP_FLUSH_EXPLICIT_BIT = 16;
static const uint32_t GL_MAP_UNSYNCHRONIZED_BIT = 32;
}
namespace SyncCondition {
static const uint32_t GL_SYNC_GPU_COMMANDS_COMPLETE = 37143;
}
namespace ClientWaitSyncSignal {
static const uint32_t GL_ALREADY_SIGNALED = 37146;
static const uint32_t GL_TIMEOUT_EXPIRED = 37147;
static const uint32_t GL_CONDITION_SATISFIED = 37148;
static const uint32_t GL_WAIT_FAILED = 37149;
}
namespace SyncFlags {
static const uint32_t GL_SYNC_FLUSH_COMMANDS_BIT = 1;
}
typedef int32_t Vec2i[2];
typedef int32_t Vec3i[3];
typedef int32_t Vec4i[4];
typedef float Vec2f[2];
typedef float Vec3f[3];
typedef float Vec4f[4];
typedef Vec2f Mat2f[2];
typedef Vec3f Mat3f[3];
typedef Vec4f Mat4f[4];
typedef uint32_t RenderbufferId;
typedef uint32_t TextureId;
typedef uint32_t FramebufferId;
typedef uint32_t BufferId;
typedef uint32_t ShaderId;
typedef uint32_t ProgramId;
typedef uint32_t VertexArrayId;
typedef uint32_t QueryId;
typedef int32_t UniformLocation;
typedef int32_t AttributeLocation;
typedef void* IndicesPointer;
typedef void* VertexPointer;
typedef void* TexturePointer;
typedef void* BufferDataPointer;
typedef uint32_t ContextID;
typedef uint64_t ThreadID;
typedef int EGLBoolean;
typedef int EGLint;
typedef void* EGLConfig;
typedef void* EGLContext;
typedef void* EGLDisplay;
typedef void* EGLSurface;
typedef void* GLXContext;
typedef void* GLXDrawable;
typedef int Bool;
typedef void* HGLRC;
typedef void* HDC;
typedef int BOOL;
typedef int CGLError;
typedef void* CGLPixelFormatObj;
typedef void* CGLContextObj;
typedef void* CGSConnectionID;
typedef int32_t CGSWindowID;
typedef int32_t CGSSurfaceID;
typedef void* ImageOES;
typedef uint64_t SyncObject;
typedef uint8_t GLboolean;
typedef int8_t GLbyte;
typedef uint8_t GLubyte;
typedef char GLchar;
typedef int16_t GLshort;
typedef uint16_t GLushort;
typedef int32_t GLint;
typedef uint32_t GLuint;
typedef int64_t GLint64;
typedef uint64_t GLuint64;
typedef int32_t GLfixed;
typedef uint32_t GLsizei;
struct __GLsync {};
typedef __GLsync* GLsync;
typedef uint16_t GLhalf;
typedef float GLfloat;
typedef float GLclampf;
typedef void GLvoid;
struct VertexAttributeArray {
inline VertexAttributeArray& SetEnabled(bool v) {
mEnabled = v;
return *this;
}
inline VertexAttributeArray& SetSize(uint32_t v) {
mSize = v;
return *this;
}
inline VertexAttributeArray& SetType(uint32_t v) {
mType = v;
return *this;
}
inline VertexAttributeArray& SetNormalized(bool v) {
mNormalized = v;
return *this;
}
inline VertexAttributeArray& SetStride(int32_t v) {
mStride = v;
return *this;
}
inline VertexAttributeArray& SetBuffer(BufferId v) {
mBuffer = v;
return *this;
}
inline VertexAttributeArray& SetPointer(VertexPointer v) {
mPointer = v;
return *this;
}
bool mEnabled;
uint32_t mSize;
uint32_t mType;
bool mNormalized;
int32_t mStride;
BufferId mBuffer;
VertexPointer mPointer;
};
typedef std::unordered_map<AttributeLocation, std::shared_ptr<VertexAttributeArray>>
AttributeLocationToVertexAttributeArray__R;
struct Buffer {
inline Buffer& SetData(Slice<uint8_t> v) {
mData = v;
return *this;
}
inline Buffer& SetSize(int32_t v) {
mSize = v;
return *this;
}
inline Buffer& SetUsage(uint32_t v) {
mUsage = v;
return *this;
}
inline Buffer& SetMappingAccess(uint32_t v) {
mMappingAccess = v;
return *this;
}
inline Buffer& SetMappingOffset(int32_t v) {
mMappingOffset = v;
return *this;
}
inline Buffer& SetMappingData(Slice<uint8_t> v) {
mMappingData = v;
return *this;
}
Slice<uint8_t> mData;
int32_t mSize;
uint32_t mUsage;
uint32_t mMappingAccess;
int32_t mMappingOffset;
Slice<uint8_t> mMappingData;
};
typedef std::unordered_map<BufferId, std::shared_ptr<Buffer>> BufferIdToBuffer__R;
struct Color {
inline Color& SetRed(float v) {
mRed = v;
return *this;
}
inline Color& SetGreen(float v) {
mGreen = v;
return *this;
}
inline Color& SetBlue(float v) {
mBlue = v;
return *this;
}
inline Color& SetAlpha(float v) {
mAlpha = v;
return *this;
}
float mRed;
float mGreen;
float mBlue;
float mAlpha;
};
struct BlendState {
inline BlendState& SetSrcRgbBlendFactor(uint32_t v) {
mSrcRgbBlendFactor = v;
return *this;
}
inline BlendState& SetSrcAlphaBlendFactor(uint32_t v) {
mSrcAlphaBlendFactor = v;
return *this;
}
inline BlendState& SetDstRgbBlendFactor(uint32_t v) {
mDstRgbBlendFactor = v;
return *this;
}
inline BlendState& SetDstAlphaBlendFactor(uint32_t v) {
mDstAlphaBlendFactor = v;
return *this;
}
inline BlendState& SetBlendEquationRgb(uint32_t v) {
mBlendEquationRgb = v;
return *this;
}
inline BlendState& SetBlendEquationAlpha(uint32_t v) {
mBlendEquationAlpha = v;
return *this;
}
inline BlendState& SetBlendColor(Color v) {
mBlendColor = v;
return *this;
}
uint32_t mSrcRgbBlendFactor;
uint32_t mSrcAlphaBlendFactor;
uint32_t mDstRgbBlendFactor;
uint32_t mDstAlphaBlendFactor;
uint32_t mBlendEquationRgb;
uint32_t mBlendEquationAlpha;
Color mBlendColor;
};
typedef std::unordered_map<uint32_t, uint32_t> GLenumToU32;
struct Rect {
inline Rect& SetX(int32_t v) {
mX = v;
return *this;
}
inline Rect& SetY(int32_t v) {
mY = v;
return *this;
}
inline Rect& SetWidth(int32_t v) {
mWidth = v;
return *this;
}
inline Rect& SetHeight(int32_t v) {
mHeight = v;
return *this;
}
int32_t mX;
int32_t mY;
int32_t mWidth;
int32_t mHeight;
};
struct RasterizerState {
inline RasterizerState& SetDepthMask(bool v) {
mDepthMask = v;
return *this;
}
inline RasterizerState& SetDepthTestFunction(uint32_t v) {
mDepthTestFunction = v;
return *this;
}
inline RasterizerState& SetDepthNear(float v) {
mDepthNear = v;
return *this;
}
inline RasterizerState& SetDepthFar(float v) {
mDepthFar = v;
return *this;
}
inline RasterizerState& SetColorMaskRed(bool v) {
mColorMaskRed = v;
return *this;
}
inline RasterizerState& SetColorMaskGreen(bool v) {
mColorMaskGreen = v;
return *this;
}
inline RasterizerState& SetColorMaskBlue(bool v) {
mColorMaskBlue = v;
return *this;
}
inline RasterizerState& SetColorMaskAlpha(bool v) {
mColorMaskAlpha = v;
return *this;
}
inline RasterizerState& SetStencilMask(GLenumToU32 v) {
mStencilMask = v;
return *this;
}
inline RasterizerState& SetViewport(Rect v) {
mViewport = v;
return *this;
}
inline RasterizerState& SetScissor(Rect v) {
mScissor = v;
return *this;
}
inline RasterizerState& SetFrontFace(uint32_t v) {
mFrontFace = v;
return *this;
}
inline RasterizerState& SetCullFace(uint32_t v) {
mCullFace = v;
return *this;
}
inline RasterizerState& SetLineWidth(float v) {
mLineWidth = v;
return *this;
}
inline RasterizerState& SetPolygonOffsetFactor(float v) {
mPolygonOffsetFactor = v;
return *this;
}
inline RasterizerState& SetPolygonOffsetUnits(float v) {
mPolygonOffsetUnits = v;
return *this;
}
inline RasterizerState& SetSampleCoverageValue(float v) {
mSampleCoverageValue = v;
return *this;
}
inline RasterizerState& SetSampleCoverageInvert(bool v) {
mSampleCoverageInvert = v;
return *this;
}
bool mDepthMask;
uint32_t mDepthTestFunction;
float mDepthNear;
float mDepthFar;
bool mColorMaskRed;
bool mColorMaskGreen;
bool mColorMaskBlue;
bool mColorMaskAlpha;
GLenumToU32 mStencilMask;
Rect mViewport;
Rect mScissor;
uint32_t mFrontFace;
uint32_t mCullFace;
float mLineWidth;
float mPolygonOffsetFactor;
float mPolygonOffsetUnits;
float mSampleCoverageValue;
bool mSampleCoverageInvert;
};
struct ClearState {
inline ClearState& SetClearColor(Color v) {
mClearColor = v;
return *this;
}
inline ClearState& SetClearDepth(float v) {
mClearDepth = v;
return *this;
}
inline ClearState& SetClearStencil(int32_t v) {
mClearStencil = v;
return *this;
}
Color mClearColor;
float mClearDepth;
int32_t mClearStencil;
};
typedef std::unordered_map<uint32_t, FramebufferId> GLenumToFramebufferId;
typedef std::unordered_map<uint32_t, RenderbufferId> GLenumToRenderbufferId;
typedef std::unordered_map<uint32_t, BufferId> GLenumToBufferId;
typedef std::unordered_map<uint32_t, TextureId> GLenumToTextureId;
typedef std::unordered_map<uint32_t, GLenumToTextureId> GLenumToGLenumToTextureId;
typedef std::unordered_map<uint32_t, bool> GLenumToBool;
typedef std::unordered_map<uint32_t, int32_t> GLenumToS32;
struct Renderbuffer {
inline Renderbuffer& SetWidth(int32_t v) {
mWidth = v;
return *this;
}
inline Renderbuffer& SetHeight(int32_t v) {
mHeight = v;
return *this;
}
inline Renderbuffer& SetData(Slice<uint8_t> v) {
mData = v;
return *this;
}
inline Renderbuffer& SetFormat(uint32_t v) {
mFormat = v;
return *this;
}
int32_t mWidth;
int32_t mHeight;
Slice<uint8_t> mData;
uint32_t mFormat;
};
typedef std::unordered_map<RenderbufferId, std::shared_ptr<Renderbuffer>>
RenderbufferIdToRenderbuffer__R;
struct Image {
inline Image& SetWidth(int32_t v) {
mWidth = v;
return *this;
}
inline Image& SetHeight(int32_t v) {
mHeight = v;
return *this;
}
inline Image& SetData(Slice<uint8_t> v) {
mData = v;
return *this;
}
inline Image& SetSize(uint32_t v) {
mSize = v;
return *this;
}
inline Image& SetFormat(uint32_t v) {
mFormat = v;
return *this;
}
int32_t mWidth;
int32_t mHeight;
Slice<uint8_t> mData;
uint32_t mSize;
uint32_t mFormat;
};
typedef std::unordered_map<int32_t, Image> S32ToImage;
typedef std::unordered_map<uint32_t, Image> GLenumToImage;
struct CubemapLevel {
inline CubemapLevel& SetFaces(GLenumToImage v) {
mFaces = v;
return *this;
}
GLenumToImage mFaces;
};
typedef std::unordered_map<int32_t, CubemapLevel> S32ToCubemapLevel;
struct Texture {
inline Texture& SetKind(uint32_t v) {
mKind = v;
return *this;
}
inline Texture& SetFormat(uint32_t v) {
mFormat = v;
return *this;
}
inline Texture& SetTexture2D(S32ToImage v) {
mTexture2D = v;
return *this;
}
inline Texture& SetCubemap(S32ToCubemapLevel v) {
mCubemap = v;
return *this;
}
inline Texture& SetMagFilter(uint32_t v) {
mMagFilter = v;
return *this;
}
inline Texture& SetMinFilter(uint32_t v) {
mMinFilter = v;
return *this;
}
inline Texture& SetWrapS(uint32_t v) {
mWrapS = v;
return *this;
}
inline Texture& SetWrapT(uint32_t v) {
mWrapT = v;
return *this;
}
inline Texture& SetSwizzleR(uint32_t v) {
mSwizzleR = v;
return *this;
}
inline Texture& SetSwizzleG(uint32_t v) {
mSwizzleG = v;
return *this;
}
inline Texture& SetSwizzleB(uint32_t v) {
mSwizzleB = v;
return *this;
}
inline Texture& SetSwizzleA(uint32_t v) {
mSwizzleA = v;
return *this;
}
inline Texture& SetMaxAnisotropy(float v) {
mMaxAnisotropy = v;
return *this;
}
uint32_t mKind;
uint32_t mFormat;
S32ToImage mTexture2D;
S32ToCubemapLevel mCubemap;
uint32_t mMagFilter;
uint32_t mMinFilter;
uint32_t mWrapS;
uint32_t mWrapT;
uint32_t mSwizzleR;
uint32_t mSwizzleG;
uint32_t mSwizzleB;
uint32_t mSwizzleA;
float mMaxAnisotropy;
};
typedef std::unordered_map<TextureId, std::shared_ptr<Texture>> TextureIdToTexture__R;
struct FramebufferAttachmentInfo {
inline FramebufferAttachmentInfo& SetObject(uint32_t v) {
mObject = v;
return *this;
}
inline FramebufferAttachmentInfo& SetType(uint32_t v) {
mType = v;
return *this;
}
inline FramebufferAttachmentInfo& SetTextureLevel(int32_t v) {
mTextureLevel = v;
return *this;
}
inline FramebufferAttachmentInfo& SetCubeMapFace(uint32_t v) {
mCubeMapFace = v;
return *this;
}
uint32_t mObject;
uint32_t mType;
int32_t mTextureLevel;
uint32_t mCubeMapFace;
};
typedef std::unordered_map<uint32_t, FramebufferAttachmentInfo> GLenumToFramebufferAttachmentInfo;
struct Framebuffer {
inline Framebuffer& SetAttachments(GLenumToFramebufferAttachmentInfo v) {
mAttachments = v;
return *this;
}
GLenumToFramebufferAttachmentInfo mAttachments;
};
typedef std::unordered_map<FramebufferId, std::shared_ptr<Framebuffer>>
FramebufferIdToFramebuffer__R;
struct Shader {
inline Shader& SetBinary(Slice<uint8_t> v) {
mBinary = v;
return *this;
}
inline Shader& SetCompiled(bool v) {
mCompiled = v;
return *this;
}
inline Shader& SetDeletable(bool v) {
mDeletable = v;
return *this;
}
inline Shader& SetInfoLog(Slice<char> v) {
mInfoLog = v;
return *this;
}
inline Shader& SetSource(std::string v) {
mSource = v;
return *this;
}
inline Shader& SetType(uint32_t v) {
mType = v;
return *this;
}
Slice<uint8_t> mBinary;
bool mCompiled;
bool mDeletable;
Slice<char> mInfoLog;
std::string mSource;
uint32_t mType;
};
typedef std::unordered_map<ShaderId, std::shared_ptr<Shader>> ShaderIdToShader__R;
typedef std::unordered_map<uint32_t, ShaderId> GLenumToShaderId;
typedef std::unordered_map<std::string, AttributeLocation> StringToAttributeLocation;
struct VertexAttribute {
inline VertexAttribute& SetName(Slice<char> v) {
mName = v;
return *this;
}
inline VertexAttribute& SetVectorCount(int32_t v) {
mVectorCount = v;
return *this;
}
inline VertexAttribute& SetType(uint32_t v) {
mType = v;
return *this;
}
Slice<char> mName;
int32_t mVectorCount;
uint32_t mType;
};
typedef std::unordered_map<int32_t, VertexAttribute> S32ToVertexAttribute;
struct Uniform {
inline Uniform& SetName(std::string v) {
mName = v;
return *this;
}
inline Uniform& SetType(uint32_t v) {
mType = v;
return *this;
}
inline Uniform& SetValue(Slice<uint8_t> v) {
mValue = v;
return *this;
}
std::string mName;
uint32_t mType;
Slice<uint8_t> mValue;
};
typedef std::unordered_map<UniformLocation, Uniform> UniformLocationToUniform;
struct Program {
inline Program& SetShaders(GLenumToShaderId v) {
mShaders = v;
return *this;
}
inline Program& SetLinked(bool v) {
mLinked = v;
return *this;
}
inline Program& SetBinary(Slice<uint8_t> v) {
mBinary = v;
return *this;
}
inline Program& SetAttributeBindings(StringToAttributeLocation v) {
mAttributeBindings = v;
return *this;
}
inline Program& SetAttributes(S32ToVertexAttribute v) {
mAttributes = v;
return *this;
}
inline Program& SetUniforms(UniformLocationToUniform v) {
mUniforms = v;
return *this;
}
inline Program& SetInfoLog(Slice<char> v) {
mInfoLog = v;
return *this;
}
GLenumToShaderId mShaders;
bool mLinked;
Slice<uint8_t> mBinary;
StringToAttributeLocation mAttributeBindings;
S32ToVertexAttribute mAttributes;
UniformLocationToUniform mUniforms;
Slice<char> mInfoLog;
};
typedef std::unordered_map<ProgramId, std::shared_ptr<Program>> ProgramIdToProgram__R;
struct VertexArray {};
typedef std::unordered_map<VertexArrayId, std::shared_ptr<VertexArray>>
VertexArrayIdToVertexArray__R;
struct Query {};
typedef std::unordered_map<QueryId, std::shared_ptr<Query>> QueryIdToQuery__R;
struct Objects {
inline Objects& SetRenderbuffers(RenderbufferIdToRenderbuffer__R v) {
mRenderbuffers = v;
return *this;
}
inline Objects& SetTextures(TextureIdToTexture__R v) {
mTextures = v;
return *this;
}
inline Objects& SetFramebuffers(FramebufferIdToFramebuffer__R v) {
mFramebuffers = v;
return *this;
}
inline Objects& SetBuffers(BufferIdToBuffer__R v) {
mBuffers = v;
return *this;
}
inline Objects& SetShaders(ShaderIdToShader__R v) {
mShaders = v;
return *this;
}
inline Objects& SetPrograms(ProgramIdToProgram__R v) {
mPrograms = v;
return *this;
}
inline Objects& SetVertexArrays(VertexArrayIdToVertexArray__R v) {
mVertexArrays = v;
return *this;
}
inline Objects& SetQueries(QueryIdToQuery__R v) {
mQueries = v;
return *this;
}
RenderbufferIdToRenderbuffer__R mRenderbuffers;
TextureIdToTexture__R mTextures;
FramebufferIdToFramebuffer__R mFramebuffers;
BufferIdToBuffer__R mBuffers;
ShaderIdToShader__R mShaders;
ProgramIdToProgram__R mPrograms;
VertexArrayIdToVertexArray__R mVertexArrays;
QueryIdToQuery__R mQueries;
};
struct Context {
inline Context& SetIdentifier(ContextID v) {
mIdentifier = v;
return *this;
}
inline Context& SetBlending(BlendState v) {
mBlending = v;
return *this;
}
inline Context& SetRasterizing(RasterizerState v) {
mRasterizing = v;
return *this;
}
inline Context& SetClearing(ClearState v) {
mClearing = v;
return *this;
}
inline Context& SetBoundFramebuffers(GLenumToFramebufferId v) {
mBoundFramebuffers = v;
return *this;
}
inline Context& SetBoundRenderbuffers(GLenumToRenderbufferId v) {
mBoundRenderbuffers = v;
return *this;
}
inline Context& SetBoundBuffers(GLenumToBufferId v) {
mBoundBuffers = v;
return *this;
}
inline Context& SetBoundProgram(ProgramId v) {
mBoundProgram = v;
return *this;
}
inline Context& SetBoundVertexArray(VertexArrayId v) {
mBoundVertexArray = v;
return *this;
}
inline Context& SetVertexAttributeArrays(AttributeLocationToVertexAttributeArray__R v) {
mVertexAttributeArrays = v;
return *this;
}
inline Context& SetTextureUnits(GLenumToGLenumToTextureId v) {
mTextureUnits = v;
return *this;
}
inline Context& SetActiveTextureUnit(uint32_t v) {
mActiveTextureUnit = v;
return *this;
}
inline Context& SetCapabilities(GLenumToBool v) {
mCapabilities = v;
return *this;
}
inline Context& SetGenerateMipmapHint(uint32_t v) {
mGenerateMipmapHint = v;
return *this;
}
inline Context& SetPixelStorage(GLenumToS32 v) {
mPixelStorage = v;
return *this;
}
inline Context& SetInstances(Objects v) {
mInstances = v;
return *this;
}
inline Context& SetPreserveBuffersOnSwap(bool v) {
mPreserveBuffersOnSwap = v;
return *this;
}
ContextID mIdentifier;
BlendState mBlending;
RasterizerState mRasterizing;
ClearState mClearing;
GLenumToFramebufferId mBoundFramebuffers;
GLenumToRenderbufferId mBoundRenderbuffers;
GLenumToBufferId mBoundBuffers;
ProgramId mBoundProgram;
VertexArrayId mBoundVertexArray;
AttributeLocationToVertexAttributeArray__R mVertexAttributeArrays;
GLenumToGLenumToTextureId mTextureUnits;
uint32_t mActiveTextureUnit;
GLenumToBool mCapabilities;
uint32_t mGenerateMipmapHint;
GLenumToS32 mPixelStorage;
Objects mInstances;
bool mPreserveBuffersOnSwap;
};
typedef std::unordered_map<CGLContextObj, std::shared_ptr<Context>> CGLContextObjToContext__R;
typedef std::unordered_map<EGLContext, std::shared_ptr<Context>> EGLContextToContext__R;
typedef std::unordered_map<GLXContext, std::shared_ptr<Context>> GLXContextToContext__R;
typedef std::unordered_map<HGLRC, std::shared_ptr<Context>> HGLRCToContext__R;
typedef std::unordered_map<ThreadID, std::shared_ptr<Context>> ThreadIDToContext__R;
} // namespace gapii
#endif // GAPII_GLES_TYPES_H