UNPKG

webgl-dsl

Version:

Thin functional WebGL wrapper with strong typed GLSL DSL

301 lines (300 loc) 13.6 kB
export declare const DEPTH_BUFFER_BIT = 256; export declare const STENCIL_BUFFER_BIT = 1024; export declare const COLOR_BUFFER_BIT = 16384; export declare const POINTS = 0; export declare const LINES = 1; export declare const LINE_LOOP = 2; export declare const LINE_STRIP = 3; export declare const TRIANGLES = 4; export declare const TRIANGLE_STRIP = 5; export declare const TRIANGLE_FAN = 6; export declare const ZERO = 0; export declare const ONE = 1; export declare const SRC_COLOR = 768; export declare const ONE_MINUS_SRC_COLOR = 769; export declare const SRC_ALPHA = 770; export declare const ONE_MINUS_SRC_ALPHA = 771; export declare const DST_ALPHA = 772; export declare const ONE_MINUS_DST_ALPHA = 773; export declare const DST_COLOR = 774; export declare const ONE_MINUS_DST_COLOR = 775; export declare const SRC_ALPHA_SATURATE = 776; export declare const FUNC_ADD = 32774; export declare const BLEND_EQUATION = 32777; export declare const BLEND_EQUATION_RGB = 32777; export declare const BLEND_EQUATION_ALPHA = 34877; export declare const FUNC_SUBTRACT = 32778; export declare const FUNC_REVERSE_SUBTRACT = 32779; export declare const BLEND_DST_RGB = 32968; export declare const BLEND_SRC_RGB = 32969; export declare const BLEND_DST_ALPHA = 32970; export declare const BLEND_SRC_ALPHA = 32971; export declare const CONSTANT_COLOR = 32769; export declare const ONE_MINUS_CONSTANT_COLOR = 32770; export declare const CONSTANT_ALPHA = 32771; export declare const ONE_MINUS_CONSTANT_ALPHA = 32772; export declare const BLEND_COLOR = 32773; export declare const ARRAY_BUFFER = 34962; export declare const ELEMENT_ARRAY_BUFFER = 34963; export declare const ARRAY_BUFFER_BINDING = 34964; export declare const ELEMENT_ARRAY_BUFFER_BINDING = 34965; export declare const STREAM_DRAW = 35040; export declare const STATIC_DRAW = 35044; export declare const DYNAMIC_DRAW = 35048; export declare const BUFFER_SIZE = 34660; export declare const BUFFER_USAGE = 34661; export declare const CURRENT_VERTEX_ATTRIB = 34342; export declare const FRONT = 1028; export declare const BACK = 1029; export declare const FRONT_AND_BACK = 1032; export declare const CULL_FACE = 2884; export declare const BLEND = 3042; export declare const DITHER = 3024; export declare const STENCIL_TEST = 2960; export declare const DEPTH_TEST = 2929; export declare const SCISSOR_TEST = 3089; export declare const POLYGON_OFFSET_FILL = 32823; export declare const SAMPLE_ALPHA_TO_COVERAGE = 32926; export declare const SAMPLE_COVERAGE = 32928; export declare const NO_ERROR = 0; export declare const INVALID_ENUM = 1280; export declare const INVALID_VALUE = 1281; export declare const INVALID_OPERATION = 1282; export declare const OUT_OF_MEMORY = 1285; export declare const CW = 2304; export declare const CCW = 2305; export declare const LINE_WIDTH = 2849; export declare const ALIASED_POINT_SIZE_RANGE = 33901; export declare const ALIASED_LINE_WIDTH_RANGE = 33902; export declare const CULL_FACE_MODE = 2885; export declare const FRONT_FACE = 2886; export declare const DEPTH_RANGE = 2928; export declare const DEPTH_WRITEMASK = 2930; export declare const DEPTH_CLEAR_VALUE = 2931; export declare const DEPTH_FUNC = 2932; export declare const STENCIL_CLEAR_VALUE = 2961; export declare const STENCIL_FUNC = 2962; export declare const STENCIL_FAIL = 2964; export declare const STENCIL_PASS_DEPTH_FAIL = 2965; export declare const STENCIL_PASS_DEPTH_PASS = 2966; export declare const STENCIL_REF = 2967; export declare const STENCIL_VALUE_MASK = 2963; export declare const STENCIL_WRITEMASK = 2968; export declare const STENCIL_BACK_FUNC = 34816; export declare const STENCIL_BACK_FAIL = 34817; export declare const STENCIL_BACK_PASS_DEPTH_FAIL = 34818; export declare const STENCIL_BACK_PASS_DEPTH_PASS = 34819; export declare const STENCIL_BACK_REF = 36003; export declare const STENCIL_BACK_VALUE_MASK = 36004; export declare const STENCIL_BACK_WRITEMASK = 36005; export declare const VIEWPORT = 2978; export declare const SCISSOR_BOX = 3088; export declare const COLOR_CLEAR_VALUE = 3106; export declare const COLOR_WRITEMASK = 3107; export declare const UNPACK_ALIGNMENT = 3317; export declare const PACK_ALIGNMENT = 3333; export declare const MAX_TEXTURE_SIZE = 3379; export declare const MAX_VIEWPORT_DIMS = 3386; export declare const SUBPIXEL_BITS = 3408; export declare const RED_BITS = 3410; export declare const GREEN_BITS = 3411; export declare const BLUE_BITS = 3412; export declare const ALPHA_BITS = 3413; export declare const DEPTH_BITS = 3414; export declare const STENCIL_BITS = 3415; export declare const POLYGON_OFFSET_UNITS = 10752; export declare const POLYGON_OFFSET_FACTOR = 32824; export declare const TEXTURE_BINDING_2D = 32873; export declare const SAMPLE_BUFFERS = 32936; export declare const SAMPLES = 32937; export declare const SAMPLE_COVERAGE_VALUE = 32938; export declare const SAMPLE_COVERAGE_INVERT = 32939; export declare const COMPRESSED_TEXTURE_FORMATS = 34467; export declare const DONT_CARE = 4352; export declare const FASTEST = 4353; export declare const NICEST = 4354; export declare const GENERATE_MIPMAP_HINT = 33170; export declare const BYTE = 5120; export declare const UNSIGNED_BYTE = 5121; export declare const SHORT = 5122; export declare const UNSIGNED_SHORT = 5123; export declare const INT = 5124; export declare const UNSIGNED_INT = 5125; export declare const FLOAT = 5126; export declare const DEPTH_COMPONENT = 6402; export declare const ALPHA = 6406; export declare const RGB = 6407; export declare const RGBA = 6408; export declare const LUMINANCE = 6409; export declare const LUMINANCE_ALPHA = 6410; export declare const UNSIGNED_SHORT_4_4_4_4 = 32819; export declare const UNSIGNED_SHORT_5_5_5_1 = 32820; export declare const UNSIGNED_SHORT_5_6_5 = 33635; export declare const FRAGMENT_SHADER = 35632; export declare const VERTEX_SHADER = 35633; export declare const MAX_VERTEX_ATTRIBS = 34921; export declare const MAX_VERTEX_UNIFORM_VECTORS = 36347; export declare const MAX_VARYING_VECTORS = 36348; export declare const MAX_COMBINED_TEXTURE_IMAGE_UNITS = 35661; export declare const MAX_VERTEX_TEXTURE_IMAGE_UNITS = 35660; export declare const MAX_TEXTURE_IMAGE_UNITS = 34930; export declare const MAX_FRAGMENT_UNIFORM_VECTORS = 36349; export declare const SHADER_TYPE = 35663; export declare const DELETE_STATUS = 35712; export declare const LINK_STATUS = 35714; export declare const VALIDATE_STATUS = 35715; export declare const ATTACHED_SHADERS = 35717; export declare const ACTIVE_UNIFORMS = 35718; export declare const ACTIVE_ATTRIBUTES = 35721; export declare const SHADING_LANGUAGE_VERSION = 35724; export declare const CURRENT_PROGRAM = 35725; export declare const NEVER = 512; export declare const LESS = 513; export declare const EQUAL = 514; export declare const LEQUAL = 515; export declare const GREATER = 516; export declare const NOTEQUAL = 517; export declare const GEQUAL = 518; export declare const ALWAYS = 519; export declare const KEEP = 7680; export declare const REPLACE = 7681; export declare const INCR = 7682; export declare const DECR = 7683; export declare const INVERT = 5386; export declare const INCR_WRAP = 34055; export declare const DECR_WRAP = 34056; export declare const VENDOR = 7936; export declare const RENDERER = 7937; export declare const VERSION = 7938; export declare const NEAREST = 9728; export declare const LINEAR = 9729; export declare const NEAREST_MIPMAP_NEAREST = 9984; export declare const LINEAR_MIPMAP_NEAREST = 9985; export declare const NEAREST_MIPMAP_LINEAR = 9986; export declare const LINEAR_MIPMAP_LINEAR = 9987; export declare const TEXTURE_MAG_FILTER = 10240; export declare const TEXTURE_MIN_FILTER = 10241; export declare const TEXTURE_WRAP_S = 10242; export declare const TEXTURE_WRAP_T = 10243; export declare const TEXTURE_2D = 3553; export declare const TEXTURE = 5890; export declare const TEXTURE_CUBE_MAP = 34067; export declare const TEXTURE_BINDING_CUBE_MAP = 34068; export declare const TEXTURE_CUBE_MAP_POSITIVE_X = 34069; export declare const TEXTURE_CUBE_MAP_NEGATIVE_X = 34070; export declare const TEXTURE_CUBE_MAP_POSITIVE_Y = 34071; export declare const TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072; export declare const TEXTURE_CUBE_MAP_POSITIVE_Z = 34073; export declare const TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074; export declare const MAX_CUBE_MAP_TEXTURE_SIZE = 34076; export declare const TEXTURE0 = 33984; export declare const TEXTURE1 = 33985; export declare const TEXTURE2 = 33986; export declare const TEXTURE3 = 33987; export declare const TEXTURE4 = 33988; export declare const TEXTURE5 = 33989; export declare const TEXTURE6 = 33990; export declare const TEXTURE7 = 33991; export declare const TEXTURE8 = 33992; export declare const TEXTURE9 = 33993; export declare const TEXTURE10 = 33994; export declare const TEXTURE11 = 33995; export declare const TEXTURE12 = 33996; export declare const TEXTURE13 = 33997; export declare const TEXTURE14 = 33998; export declare const TEXTURE15 = 33999; export declare const TEXTURE16 = 34000; export declare const TEXTURE17 = 34001; export declare const TEXTURE18 = 34002; export declare const TEXTURE19 = 34003; export declare const TEXTURE20 = 34004; export declare const TEXTURE21 = 34005; export declare const TEXTURE22 = 34006; export declare const TEXTURE23 = 34007; export declare const TEXTURE24 = 34008; export declare const TEXTURE25 = 34009; export declare const TEXTURE26 = 34010; export declare const TEXTURE27 = 34011; export declare const TEXTURE28 = 34012; export declare const TEXTURE29 = 34013; export declare const TEXTURE30 = 34014; export declare const TEXTURE31 = 34015; export declare const ACTIVE_TEXTURE = 34016; export declare const REPEAT = 10497; export declare const CLAMP_TO_EDGE = 33071; export declare const MIRRORED_REPEAT = 33648; export declare const FLOAT_VEC2 = 35664; export declare const FLOAT_VEC3 = 35665; export declare const FLOAT_VEC4 = 35666; export declare const INT_VEC2 = 35667; export declare const INT_VEC3 = 35668; export declare const INT_VEC4 = 35669; export declare const BOOL = 35670; export declare const BOOL_VEC2 = 35671; export declare const BOOL_VEC3 = 35672; export declare const BOOL_VEC4 = 35673; export declare const FLOAT_MAT2 = 35674; export declare const FLOAT_MAT3 = 35675; export declare const FLOAT_MAT4 = 35676; export declare const SAMPLER_2D = 35678; export declare const SAMPLER_CUBE = 35680; export declare const VERTEX_ATTRIB_ARRAY_ENABLED = 34338; export declare const VERTEX_ATTRIB_ARRAY_SIZE = 34339; export declare const VERTEX_ATTRIB_ARRAY_STRIDE = 34340; export declare const VERTEX_ATTRIB_ARRAY_TYPE = 34341; export declare const VERTEX_ATTRIB_ARRAY_NORMALIZED = 34922; export declare const VERTEX_ATTRIB_ARRAY_POINTER = 34373; export declare const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 34975; export declare const IMPLEMENTATION_COLOR_READ_TYPE = 35738; export declare const IMPLEMENTATION_COLOR_READ_FORMAT = 35739; export declare const COMPILE_STATUS = 35713; export declare const LOW_FLOAT = 36336; export declare const MEDIUM_FLOAT = 36337; export declare const HIGH_FLOAT = 36338; export declare const LOW_INT = 36339; export declare const MEDIUM_INT = 36340; export declare const HIGH_INT = 36341; export declare const FRAMEBUFFER = 36160; export declare const RENDERBUFFER = 36161; export declare const RGBA4 = 32854; export declare const RGB5_A1 = 32855; export declare const RGB565 = 36194; export declare const DEPTH_COMPONENT16 = 33189; export declare const STENCIL_INDEX8 = 36168; export declare const DEPTH_STENCIL = 34041; export declare const RENDERBUFFER_WIDTH = 36162; export declare const RENDERBUFFER_HEIGHT = 36163; export declare const RENDERBUFFER_INTERNAL_FORMAT = 36164; export declare const RENDERBUFFER_RED_SIZE = 36176; export declare const RENDERBUFFER_GREEN_SIZE = 36177; export declare const RENDERBUFFER_BLUE_SIZE = 36178; export declare const RENDERBUFFER_ALPHA_SIZE = 36179; export declare const RENDERBUFFER_DEPTH_SIZE = 36180; export declare const RENDERBUFFER_STENCIL_SIZE = 36181; export declare const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 36048; export declare const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 36049; export declare const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 36050; export declare const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 36051; export declare const COLOR_ATTACHMENT0 = 36064; export declare const DEPTH_ATTACHMENT = 36096; export declare const STENCIL_ATTACHMENT = 36128; export declare const DEPTH_STENCIL_ATTACHMENT = 33306; export declare const NONE = 0; export declare const FRAMEBUFFER_COMPLETE = 36053; export declare const FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 36054; export declare const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 36055; export declare const FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 36057; export declare const FRAMEBUFFER_UNSUPPORTED = 36061; export declare const FRAMEBUFFER_BINDING = 36006; export declare const RENDERBUFFER_BINDING = 36007; export declare const MAX_RENDERBUFFER_SIZE = 34024; export declare const INVALID_FRAMEBUFFER_OPERATION = 1286; export declare const UNPACK_FLIP_Y_WEBGL = 37440; export declare const UNPACK_PREMULTIPLY_ALPHA_WEBGL = 37441; export declare const CONTEXT_LOST_WEBGL = 37442; export declare const UNPACK_COLORSPACE_CONVERSION_WEBGL = 37443; export declare const BROWSER_DEFAULT_WEBGL = 37444; export declare const SRGB_EXT = 35904; export declare const SRGB_ALPHA_EXT = 35906; export declare const SRGB8_ALPHA8_EXT = 35907; export declare const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 33296;