export class WebGLRenderingCommon {
    constructor(context) {
        this._type = 'none';
        this._native = context;
    }
    get native() {
        return this._native;
    }
    get canvas() {
        return this._canvas;
    }
    get type() {
        return this._type;
    }
    // get EXTENSIONS(): number {
    //     return 7939;
    // }
    get DEPTH_BUFFER_BIT() {
        return 0x00000100;
    }
    get STENCIL_BUFFER_BIT() {
        return 0x00000400;
    }
    get COLOR_BUFFER_BIT() {
        return 0x00004000;
    }
    get POINTS() {
        return 0x0000;
    }
    get LINES() {
        return 0x0001;
    }
    get LINE_LOOP() {
        return 0x0002;
    }
    get LINE_STRIP() {
        return 0x0003;
    }
    get TRIANGLES() {
        return 0x0004;
    }
    get TRIANGLE_STRIP() {
        return 0x0005;
    }
    get TRIANGLE_FAN() {
        return 0x0006;
    }
    get ZERO() {
        return 0;
    }
    get ONE() {
        return 1;
    }
    get SRC_COLOR() {
        return 0x0300;
    }
    get ONE_MINUS_SRC_COLOR() {
        return 0x0301;
    }
    get SRC_ALPHA() {
        return 0x0302;
    }
    get ONE_MINUS_SRC_ALPHA() {
        return 0x0303;
    }
    get DST_ALPHA() {
        return 0x0304;
    }
    get ONE_MINUS_DST_ALPHA() {
        return 0x0305;
    }
    get DST_COLOR() {
        return 0x0306;
    }
    get ONE_MINUS_DST_COLOR() {
        return 0x0307;
    }
    get SRC_ALPHA_SATURATE() {
        return 0x0308;
    }
    get CONSTANT_COLOR() {
        return 0x8001;
    }
    get ONE_MINUS_CONSTANT_COLOR() {
        return 0x8002;
    }
    get CONSTANT_ALPHA() {
        return 0x8003;
    }
    get ONE_MINUS_CONSTANT_ALPHA() {
        return 0x8004;
    }
    /* Blending equations */
    get FUNC_ADD() {
        return 0x8006;
    }
    get FUNC_SUBTRACT() {
        return 0x800a;
    }
    get FUNC_REVERSE_SUBTRACT() {
        return 0x800b;
    }
    get BLEND_EQUATION() {
        return 0x8009;
    }
    get BLEND_EQUATION_RGB() {
        return 0x8009;
    }
    get BLEND_EQUATION_ALPHA() {
        return 0x883d;
    }
    get BLEND_DST_RGB() {
        return 0x80c8;
    }
    get BLEND_SRC_RGB() {
        return 0x80c9;
    }
    get BLEND_DST_ALPHA() {
        return 0x80ca;
    }
    get BLEND_SRC_ALPHA() {
        return 0x80cb;
    }
    get BLEND_COLOR() {
        return 0x8005;
    }
    get ARRAY_BUFFER_BINDING() {
        return 0x8894;
    }
    get ELEMENT_ARRAY_BUFFER_BINDING() {
        return 0x8895;
    }
    get LINE_WIDTH() {
        return 0x0b21;
    }
    get ALIASED_POINT_SIZE_RANGE() {
        return 0x846d;
    }
    get ALIASED_LINE_WIDTH_RANGE() {
        return 0x846e;
    }
    get CULL_FACE_MODE() {
        return 0x0b45;
    }
    get FRONT_FACE() {
        return 0x0b46;
    }
    get DEPTH_RANGE() {
        return 0x0b70;
    }
    get DEPTH_WRITEMASK() {
        return 0x0b72;
    }
    get DEPTH_CLEAR_VALUE() {
        return 0x0b73;
    }
    get DEPTH_FUNC() {
        return 0x0b74;
    }
    get STENCIL_CLEAR_VALUE() {
        return 0x0b91;
    }
    get STENCIL_FUNC() {
        return 0x0b92;
    }
    get STENCIL_FAIL() {
        return 0x0b94;
    }
    get STENCIL_PASS_DEPTH_FAIL() {
        return 0x0b95;
    }
    get STENCIL_PASS_DEPTH_PASS() {
        return 0x0b96;
    }
    get STENCIL_REF() {
        return 0x0b97;
    }
    get STENCIL_VALUE_MASK() {
        return 0x0b93;
    }
    get STENCIL_WRITEMASK() {
        return 0x0b98;
    }
    get STENCIL_BACK_FUNC() {
        return 0x8800;
    }
    get STENCIL_BACK_FAIL() {
        return 0x8801;
    }
    get STENCIL_BACK_PASS_DEPTH_FAIL() {
        return 0x8802;
    }
    get STENCIL_BACK_PASS_DEPTH_PASS() {
        return 0x8803;
    }
    get STENCIL_BACK_REF() {
        return 0x8ca3;
    }
    get STENCIL_BACK_VALUE_MASK() {
        return 0x8ca4;
    }
    get STENCIL_BACK_WRITEMASK() {
        return 0x8ca5;
    }
    // getCanvas(): Canvas;
    get VIEWPORT() {
        return 0x0ba2;
    }
    get SCISSOR_BOX() {
        return 0x0c10;
    }
    get COLOR_CLEAR_VALUE() {
        return 0x0c22;
    }
    get COLOR_WRITEMASK() {
        return 0x0c23;
    }
    get UNPACK_ALIGNMENT() {
        return 0x0cf5;
    }
    get PACK_ALIGNMENT() {
        return 0x0d05;
    }
    get MAX_TEXTURE_SIZE() {
        return 0x0d33;
    }
    get MAX_VIEWPORT_DIMS() {
        return 0x0d3a;
    }
    get SUBPIXEL_BITS() {
        return 0x0d50;
    }
    get RED_BITS() {
        return 0x0d52;
    }
    get GREEN_BITS() {
        return 0x0d53;
    }
    get BLUE_BITS() {
        return 0x0d54;
    }
    get ALPHA_BITS() {
        return 0x0d55;
    }
    get DEPTH_BITS() {
        return 0x0d56;
    }
    get STENCIL_BITS() {
        return 0x0d57;
    }
    get POLYGON_OFFSET_UNITS() {
        return 0x2a00;
    }
    get POLYGON_OFFSET_FACTOR() {
        return 0x8038;
    }
    get TEXTURE_BINDING_2D() {
        return 0x8069;
    }
    get SAMPLE_BUFFERS() {
        return 0x80a8;
    }
    get SAMPLES() {
        return 0x80a9;
    }
    get SAMPLE_COVERAGE_VALUE() {
        return 0x80aa;
    }
    get SAMPLE_COVERAGE_INVERT() {
        return 0x80ab;
    }
    get COMPRESSED_TEXTURE_FORMATS() {
        return 0x86a3;
    }
    get VENDOR() {
        return 0x1f00;
    }
    get RENDERER() {
        return 0x1f01;
    }
    get VERSION() {
        return 0x1f02;
    }
    get IMPLEMENTATION_COLOR_READ_TYPE() {
        return 0x8b9a;
    }
    get IMPLEMENTATION_COLOR_READ_FORMAT() {
        return 0x8b9b;
    }
    get BROWSER_DEFAULT_WEBGL() {
        return 0x9244;
    }
    get STATIC_DRAW() {
        return 0x88e4;
    }
    get STREAM_DRAW() {
        return 0x88e0;
    }
    get DYNAMIC_DRAW() {
        return 0x88e8;
    }
    get ARRAY_BUFFER() {
        return 0x8892;
    }
    get ELEMENT_ARRAY_BUFFER() {
        return 0x8893;
    }
    get BUFFER_SIZE() {
        return 0x8764;
    }
    get BUFFER_USAGE() {
        return 0x8765;
    }
    get CURRENT_VERTEX_ATTRIB() {
        return 0x8626;
    }
    get VERTEX_ATTRIB_ARRAY_ENABLED() {
        return 0x8622;
    }
    get VERTEX_ATTRIB_ARRAY_SIZE() {
        return 0x8623;
    }
    get VERTEX_ATTRIB_ARRAY_STRIDE() {
        return 0x8624;
    }
    get VERTEX_ATTRIB_ARRAY_TYPE() {
        return 0x8625;
    }
    get VERTEX_ATTRIB_ARRAY_NORMALIZED() {
        return 0x886a;
    }
    get VERTEX_ATTRIB_ARRAY_POINTER() {
        return 0x8645;
    }
    get VERTEX_ATTRIB_ARRAY_BUFFER_BINDING() {
        return 0x889f;
    }
    get CULL_FACE() {
        return 0x0b44;
    }
    get FRONT() {
        return 0x0404;
    }
    get BACK() {
        return 0x0405;
    }
    get FRONT_AND_BACK() {
        return 0x0408;
    }
    get BLEND() {
        return 0x0be2;
    }
    get DEPTH_TEST() {
        return 0x0b71;
    }
    get DITHER() {
        return 0x0bd0;
    }
    get POLYGON_OFFSET_FILL() {
        return 0x8037;
    }
    get SAMPLE_ALPHA_TO_COVERAGE() {
        return 0x809e;
    }
    get SAMPLE_COVERAGE() {
        return 0x80a0;
    }
    get SCISSOR_TEST() {
        return 0x0c11;
    }
    get STENCIL_TEST() {
        return 0x0b90;
    }
    /* Errors */
    get NO_ERROR() {
        return 0;
    }
    get INVALID_ENUM() {
        return 0x0500;
    }
    get INVALID_VALUE() {
        return 0x0501;
    }
    get INVALID_OPERATION() {
        return 0x0502;
    }
    get OUT_OF_MEMORY() {
        return 0x0505;
    }
    get CONTEXT_LOST_WEBGL() {
        return 0x9242;
    }
    get CW() {
        return 0x0900;
    }
    get CCW() {
        return 0x0901;
    }
    get DONT_CARE() {
        return 0x1100;
    }
    get FASTEST() {
        return 0x1101;
    }
    get NICEST() {
        return 0x1102;
    }
    get GENERATE_MIPMAP_HINT() {
        return 0x8192;
    }
    get BYTE() {
        return 0x1400;
    }
    get UNSIGNED_BYTE() {
        return 0x1401;
    }
    get SHORT() {
        return 0x1402;
    }
    get UNSIGNED_SHORT() {
        return 0x1403;
    }
    get INT() {
        return 0x1404;
    }
    get UNSIGNED_INT() {
        return 0x1405;
    }
    get FLOAT() {
        return 0x1406;
    }
    get DEPTH_COMPONENT() {
        return 0x1902;
    }
    get ALPHA() {
        return 0x1906;
    }
    get RGB() {
        return 0x1907;
    }
    /* Clearing buffers */
    get RGBA() {
        return 0x1908;
    }
    get LUMINANCE() {
        return 0x1909;
    }
    get LUMINANCE_ALPHA() {
        return 0x190a;
    }
    /* Clearing buffers */
    /* Rendering primitives */
    get UNSIGNED_SHORT_4_4_4_4() {
        return 0x8033;
    }
    get UNSIGNED_SHORT_5_5_5_1() {
        return 0x8034;
    }
    get UNSIGNED_SHORT_5_6_5() {
        return 0x8363;
    }
    get FRAGMENT_SHADER() {
        return 0x8b30;
    }
    get VERTEX_SHADER() {
        return 0x8b31;
    }
    get COMPILE_STATUS() {
        return 0x8b81;
    }
    get DELETE_STATUS() {
        return 0x8b80;
    }
    /* Rendering primitives */
    /* Blending modes */
    get LINK_STATUS() {
        return 0x8b82;
    }
    get VALIDATE_STATUS() {
        return 0x8b83;
    }
    get ATTACHED_SHADERS() {
        return 0x8b85;
    }
    get ACTIVE_ATTRIBUTES() {
        return 0x8b89;
    }
    get ACTIVE_UNIFORMS() {
        return 0x8b86;
    }
    get MAX_VERTEX_ATTRIBS() {
        return 0x8869;
    }
    get MAX_VERTEX_UNIFORM_VECTORS() {
        return 0x8dfb;
    }
    get MAX_VARYING_VECTORS() {
        return 0x8dfc;
    }
    get MAX_COMBINED_TEXTURE_IMAGE_UNITS() {
        return 0x8b4d;
    }
    get MAX_VERTEX_TEXTURE_IMAGE_UNITS() {
        return 0x8b4c;
    }
    get MAX_TEXTURE_IMAGE_UNITS() {
        return 0x8872;
    }
    get MAX_FRAGMENT_UNIFORM_VECTORS() {
        return 0x8dfd;
    }
    get SHADER_TYPE() {
        return 0x8b4f;
    }
    get SHADING_LANGUAGE_VERSION() {
        return 0x8b8c;
    }
    get CURRENT_PROGRAM() {
        return 0x8b8d;
    }
    /* Blending modes */
    get NEVER() {
        return 0x0200;
    }
    get LESS() {
        return 0x0201;
    }
    get EQUAL() {
        return 0x0202;
    }
    /* Blending equations */
    /* Getting GL parameter information */
    get LEQUAL() {
        return 0x0203;
    }
    get GREATER() {
        return 0x0204;
    }
    get NOTEQUAL() {
        return 0x0205;
    }
    get GEQUAL() {
        return 0x0206;
    }
    get ALWAYS() {
        return 0x0207;
    }
    get KEEP() {
        return 0x1e00;
    }
    get REPLACE() {
        return 0x1e01;
    }
    get INCR() {
        return 0x1e02;
    }
    get DECR() {
        return 0x1e03;
    }
    get INVERT() {
        return 0x150a;
    }
    get INCR_WRAP() {
        return 0x8507;
    }
    get DECR_WRAP() {
        return 0x8508;
    }
    get NEAREST() {
        return 0x2600;
    }
    get LINEAR() {
        return 0x2601;
    }
    get NEAREST_MIPMAP_NEAREST() {
        return 0x2700;
    }
    get LINEAR_MIPMAP_NEAREST() {
        return 0x2701;
    }
    get NEAREST_MIPMAP_LINEAR() {
        return 0x2702;
    }
    get LINEAR_MIPMAP_LINEAR() {
        return 0x2703;
    }
    get TEXTURE_MAG_FILTER() {
        return 0x2800;
    }
    get TEXTURE_MIN_FILTER() {
        return 0x2801;
    }
    get TEXTURE_WRAP_S() {
        return 0x2802;
    }
    get TEXTURE_WRAP_T() {
        return 0x2803;
    }
    get TEXTURE_2D() {
        return 0x0de1;
    }
    get TEXTURE() {
        return 0x1702;
    }
    get TEXTURE_CUBE_MAP() {
        return 0x8513;
    }
    get TEXTURE_BINDING_CUBE_MAP() {
        return 0x8514;
    }
    get TEXTURE_CUBE_MAP_POSITIVE_X() {
        return 0x8515;
    }
    get TEXTURE_CUBE_MAP_NEGATIVE_X() {
        return 0x8516;
    }
    get TEXTURE_CUBE_MAP_POSITIVE_Y() {
        return 0x8517;
    }
    get TEXTURE_CUBE_MAP_NEGATIVE_Y() {
        return 0x8518;
    }
    get TEXTURE_CUBE_MAP_POSITIVE_Z() {
        return 0x8519;
    }
    get TEXTURE_CUBE_MAP_NEGATIVE_Z() {
        return 0x851a;
    }
    get MAX_CUBE_MAP_TEXTURE_SIZE() {
        return 0x851c;
    }
    get TEXTURE0() {
        return 0x84c0;
    }
    get TEXTURE1() {
        return 0x84c1;
    }
    get TEXTURE2() {
        return 0x84c2;
    }
    get TEXTURE3() {
        return 0x84c3;
    }
    get TEXTURE4() {
        return 0x84c4;
    }
    get TEXTURE5() {
        return 0x84c5;
    }
    get TEXTURE6() {
        return 0x84c6;
    }
    get TEXTURE7() {
        return 0x84c7;
    }
    get TEXTURE8() {
        return 0x84c8;
    }
    get TEXTURE9() {
        return 0x84c9;
    }
    get TEXTURE10() {
        return 0x84ca;
    }
    get TEXTURE11() {
        return 0x84cb;
    }
    get TEXTURE12() {
        return 0x84cc;
    }
    get TEXTURE13() {
        return 0x84cd;
    }
    get TEXTURE14() {
        return 0x84ce;
    }
    get TEXTURE15() {
        return 0x84cf;
    }
    get TEXTURE16() {
        return 0x84d0;
    }
    get TEXTURE17() {
        return 0x84d1;
    }
    get TEXTURE18() {
        return 0x84d2;
    }
    get TEXTURE19() {
        return 0x84d3;
    }
    get TEXTURE20() {
        return 0x84d4;
    }
    get TEXTURE21() {
        return 0x84d5;
    }
    get TEXTURE22() {
        return 0x84d6;
    }
    get TEXTURE23() {
        return 0x84d7;
    }
    get TEXTURE24() {
        return 0x84d8;
    }
    get TEXTURE25() {
        return 0x84d9;
    }
    get TEXTURE26() {
        return 0x84da;
    }
    get TEXTURE27() {
        return 0x84db;
    }
    get TEXTURE28() {
        return 0x84dc;
    }
    get TEXTURE29() {
        return 0x84dd;
    }
    /* Getting GL parameter information */
    /* Buffers */
    get TEXTURE30() {
        return 0x84de;
    }
    get TEXTURE31() {
        return 0x84df;
    }
    get ACTIVE_TEXTURE() {
        return 0x84e0;
    }
    get REPEAT() {
        return 0x2901;
    }
    get CLAMP_TO_EDGE() {
        return 0x812f;
    }
    get MIRRORED_REPEAT() {
        return 0x8370;
    }
    get FLOAT_VEC2() {
        return 0x8b50;
    }
    /* Buffers */
    /* Vertex attributes */
    get FLOAT_VEC3() {
        return 0x8b51;
    }
    get FLOAT_VEC4() {
        return 0x8b52;
    }
    get INT_VEC2() {
        return 0x8b53;
    }
    get INT_VEC3() {
        return 0x8b54;
    }
    get INT_VEC4() {
        return 0x8b55;
    }
    get BOOL() {
        return 0x8b56;
    }
    get BOOL_VEC2() {
        return 0x8b57;
    }
    get BOOL_VEC3() {
        return 0x8b58;
    }
    /* Vertex attributes */
    /* Culling */
    get BOOL_VEC4() {
        return 0x8b59;
    }
    get FLOAT_MAT2() {
        return 0x8b5a;
    }
    get FLOAT_MAT3() {
        return 0x8b5b;
    }
    get FLOAT_MAT4() {
        return 0x8b5c;
    }
    /* Culling */
    /* Enabling and disabling */
    get SAMPLER_2D() {
        return 0x8b5e;
    }
    get SAMPLER_CUBE() {
        return 0x8b60;
    }
    get LOW_FLOAT() {
        return 0x8df0;
    }
    get MEDIUM_FLOAT() {
        return 0x8df1;
    }
    get HIGH_FLOAT() {
        return 0x8df2;
    }
    get LOW_INT() {
        return 0x8df3;
    }
    get MEDIUM_INT() {
        return 0x8df4;
    }
    get HIGH_INT() {
        return 0x8df5;
    }
    /* Enabling and disabling */
    get FRAMEBUFFER() {
        return 0x8d40;
    }
    get RENDERBUFFER() {
        return 0x8d41;
    }
    get RGBA4() {
        return 0x8056;
    }
    get RGB5_A1() {
        return 0x8057;
    }
    get RGB565() {
        return 0x8d62;
    }
    get DEPTH_COMPONENT16() {
        return 0x81a5;
    }
    get STENCIL_INDEX8() {
        return 0x8d48;
    }
    /* Errors */
    /* Front face directions */
    get DEPTH_STENCIL() {
        return 0x84f9;
    }
    get RENDERBUFFER_WIDTH() {
        return 0x8d42;
    }
    /* Front face directions */
    /* Hints */
    get RENDERBUFFER_HEIGHT() {
        return 0x8d43;
    }
    get RENDERBUFFER_INTERNAL_FORMAT() {
        return 0x8d44;
    }
    get RENDERBUFFER_RED_SIZE() {
        return 0x8d50;
    }
    get RENDERBUFFER_GREEN_SIZE() {
        return 0x8d51;
    }
    /* Hints */
    /* Data types */
    get RENDERBUFFER_BLUE_SIZE() {
        return 0x8d52;
    }
    get RENDERBUFFER_ALPHA_SIZE() {
        return 0x8d53;
    }
    get RENDERBUFFER_DEPTH_SIZE() {
        return 0x8d54;
    }
    get RENDERBUFFER_STENCIL_SIZE() {
        return 0x8d55;
    }
    get FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE() {
        return 0x8cd0;
    }
    get FRAMEBUFFER_ATTACHMENT_OBJECT_NAME() {
        return 0x8cd1;
    }
    get FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL() {
        return 0x8cd2;
    }
    /* Data types */
    /* Pixel formats */
    get FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE() {
        return 0x8cd3;
    }
    get COLOR_ATTACHMENT0() {
        return 0x8ce0;
    }
    get DEPTH_ATTACHMENT() {
        return 0x8d00;
    }
    get STENCIL_ATTACHMENT() {
        return 0x8d20;
    }
    get DEPTH_STENCIL_ATTACHMENT() {
        return 0x821a;
    }
    get NONE() {
        return 0;
    }
    /* Pixel formats */
    /* Pixel types */
    // public get UNSIGNED_BYTE(): number { return this.native.UNSIGNED_BYTE }
    get FRAMEBUFFER_COMPLETE() {
        return 0x8cd5;
    }
    get FRAMEBUFFER_INCOMPLETE_ATTACHMENT() {
        return 0x8cd6;
    }
    get FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT() {
        return 0x8cd7;
    }
    /* Pixel types */
    /* Shaders */
    get FRAMEBUFFER_INCOMPLETE_DIMENSIONS() {
        return 0x8cd9;
    }
    get FRAMEBUFFER_UNSUPPORTED() {
        return 0x8cdd;
    }
    get FRAMEBUFFER_BINDING() {
        return 0x8ca6;
    }
    get RENDERBUFFER_BINDING() {
        return 0x8ca7;
    }
    get MAX_RENDERBUFFER_SIZE() {
        return 0x84e8;
    }
    get INVALID_FRAMEBUFFER_OPERATION() {
        return 0x0506;
    }
    get UNPACK_FLIP_Y_WEBGL() {
        return 0x9240;
    }
    get UNPACK_PREMULTIPLY_ALPHA_WEBGL() {
        return 0x9241;
    }
    get UNPACK_COLORSPACE_CONVERSION_WEBGL() {
        return 0x9243;
    }
    toNativeArray(value, type) {
        return [];
    }
}
WebGLRenderingCommon.isDebug = false;
WebGLRenderingCommon.filter = 'both';
//# sourceMappingURL=common.js.map