Skip to content

Interface: WebGLRenderingContext ​

Defined in: types/desktop-engine.d.ts:1989

WebGL 1 rendering context (WebGLRenderingContext), backed by OpenGL ES 2.0; see WebGL2RenderingContext for WebGL 2

Extended by ​

Properties ​

ACTIVE_ATTRIBUTE_MAX_LENGTH ​

ts
readonly ACTIVE_ATTRIBUTE_MAX_LENGTH: number;

Defined in: types/desktop-engine.d.ts:2590

Constant GL_ACTIVE_ATTRIBUTE_MAX_LENGTH


ACTIVE_ATTRIBUTES ​

ts
readonly ACTIVE_ATTRIBUTES: number;

Defined in: types/desktop-engine.d.ts:2588

Constant GL_ACTIVE_ATTRIBUTES


ACTIVE_TEXTURE ​

ts
readonly ACTIVE_TEXTURE: number;

Defined in: types/desktop-engine.d.ts:2738

Constant GL_ACTIVE_TEXTURE


ACTIVE_UNIFORM_MAX_LENGTH ​

ts
readonly ACTIVE_UNIFORM_MAX_LENGTH: number;

Defined in: types/desktop-engine.d.ts:2586

Constant GL_ACTIVE_UNIFORM_MAX_LENGTH


ACTIVE_UNIFORMS ​

ts
readonly ACTIVE_UNIFORMS: number;

Defined in: types/desktop-engine.d.ts:2584

Constant GL_ACTIVE_UNIFORMS


ALIASED_LINE_WIDTH_RANGE ​

ts
readonly ALIASED_LINE_WIDTH_RANGE: number;

Defined in: types/desktop-engine.d.ts:2422

Constant GL_ALIASED_LINE_WIDTH_RANGE


ALIASED_POINT_SIZE_RANGE ​

ts
readonly ALIASED_POINT_SIZE_RANGE: number;

Defined in: types/desktop-engine.d.ts:2420

Constant GL_ALIASED_POINT_SIZE_RANGE


ALPHA ​

ts
readonly ALPHA: number;

Defined in: types/desktop-engine.d.ts:2540

Constant GL_ALPHA


ALPHA_BITS ​

ts
readonly ALPHA_BITS: number;

Defined in: types/desktop-engine.d.ts:2490

Constant GL_ALPHA_BITS


ALWAYS ​

ts
readonly ALWAYS: number;

Defined in: types/desktop-engine.d.ts:2610

Constant GL_ALWAYS


ARRAY_BUFFER ​

ts
readonly ARRAY_BUFFER: number;

Defined in: types/desktop-engine.d.ts:2358

Constant GL_ARRAY_BUFFER


ARRAY_BUFFER_BINDING ​

ts
readonly ARRAY_BUFFER_BINDING: number;

Defined in: types/desktop-engine.d.ts:2362

Constant GL_ARRAY_BUFFER_BINDING


ATTACHED_SHADERS ​

ts
readonly ATTACHED_SHADERS: number;

Defined in: types/desktop-engine.d.ts:2582

Constant GL_ATTACHED_SHADERS


BACK ​

ts
readonly BACK: number;

Defined in: types/desktop-engine.d.ts:2380

Constant GL_BACK


BLEND ​

ts
readonly BLEND: number;

Defined in: types/desktop-engine.d.ts:2388

Constant GL_BLEND


BLEND_COLOR ​

ts
readonly BLEND_COLOR: number;

Defined in: types/desktop-engine.d.ts:2356

Constant GL_BLEND_COLOR


BLEND_DST_ALPHA ​

ts
readonly BLEND_DST_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2344

Constant GL_BLEND_DST_ALPHA


BLEND_DST_RGB ​

ts
readonly BLEND_DST_RGB: number;

Defined in: types/desktop-engine.d.ts:2340

Constant GL_BLEND_DST_RGB


BLEND_EQUATION ​

ts
readonly BLEND_EQUATION: number;

Defined in: types/desktop-engine.d.ts:2330

Constant GL_BLEND_EQUATION


BLEND_EQUATION_ALPHA ​

ts
readonly BLEND_EQUATION_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2334

Constant GL_BLEND_EQUATION_ALPHA


BLEND_EQUATION_RGB ​

ts
readonly BLEND_EQUATION_RGB: number;

Defined in: types/desktop-engine.d.ts:2332

Constant GL_BLEND_EQUATION_RGB


BLEND_SRC_ALPHA ​

ts
readonly BLEND_SRC_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2346

Constant GL_BLEND_SRC_ALPHA


BLEND_SRC_RGB ​

ts
readonly BLEND_SRC_RGB: number;

Defined in: types/desktop-engine.d.ts:2342

Constant GL_BLEND_SRC_RGB


BLUE_BITS ​

ts
readonly BLUE_BITS: number;

Defined in: types/desktop-engine.d.ts:2488

Constant GL_BLUE_BITS


BOOL ​

ts
readonly BOOL: number;

Defined in: types/desktop-engine.d.ts:2758

Constant GL_BOOL


BOOL_VEC2 ​

ts
readonly BOOL_VEC2: number;

Defined in: types/desktop-engine.d.ts:2760

Constant GL_BOOL_VEC2


BOOL_VEC3 ​

ts
readonly BOOL_VEC3: number;

Defined in: types/desktop-engine.d.ts:2762

Constant GL_BOOL_VEC3


BOOL_VEC4 ​

ts
readonly BOOL_VEC4: number;

Defined in: types/desktop-engine.d.ts:2764

Constant GL_BOOL_VEC4


BROWSER_DEFAULT_WEBGL ​

ts
readonly BROWSER_DEFAULT_WEBGL: number;

Defined in: types/desktop-engine.d.ts:2898

Constant GL_BROWSER_DEFAULT_WEBGL


BUFFER_SIZE ​

ts
readonly BUFFER_SIZE: number;

Defined in: types/desktop-engine.d.ts:2372

Constant GL_BUFFER_SIZE


BUFFER_USAGE ​

ts
readonly BUFFER_USAGE: number;

Defined in: types/desktop-engine.d.ts:2374

Constant GL_BUFFER_USAGE


BYTE ​

ts
readonly BYTE: number;

Defined in: types/desktop-engine.d.ts:2522

Constant GL_BYTE


canvas ​

ts
readonly canvas: Canvas | null;

Defined in: types/desktop-engine.d.ts:1991

The owning canvas


CCW ​

ts
readonly CCW: number;

Defined in: types/desktop-engine.d.ts:2416

Constant GL_CCW


CLAMP_TO_EDGE ​

ts
readonly CLAMP_TO_EDGE: number;

Defined in: types/desktop-engine.d.ts:2742

Constant GL_CLAMP_TO_EDGE


COLOR_ATTACHMENT0 ​

ts
readonly COLOR_ATTACHMENT0: number;

Defined in: types/desktop-engine.d.ts:2862

Constant GL_COLOR_ATTACHMENT0


COLOR_BUFFER_BIT ​

ts
readonly COLOR_BUFFER_BIT: number;

Defined in: types/desktop-engine.d.ts:2286

Constant GL_COLOR_BUFFER_BIT


COLOR_CLEAR_VALUE ​

ts
readonly COLOR_CLEAR_VALUE: number;

Defined in: types/desktop-engine.d.ts:2470

Constant GL_COLOR_CLEAR_VALUE


COLOR_WRITEMASK ​

ts
readonly COLOR_WRITEMASK: number;

Defined in: types/desktop-engine.d.ts:2472

Constant GL_COLOR_WRITEMASK


COMPILE_STATUS ​

ts
readonly COMPILE_STATUS: number;

Defined in: types/desktop-engine.d.ts:2794

Constant GL_COMPILE_STATUS


COMPRESSED_TEXTURE_FORMATS ​

ts
readonly COMPRESSED_TEXTURE_FORMATS: number;

Defined in: types/desktop-engine.d.ts:2512

Constant GL_COMPRESSED_TEXTURE_FORMATS


CONSTANT_ALPHA ​

ts
readonly CONSTANT_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2352

Constant GL_CONSTANT_ALPHA


CONSTANT_COLOR ​

ts
readonly CONSTANT_COLOR: number;

Defined in: types/desktop-engine.d.ts:2348

Constant GL_CONSTANT_COLOR


CONTEXT_LOST_WEBGL ​

ts
readonly CONTEXT_LOST_WEBGL: number;

Defined in: types/desktop-engine.d.ts:2894

Constant GL_CONTEXT_LOST_WEBGL


CULL_FACE ​

ts
readonly CULL_FACE: number;

Defined in: types/desktop-engine.d.ts:2386

Constant GL_CULL_FACE


CULL_FACE_MODE ​

ts
readonly CULL_FACE_MODE: number;

Defined in: types/desktop-engine.d.ts:2424

Constant GL_CULL_FACE_MODE


CURRENT_PROGRAM ​

ts
readonly CURRENT_PROGRAM: number;

Defined in: types/desktop-engine.d.ts:2594

Constant GL_CURRENT_PROGRAM


CURRENT_VERTEX_ATTRIB ​

ts
readonly CURRENT_VERTEX_ATTRIB: number;

Defined in: types/desktop-engine.d.ts:2376

Constant GL_CURRENT_VERTEX_ATTRIB


CW ​

ts
readonly CW: number;

Defined in: types/desktop-engine.d.ts:2414

Constant GL_CW


DECR ​

ts
readonly DECR: number;

Defined in: types/desktop-engine.d.ts:2618

Constant GL_DECR


DECR_WRAP ​

ts
readonly DECR_WRAP: number;

Defined in: types/desktop-engine.d.ts:2624

Constant GL_DECR_WRAP


DELETE_STATUS ​

ts
readonly DELETE_STATUS: number;

Defined in: types/desktop-engine.d.ts:2576

Constant GL_DELETE_STATUS


DEPTH_ATTACHMENT ​

ts
readonly DEPTH_ATTACHMENT: number;

Defined in: types/desktop-engine.d.ts:2864

Constant GL_DEPTH_ATTACHMENT


DEPTH_BITS ​

ts
readonly DEPTH_BITS: number;

Defined in: types/desktop-engine.d.ts:2492

Constant GL_DEPTH_BITS


DEPTH_BUFFER_BIT ​

ts
readonly DEPTH_BUFFER_BIT: number;

Defined in: types/desktop-engine.d.ts:2282

Constant GL_DEPTH_BUFFER_BIT


DEPTH_CLEAR_VALUE ​

ts
readonly DEPTH_CLEAR_VALUE: number;

Defined in: types/desktop-engine.d.ts:2432

Constant GL_DEPTH_CLEAR_VALUE


DEPTH_COMPONENT ​

ts
readonly DEPTH_COMPONENT: number;

Defined in: types/desktop-engine.d.ts:2538

Constant GL_DEPTH_COMPONENT


DEPTH_COMPONENT16 ​

ts
readonly DEPTH_COMPONENT16: number;

Defined in: types/desktop-engine.d.ts:2828

Constant GL_DEPTH_COMPONENT16


DEPTH_FUNC ​

ts
readonly DEPTH_FUNC: number;

Defined in: types/desktop-engine.d.ts:2434

Constant GL_DEPTH_FUNC


DEPTH_RANGE ​

ts
readonly DEPTH_RANGE: number;

Defined in: types/desktop-engine.d.ts:2428

Constant GL_DEPTH_RANGE


DEPTH_STENCIL ​

ts
readonly DEPTH_STENCIL: number;

Defined in: types/desktop-engine.d.ts:2834

Constant DEPTH_STENCIL (its actual value is GL_DEPTH_STENCIL_OES)


DEPTH_STENCIL_ATTACHMENT ​

ts
readonly DEPTH_STENCIL_ATTACHMENT: number;

Defined in: types/desktop-engine.d.ts:2868

Constant GL_DEPTH_STENCIL_ATTACHMENT


DEPTH_TEST ​

ts
readonly DEPTH_TEST: number;

Defined in: types/desktop-engine.d.ts:2394

Constant GL_DEPTH_TEST


DEPTH_WRITEMASK ​

ts
readonly DEPTH_WRITEMASK: number;

Defined in: types/desktop-engine.d.ts:2430

Constant GL_DEPTH_WRITEMASK


DITHER ​

ts
readonly DITHER: number;

Defined in: types/desktop-engine.d.ts:2390

Constant GL_DITHER


DONT_CARE ​

ts
readonly DONT_CARE: number;

Defined in: types/desktop-engine.d.ts:2514

Constant GL_DONT_CARE


drawingBufferHeight ​

ts
readonly drawingBufferHeight: number;

Defined in: types/desktop-engine.d.ts:1995

Drawing buffer height


drawingBufferWidth ​

ts
readonly drawingBufferWidth: number;

Defined in: types/desktop-engine.d.ts:1993

Drawing buffer width


DST_ALPHA ​

ts
readonly DST_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2318

Constant GL_DST_ALPHA


DST_COLOR ​

ts
readonly DST_COLOR: number;

Defined in: types/desktop-engine.d.ts:2322

Constant GL_DST_COLOR


DYNAMIC_DRAW ​

ts
readonly DYNAMIC_DRAW: number;

Defined in: types/desktop-engine.d.ts:2370

Constant GL_DYNAMIC_DRAW


ELEMENT_ARRAY_BUFFER ​

ts
readonly ELEMENT_ARRAY_BUFFER: number;

Defined in: types/desktop-engine.d.ts:2360

Constant GL_ELEMENT_ARRAY_BUFFER


ELEMENT_ARRAY_BUFFER_BINDING ​

ts
readonly ELEMENT_ARRAY_BUFFER_BINDING: number;

Defined in: types/desktop-engine.d.ts:2364

Constant GL_ELEMENT_ARRAY_BUFFER_BINDING


EQUAL ​

ts
readonly EQUAL: number;

Defined in: types/desktop-engine.d.ts:2600

Constant GL_EQUAL


EXTENSIONS ​

ts
readonly EXTENSIONS: number;

Defined in: types/desktop-engine.d.ts:2632

Constant GL_EXTENSIONS


FALSE ​

ts
readonly FALSE: number;

Defined in: types/desktop-engine.d.ts:2288

Constant GL_FALSE


FASTEST ​

ts
readonly FASTEST: number;

Defined in: types/desktop-engine.d.ts:2516

Constant GL_FASTEST


FIXED ​

ts
readonly FIXED: number;

Defined in: types/desktop-engine.d.ts:2536

Constant GL_FIXED


FLOAT ​

ts
readonly FLOAT: number;

Defined in: types/desktop-engine.d.ts:2534

Constant GL_FLOAT


FLOAT_MAT2 ​

ts
readonly FLOAT_MAT2: number;

Defined in: types/desktop-engine.d.ts:2766

Constant GL_FLOAT_MAT2


FLOAT_MAT3 ​

ts
readonly FLOAT_MAT3: number;

Defined in: types/desktop-engine.d.ts:2768

Constant GL_FLOAT_MAT3


FLOAT_MAT4 ​

ts
readonly FLOAT_MAT4: number;

Defined in: types/desktop-engine.d.ts:2770

Constant GL_FLOAT_MAT4


FLOAT_VEC2 ​

ts
readonly FLOAT_VEC2: number;

Defined in: types/desktop-engine.d.ts:2746

Constant GL_FLOAT_VEC2


FLOAT_VEC3 ​

ts
readonly FLOAT_VEC3: number;

Defined in: types/desktop-engine.d.ts:2748

Constant GL_FLOAT_VEC3


FLOAT_VEC4 ​

ts
readonly FLOAT_VEC4: number;

Defined in: types/desktop-engine.d.ts:2750

Constant GL_FLOAT_VEC4


FRAGMENT_SHADER ​

ts
readonly FRAGMENT_SHADER: number;

Defined in: types/desktop-engine.d.ts:2556

Constant GL_FRAGMENT_SHADER


FRAMEBUFFER ​

ts
readonly FRAMEBUFFER: number;

Defined in: types/desktop-engine.d.ts:2818

Constant GL_FRAMEBUFFER


FRAMEBUFFER_ATTACHMENT_OBJECT_NAME ​

ts
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;

Defined in: types/desktop-engine.d.ts:2856

Constant GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME


FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE ​

ts
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;

Defined in: types/desktop-engine.d.ts:2854

Constant GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE


FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE ​

ts
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;

Defined in: types/desktop-engine.d.ts:2860

Constant GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE


FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL ​

ts
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;

Defined in: types/desktop-engine.d.ts:2858

Constant GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL


FRAMEBUFFER_BINDING ​

ts
readonly FRAMEBUFFER_BINDING: number;

Defined in: types/desktop-engine.d.ts:2882

Constant GL_FRAMEBUFFER_BINDING


FRAMEBUFFER_COMPLETE ​

ts
readonly FRAMEBUFFER_COMPLETE: number;

Defined in: types/desktop-engine.d.ts:2872

Constant GL_FRAMEBUFFER_COMPLETE


FRAMEBUFFER_INCOMPLETE_ATTACHMENT ​

ts
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;

Defined in: types/desktop-engine.d.ts:2874

Constant GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT


FRAMEBUFFER_INCOMPLETE_DIMENSIONS ​

ts
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;

Defined in: types/desktop-engine.d.ts:2878

Constant GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS


FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT ​

ts
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;

Defined in: types/desktop-engine.d.ts:2876

Constant GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT


FRAMEBUFFER_UNSUPPORTED ​

ts
readonly FRAMEBUFFER_UNSUPPORTED: number;

Defined in: types/desktop-engine.d.ts:2880

Constant GL_FRAMEBUFFER_UNSUPPORTED


FRONT ​

ts
readonly FRONT: number;

Defined in: types/desktop-engine.d.ts:2378

Constant GL_FRONT


FRONT_AND_BACK ​

ts
readonly FRONT_AND_BACK: number;

Defined in: types/desktop-engine.d.ts:2382

Constant GL_FRONT_AND_BACK


FRONT_FACE ​

ts
readonly FRONT_FACE: number;

Defined in: types/desktop-engine.d.ts:2426

Constant GL_FRONT_FACE


FUNC_ADD ​

ts
readonly FUNC_ADD: number;

Defined in: types/desktop-engine.d.ts:2328

Constant GL_FUNC_ADD


FUNC_REVERSE_SUBTRACT ​

ts
readonly FUNC_REVERSE_SUBTRACT: number;

Defined in: types/desktop-engine.d.ts:2338

Constant GL_FUNC_REVERSE_SUBTRACT


FUNC_SUBTRACT ​

ts
readonly FUNC_SUBTRACT: number;

Defined in: types/desktop-engine.d.ts:2336

Constant GL_FUNC_SUBTRACT


GENERATE_MIPMAP_HINT ​

ts
readonly GENERATE_MIPMAP_HINT: number;

Defined in: types/desktop-engine.d.ts:2520

Constant GL_GENERATE_MIPMAP_HINT


GEQUAL ​

ts
readonly GEQUAL: number;

Defined in: types/desktop-engine.d.ts:2608

Constant GL_GEQUAL


GREATER ​

ts
readonly GREATER: number;

Defined in: types/desktop-engine.d.ts:2604

Constant GL_GREATER


GREEN_BITS ​

ts
readonly GREEN_BITS: number;

Defined in: types/desktop-engine.d.ts:2486

Constant GL_GREEN_BITS


HIGH_FLOAT ​

ts
readonly HIGH_FLOAT: number;

Defined in: types/desktop-engine.d.ts:2810

Constant GL_HIGH_FLOAT


HIGH_INT ​

ts
readonly HIGH_INT: number;

Defined in: types/desktop-engine.d.ts:2816

Constant GL_HIGH_INT


IMPLEMENTATION_COLOR_READ_FORMAT ​

ts
readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;

Defined in: types/desktop-engine.d.ts:2792

Constant GL_IMPLEMENTATION_COLOR_READ_FORMAT


IMPLEMENTATION_COLOR_READ_TYPE ​

ts
readonly IMPLEMENTATION_COLOR_READ_TYPE: number;

Defined in: types/desktop-engine.d.ts:2790

Constant GL_IMPLEMENTATION_COLOR_READ_TYPE


INCR ​

ts
readonly INCR: number;

Defined in: types/desktop-engine.d.ts:2616

Constant GL_INCR


INCR_WRAP ​

ts
readonly INCR_WRAP: number;

Defined in: types/desktop-engine.d.ts:2622

Constant GL_INCR_WRAP


INFO_LOG_LENGTH ​

ts
readonly INFO_LOG_LENGTH: number;

Defined in: types/desktop-engine.d.ts:2796

Constant GL_INFO_LOG_LENGTH


INT ​

ts
readonly INT: number;

Defined in: types/desktop-engine.d.ts:2530

Constant GL_INT


INT_VEC2 ​

ts
readonly INT_VEC2: number;

Defined in: types/desktop-engine.d.ts:2752

Constant GL_INT_VEC2


INT_VEC3 ​

ts
readonly INT_VEC3: number;

Defined in: types/desktop-engine.d.ts:2754

Constant GL_INT_VEC3


INT_VEC4 ​

ts
readonly INT_VEC4: number;

Defined in: types/desktop-engine.d.ts:2756

Constant GL_INT_VEC4


INVALID_ENUM ​

ts
readonly INVALID_ENUM: number;

Defined in: types/desktop-engine.d.ts:2406

Constant GL_INVALID_ENUM


INVALID_FRAMEBUFFER_OPERATION ​

ts
readonly INVALID_FRAMEBUFFER_OPERATION: number;

Defined in: types/desktop-engine.d.ts:2888

Constant GL_INVALID_FRAMEBUFFER_OPERATION


INVALID_OPERATION ​

ts
readonly INVALID_OPERATION: number;

Defined in: types/desktop-engine.d.ts:2410

Constant GL_INVALID_OPERATION


INVALID_VALUE ​

ts
readonly INVALID_VALUE: number;

Defined in: types/desktop-engine.d.ts:2408

Constant GL_INVALID_VALUE


INVERT ​

ts
readonly INVERT: number;

Defined in: types/desktop-engine.d.ts:2620

Constant GL_INVERT


KEEP ​

ts
readonly KEEP: number;

Defined in: types/desktop-engine.d.ts:2612

Constant GL_KEEP


LEQUAL ​

ts
readonly LEQUAL: number;

Defined in: types/desktop-engine.d.ts:2602

Constant GL_LEQUAL


LESS ​

ts
readonly LESS: number;

Defined in: types/desktop-engine.d.ts:2598

Constant GL_LESS


LINE_LOOP ​

ts
readonly LINE_LOOP: number;

Defined in: types/desktop-engine.d.ts:2296

Constant GL_LINE_LOOP


LINE_STRIP ​

ts
readonly LINE_STRIP: number;

Defined in: types/desktop-engine.d.ts:2298

Constant GL_LINE_STRIP


LINE_WIDTH ​

ts
readonly LINE_WIDTH: number;

Defined in: types/desktop-engine.d.ts:2418

Constant GL_LINE_WIDTH


LINEAR ​

ts
readonly LINEAR: number;

Defined in: types/desktop-engine.d.ts:2636

Constant GL_LINEAR


LINEAR_MIPMAP_LINEAR ​

ts
readonly LINEAR_MIPMAP_LINEAR: number;

Defined in: types/desktop-engine.d.ts:2644

Constant GL_LINEAR_MIPMAP_LINEAR


LINEAR_MIPMAP_NEAREST ​

ts
readonly LINEAR_MIPMAP_NEAREST: number;

Defined in: types/desktop-engine.d.ts:2640

Constant GL_LINEAR_MIPMAP_NEAREST


LINES ​

ts
readonly LINES: number;

Defined in: types/desktop-engine.d.ts:2294

Constant GL_LINES


ts
readonly LINK_STATUS: number;

Defined in: types/desktop-engine.d.ts:2578

Constant GL_LINK_STATUS


LOW_FLOAT ​

ts
readonly LOW_FLOAT: number;

Defined in: types/desktop-engine.d.ts:2806

Constant GL_LOW_FLOAT


LOW_INT ​

ts
readonly LOW_INT: number;

Defined in: types/desktop-engine.d.ts:2812

Constant GL_LOW_INT


LUMINANCE ​

ts
readonly LUMINANCE: number;

Defined in: types/desktop-engine.d.ts:2546

Constant GL_LUMINANCE


LUMINANCE_ALPHA ​

ts
readonly LUMINANCE_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2548

Constant GL_LUMINANCE_ALPHA


MAX_COMBINED_TEXTURE_IMAGE_UNITS ​

ts
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;

Defined in: types/desktop-engine.d.ts:2566

Constant GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS


MAX_CUBE_MAP_TEXTURE_SIZE ​

ts
readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;

Defined in: types/desktop-engine.d.ts:2672

Constant GL_MAX_CUBE_MAP_TEXTURE_SIZE


MAX_FRAGMENT_UNIFORM_VECTORS ​

ts
readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;

Defined in: types/desktop-engine.d.ts:2572

Constant GL_MAX_FRAGMENT_UNIFORM_VECTORS


MAX_RENDERBUFFER_SIZE ​

ts
readonly MAX_RENDERBUFFER_SIZE: number;

Defined in: types/desktop-engine.d.ts:2886

Constant GL_MAX_RENDERBUFFER_SIZE


MAX_TEXTURE_IMAGE_UNITS ​

ts
readonly MAX_TEXTURE_IMAGE_UNITS: number;

Defined in: types/desktop-engine.d.ts:2570

Constant GL_MAX_TEXTURE_IMAGE_UNITS


MAX_TEXTURE_SIZE ​

ts
readonly MAX_TEXTURE_SIZE: number;

Defined in: types/desktop-engine.d.ts:2478

Constant GL_MAX_TEXTURE_SIZE


MAX_VARYING_VECTORS ​

ts
readonly MAX_VARYING_VECTORS: number;

Defined in: types/desktop-engine.d.ts:2564

Constant GL_MAX_VARYING_VECTORS


MAX_VERTEX_ATTRIBS ​

ts
readonly MAX_VERTEX_ATTRIBS: number;

Defined in: types/desktop-engine.d.ts:2560

Constant GL_MAX_VERTEX_ATTRIBS


MAX_VERTEX_TEXTURE_IMAGE_UNITS ​

ts
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;

Defined in: types/desktop-engine.d.ts:2568

Constant GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS


MAX_VERTEX_UNIFORM_VECTORS ​

ts
readonly MAX_VERTEX_UNIFORM_VECTORS: number;

Defined in: types/desktop-engine.d.ts:2562

Constant GL_MAX_VERTEX_UNIFORM_VECTORS


MAX_VIEWPORT_DIMS ​

ts
readonly MAX_VIEWPORT_DIMS: number;

Defined in: types/desktop-engine.d.ts:2480

Constant GL_MAX_VIEWPORT_DIMS


MEDIUM_FLOAT ​

ts
readonly MEDIUM_FLOAT: number;

Defined in: types/desktop-engine.d.ts:2808

Constant GL_MEDIUM_FLOAT


MEDIUM_INT ​

ts
readonly MEDIUM_INT: number;

Defined in: types/desktop-engine.d.ts:2814

Constant GL_MEDIUM_INT


MIRRORED_REPEAT ​

ts
readonly MIRRORED_REPEAT: number;

Defined in: types/desktop-engine.d.ts:2744

Constant GL_MIRRORED_REPEAT


NEAREST ​

ts
readonly NEAREST: number;

Defined in: types/desktop-engine.d.ts:2634

Constant GL_NEAREST


NEAREST_MIPMAP_LINEAR ​

ts
readonly NEAREST_MIPMAP_LINEAR: number;

Defined in: types/desktop-engine.d.ts:2642

Constant GL_NEAREST_MIPMAP_LINEAR


NEAREST_MIPMAP_NEAREST ​

ts
readonly NEAREST_MIPMAP_NEAREST: number;

Defined in: types/desktop-engine.d.ts:2638

Constant GL_NEAREST_MIPMAP_NEAREST


NEVER ​

ts
readonly NEVER: number;

Defined in: types/desktop-engine.d.ts:2596

Constant GL_NEVER


NICEST ​

ts
readonly NICEST: number;

Defined in: types/desktop-engine.d.ts:2518

Constant GL_NICEST


NO_ERROR ​

ts
readonly NO_ERROR: number;

Defined in: types/desktop-engine.d.ts:2404

Constant GL_NO_ERROR


NONE ​

ts
readonly NONE: number;

Defined in: types/desktop-engine.d.ts:2870

Constant GL_NONE


NOTEQUAL ​

ts
readonly NOTEQUAL: number;

Defined in: types/desktop-engine.d.ts:2606

Constant GL_NOTEQUAL


NUM_COMPRESSED_TEXTURE_FORMATS ​

ts
readonly NUM_COMPRESSED_TEXTURE_FORMATS: number;

Defined in: types/desktop-engine.d.ts:2510

Constant GL_NUM_COMPRESSED_TEXTURE_FORMATS


NUM_SHADER_BINARY_FORMATS ​

ts
readonly NUM_SHADER_BINARY_FORMATS: number;

Defined in: types/desktop-engine.d.ts:2804

Constant GL_NUM_SHADER_BINARY_FORMATS


ONE ​

ts
readonly ONE: number;

Defined in: types/desktop-engine.d.ts:2308

Constant GL_ONE


ONE_MINUS_CONSTANT_ALPHA ​

ts
readonly ONE_MINUS_CONSTANT_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2354

Constant GL_ONE_MINUS_CONSTANT_ALPHA


ONE_MINUS_CONSTANT_COLOR ​

ts
readonly ONE_MINUS_CONSTANT_COLOR: number;

Defined in: types/desktop-engine.d.ts:2350

Constant GL_ONE_MINUS_CONSTANT_COLOR


ONE_MINUS_DST_ALPHA ​

ts
readonly ONE_MINUS_DST_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2320

Constant GL_ONE_MINUS_DST_ALPHA


ONE_MINUS_DST_COLOR ​

ts
readonly ONE_MINUS_DST_COLOR: number;

Defined in: types/desktop-engine.d.ts:2324

Constant GL_ONE_MINUS_DST_COLOR


ONE_MINUS_SRC_ALPHA ​

ts
readonly ONE_MINUS_SRC_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2316

Constant GL_ONE_MINUS_SRC_ALPHA


ONE_MINUS_SRC_COLOR ​

ts
readonly ONE_MINUS_SRC_COLOR: number;

Defined in: types/desktop-engine.d.ts:2312

Constant GL_ONE_MINUS_SRC_COLOR


OUT_OF_MEMORY ​

ts
readonly OUT_OF_MEMORY: number;

Defined in: types/desktop-engine.d.ts:2412

Constant GL_OUT_OF_MEMORY


PACK_ALIGNMENT ​

ts
readonly PACK_ALIGNMENT: number;

Defined in: types/desktop-engine.d.ts:2476

Constant GL_PACK_ALIGNMENT


POINTS ​

ts
readonly POINTS: number;

Defined in: types/desktop-engine.d.ts:2292

Constant GL_POINTS


POLYGON_OFFSET_FACTOR ​

ts
readonly POLYGON_OFFSET_FACTOR: number;

Defined in: types/desktop-engine.d.ts:2498

Constant GL_POLYGON_OFFSET_FACTOR


POLYGON_OFFSET_FILL ​

ts
readonly POLYGON_OFFSET_FILL: number;

Defined in: types/desktop-engine.d.ts:2398

Constant GL_POLYGON_OFFSET_FILL


POLYGON_OFFSET_UNITS ​

ts
readonly POLYGON_OFFSET_UNITS: number;

Defined in: types/desktop-engine.d.ts:2496

Constant GL_POLYGON_OFFSET_UNITS


RED_BITS ​

ts
readonly RED_BITS: number;

Defined in: types/desktop-engine.d.ts:2484

Constant GL_RED_BITS


RENDERBUFFER ​

ts
readonly RENDERBUFFER: number;

Defined in: types/desktop-engine.d.ts:2820

Constant GL_RENDERBUFFER


RENDERBUFFER_ALPHA_SIZE ​

ts
readonly RENDERBUFFER_ALPHA_SIZE: number;

Defined in: types/desktop-engine.d.ts:2848

Constant GL_RENDERBUFFER_ALPHA_SIZE


RENDERBUFFER_BINDING ​

ts
readonly RENDERBUFFER_BINDING: number;

Defined in: types/desktop-engine.d.ts:2884

Constant GL_RENDERBUFFER_BINDING


RENDERBUFFER_BLUE_SIZE ​

ts
readonly RENDERBUFFER_BLUE_SIZE: number;

Defined in: types/desktop-engine.d.ts:2846

Constant GL_RENDERBUFFER_BLUE_SIZE


RENDERBUFFER_DEPTH_SIZE ​

ts
readonly RENDERBUFFER_DEPTH_SIZE: number;

Defined in: types/desktop-engine.d.ts:2850

Constant GL_RENDERBUFFER_DEPTH_SIZE


RENDERBUFFER_GREEN_SIZE ​

ts
readonly RENDERBUFFER_GREEN_SIZE: number;

Defined in: types/desktop-engine.d.ts:2844

Constant GL_RENDERBUFFER_GREEN_SIZE


RENDERBUFFER_HEIGHT ​

ts
readonly RENDERBUFFER_HEIGHT: number;

Defined in: types/desktop-engine.d.ts:2838

Constant GL_RENDERBUFFER_HEIGHT


RENDERBUFFER_INTERNAL_FORMAT ​

ts
readonly RENDERBUFFER_INTERNAL_FORMAT: number;

Defined in: types/desktop-engine.d.ts:2840

Constant GL_RENDERBUFFER_INTERNAL_FORMAT


RENDERBUFFER_RED_SIZE ​

ts
readonly RENDERBUFFER_RED_SIZE: number;

Defined in: types/desktop-engine.d.ts:2842

Constant GL_RENDERBUFFER_RED_SIZE


RENDERBUFFER_STENCIL_SIZE ​

ts
readonly RENDERBUFFER_STENCIL_SIZE: number;

Defined in: types/desktop-engine.d.ts:2852

Constant GL_RENDERBUFFER_STENCIL_SIZE


RENDERBUFFER_WIDTH ​

ts
readonly RENDERBUFFER_WIDTH: number;

Defined in: types/desktop-engine.d.ts:2836

Constant GL_RENDERBUFFER_WIDTH


RENDERER ​

ts
readonly RENDERER: number;

Defined in: types/desktop-engine.d.ts:2628

Constant GL_RENDERER


REPEAT ​

ts
readonly REPEAT: number;

Defined in: types/desktop-engine.d.ts:2740

Constant GL_REPEAT


REPLACE ​

ts
readonly REPLACE: number;

Defined in: types/desktop-engine.d.ts:2614

Constant GL_REPLACE


RGB ​

ts
readonly RGB: number;

Defined in: types/desktop-engine.d.ts:2542

Constant GL_RGB


RGB5_A1 ​

ts
readonly RGB5_A1: number;

Defined in: types/desktop-engine.d.ts:2824

Constant GL_RGB5_A1


RGB565 ​

ts
readonly RGB565: number;

Defined in: types/desktop-engine.d.ts:2826

Constant GL_RGB565


RGBA ​

ts
readonly RGBA: number;

Defined in: types/desktop-engine.d.ts:2544

Constant GL_RGBA


RGBA4 ​

ts
readonly RGBA4: number;

Defined in: types/desktop-engine.d.ts:2822

Constant GL_RGBA4


SAMPLE_ALPHA_TO_COVERAGE ​

ts
readonly SAMPLE_ALPHA_TO_COVERAGE: number;

Defined in: types/desktop-engine.d.ts:2400

Constant GL_SAMPLE_ALPHA_TO_COVERAGE


SAMPLE_BUFFERS ​

ts
readonly SAMPLE_BUFFERS: number;

Defined in: types/desktop-engine.d.ts:2502

Constant GL_SAMPLE_BUFFERS


SAMPLE_COVERAGE ​

ts
readonly SAMPLE_COVERAGE: number;

Defined in: types/desktop-engine.d.ts:2402

Constant GL_SAMPLE_COVERAGE


SAMPLE_COVERAGE_INVERT ​

ts
readonly SAMPLE_COVERAGE_INVERT: number;

Defined in: types/desktop-engine.d.ts:2508

Constant GL_SAMPLE_COVERAGE_INVERT


SAMPLE_COVERAGE_VALUE ​

ts
readonly SAMPLE_COVERAGE_VALUE: number;

Defined in: types/desktop-engine.d.ts:2506

Constant GL_SAMPLE_COVERAGE_VALUE


SAMPLER_2D ​

ts
readonly SAMPLER_2D: number;

Defined in: types/desktop-engine.d.ts:2772

Constant GL_SAMPLER_2D


SAMPLER_CUBE ​

ts
readonly SAMPLER_CUBE: number;

Defined in: types/desktop-engine.d.ts:2774

Constant GL_SAMPLER_CUBE


SAMPLES ​

ts
readonly SAMPLES: number;

Defined in: types/desktop-engine.d.ts:2504

Constant GL_SAMPLES


SCISSOR_BOX ​

ts
readonly SCISSOR_BOX: number;

Defined in: types/desktop-engine.d.ts:2468

Constant GL_SCISSOR_BOX


SCISSOR_TEST ​

ts
readonly SCISSOR_TEST: number;

Defined in: types/desktop-engine.d.ts:2396

Constant GL_SCISSOR_TEST


SHADER_BINARY_FORMATS ​

ts
readonly SHADER_BINARY_FORMATS: number;

Defined in: types/desktop-engine.d.ts:2802

Constant GL_SHADER_BINARY_FORMATS


SHADER_COMPILER ​

ts
readonly SHADER_COMPILER: number;

Defined in: types/desktop-engine.d.ts:2800

Constant GL_SHADER_COMPILER


SHADER_SOURCE_LENGTH ​

ts
readonly SHADER_SOURCE_LENGTH: number;

Defined in: types/desktop-engine.d.ts:2798

Constant GL_SHADER_SOURCE_LENGTH


SHADER_TYPE ​

ts
readonly SHADER_TYPE: number;

Defined in: types/desktop-engine.d.ts:2574

Constant GL_SHADER_TYPE


SHADING_LANGUAGE_VERSION ​

ts
readonly SHADING_LANGUAGE_VERSION: number;

Defined in: types/desktop-engine.d.ts:2592

Constant GL_SHADING_LANGUAGE_VERSION


SHORT ​

ts
readonly SHORT: number;

Defined in: types/desktop-engine.d.ts:2526

Constant GL_SHORT


SRC_ALPHA ​

ts
readonly SRC_ALPHA: number;

Defined in: types/desktop-engine.d.ts:2314

Constant GL_SRC_ALPHA


SRC_ALPHA_SATURATE ​

ts
readonly SRC_ALPHA_SATURATE: number;

Defined in: types/desktop-engine.d.ts:2326

Constant GL_SRC_ALPHA_SATURATE


SRC_COLOR ​

ts
readonly SRC_COLOR: number;

Defined in: types/desktop-engine.d.ts:2310

Constant GL_SRC_COLOR


STATIC_DRAW ​

ts
readonly STATIC_DRAW: number;

Defined in: types/desktop-engine.d.ts:2368

Constant GL_STATIC_DRAW


STENCIL_ATTACHMENT ​

ts
readonly STENCIL_ATTACHMENT: number;

Defined in: types/desktop-engine.d.ts:2866

Constant GL_STENCIL_ATTACHMENT


STENCIL_BACK_FAIL ​

ts
readonly STENCIL_BACK_FAIL: number;

Defined in: types/desktop-engine.d.ts:2454

Constant GL_STENCIL_BACK_FAIL


STENCIL_BACK_FUNC ​

ts
readonly STENCIL_BACK_FUNC: number;

Defined in: types/desktop-engine.d.ts:2452

Constant GL_STENCIL_BACK_FUNC


STENCIL_BACK_PASS_DEPTH_FAIL ​

ts
readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;

Defined in: types/desktop-engine.d.ts:2456

Constant GL_STENCIL_BACK_PASS_DEPTH_FAIL


STENCIL_BACK_PASS_DEPTH_PASS ​

ts
readonly STENCIL_BACK_PASS_DEPTH_PASS: number;

Defined in: types/desktop-engine.d.ts:2458

Constant GL_STENCIL_BACK_PASS_DEPTH_PASS


STENCIL_BACK_REF ​

ts
readonly STENCIL_BACK_REF: number;

Defined in: types/desktop-engine.d.ts:2460

Constant GL_STENCIL_BACK_REF


STENCIL_BACK_VALUE_MASK ​

ts
readonly STENCIL_BACK_VALUE_MASK: number;

Defined in: types/desktop-engine.d.ts:2462

Constant GL_STENCIL_BACK_VALUE_MASK


STENCIL_BACK_WRITEMASK ​

ts
readonly STENCIL_BACK_WRITEMASK: number;

Defined in: types/desktop-engine.d.ts:2464

Constant GL_STENCIL_BACK_WRITEMASK


STENCIL_BITS ​

ts
readonly STENCIL_BITS: number;

Defined in: types/desktop-engine.d.ts:2494

Constant GL_STENCIL_BITS


STENCIL_BUFFER_BIT ​

ts
readonly STENCIL_BUFFER_BIT: number;

Defined in: types/desktop-engine.d.ts:2284

Constant GL_STENCIL_BUFFER_BIT


STENCIL_CLEAR_VALUE ​

ts
readonly STENCIL_CLEAR_VALUE: number;

Defined in: types/desktop-engine.d.ts:2436

Constant GL_STENCIL_CLEAR_VALUE


STENCIL_FAIL ​

ts
readonly STENCIL_FAIL: number;

Defined in: types/desktop-engine.d.ts:2440

Constant GL_STENCIL_FAIL


STENCIL_FUNC ​

ts
readonly STENCIL_FUNC: number;

Defined in: types/desktop-engine.d.ts:2438

Constant GL_STENCIL_FUNC


STENCIL_INDEX ​

ts
readonly STENCIL_INDEX: number;

Defined in: types/desktop-engine.d.ts:2830

Constant STENCIL_INDEX (its actual value is GL_DEPTH_STENCIL_OES)


STENCIL_INDEX8 ​

ts
readonly STENCIL_INDEX8: number;

Defined in: types/desktop-engine.d.ts:2832

Constant STENCIL_INDEX8 (its actual value is GL_DEPTH_STENCIL_OES)


STENCIL_PASS_DEPTH_FAIL ​

ts
readonly STENCIL_PASS_DEPTH_FAIL: number;

Defined in: types/desktop-engine.d.ts:2442

Constant GL_STENCIL_PASS_DEPTH_FAIL


STENCIL_PASS_DEPTH_PASS ​

ts
readonly STENCIL_PASS_DEPTH_PASS: number;

Defined in: types/desktop-engine.d.ts:2444

Constant GL_STENCIL_PASS_DEPTH_PASS


STENCIL_REF ​

ts
readonly STENCIL_REF: number;

Defined in: types/desktop-engine.d.ts:2446

Constant GL_STENCIL_REF


STENCIL_TEST ​

ts
readonly STENCIL_TEST: number;

Defined in: types/desktop-engine.d.ts:2392

Constant GL_STENCIL_TEST


STENCIL_VALUE_MASK ​

ts
readonly STENCIL_VALUE_MASK: number;

Defined in: types/desktop-engine.d.ts:2448

Constant GL_STENCIL_VALUE_MASK


STENCIL_WRITEMASK ​

ts
readonly STENCIL_WRITEMASK: number;

Defined in: types/desktop-engine.d.ts:2450

Constant GL_STENCIL_WRITEMASK


STREAM_DRAW ​

ts
readonly STREAM_DRAW: number;

Defined in: types/desktop-engine.d.ts:2366

Constant GL_STREAM_DRAW


SUBPIXEL_BITS ​

ts
readonly SUBPIXEL_BITS: number;

Defined in: types/desktop-engine.d.ts:2482

Constant GL_SUBPIXEL_BITS


TEXTURE ​

ts
readonly TEXTURE: number;

Defined in: types/desktop-engine.d.ts:2654

Constant GL_TEXTURE


TEXTURE_2D ​

ts
readonly TEXTURE_2D: number;

Defined in: types/desktop-engine.d.ts:2384

Constant GL_TEXTURE_2D


TEXTURE_BINDING_2D ​

ts
readonly TEXTURE_BINDING_2D: number;

Defined in: types/desktop-engine.d.ts:2500

Constant GL_TEXTURE_BINDING_2D


TEXTURE_BINDING_CUBE_MAP ​

ts
readonly TEXTURE_BINDING_CUBE_MAP: number;

Defined in: types/desktop-engine.d.ts:2658

Constant GL_TEXTURE_BINDING_CUBE_MAP


TEXTURE_CUBE_MAP ​

ts
readonly TEXTURE_CUBE_MAP: number;

Defined in: types/desktop-engine.d.ts:2656

Constant GL_TEXTURE_CUBE_MAP


TEXTURE_CUBE_MAP_NEGATIVE_X ​

ts
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;

Defined in: types/desktop-engine.d.ts:2662

Constant GL_TEXTURE_CUBE_MAP_NEGATIVE_X


TEXTURE_CUBE_MAP_NEGATIVE_Y ​

ts
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;

Defined in: types/desktop-engine.d.ts:2666

Constant GL_TEXTURE_CUBE_MAP_NEGATIVE_Y


TEXTURE_CUBE_MAP_NEGATIVE_Z ​

ts
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;

Defined in: types/desktop-engine.d.ts:2670

Constant GL_TEXTURE_CUBE_MAP_NEGATIVE_Z


TEXTURE_CUBE_MAP_POSITIVE_X ​

ts
readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;

Defined in: types/desktop-engine.d.ts:2660

Constant GL_TEXTURE_CUBE_MAP_POSITIVE_X


TEXTURE_CUBE_MAP_POSITIVE_Y ​

ts
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;

Defined in: types/desktop-engine.d.ts:2664

Constant GL_TEXTURE_CUBE_MAP_POSITIVE_Y


TEXTURE_CUBE_MAP_POSITIVE_Z ​

ts
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;

Defined in: types/desktop-engine.d.ts:2668

Constant GL_TEXTURE_CUBE_MAP_POSITIVE_Z


TEXTURE_MAG_FILTER ​

ts
readonly TEXTURE_MAG_FILTER: number;

Defined in: types/desktop-engine.d.ts:2646

Constant GL_TEXTURE_MAG_FILTER


TEXTURE_MIN_FILTER ​

ts
readonly TEXTURE_MIN_FILTER: number;

Defined in: types/desktop-engine.d.ts:2648

Constant GL_TEXTURE_MIN_FILTER


TEXTURE_WRAP_S ​

ts
readonly TEXTURE_WRAP_S: number;

Defined in: types/desktop-engine.d.ts:2650

Constant GL_TEXTURE_WRAP_S


TEXTURE_WRAP_T ​

ts
readonly TEXTURE_WRAP_T: number;

Defined in: types/desktop-engine.d.ts:2652

Constant GL_TEXTURE_WRAP_T


TEXTURE0 ​

ts
readonly TEXTURE0: number;

Defined in: types/desktop-engine.d.ts:2674

Constant GL_TEXTURE0


TEXTURE1 ​

ts
readonly TEXTURE1: number;

Defined in: types/desktop-engine.d.ts:2676

Constant GL_TEXTURE1


TEXTURE10 ​

ts
readonly TEXTURE10: number;

Defined in: types/desktop-engine.d.ts:2694

Constant GL_TEXTURE10


TEXTURE11 ​

ts
readonly TEXTURE11: number;

Defined in: types/desktop-engine.d.ts:2696

Constant GL_TEXTURE11


TEXTURE12 ​

ts
readonly TEXTURE12: number;

Defined in: types/desktop-engine.d.ts:2698

Constant GL_TEXTURE12


TEXTURE13 ​

ts
readonly TEXTURE13: number;

Defined in: types/desktop-engine.d.ts:2700

Constant GL_TEXTURE13


TEXTURE14 ​

ts
readonly TEXTURE14: number;

Defined in: types/desktop-engine.d.ts:2702

Constant GL_TEXTURE14


TEXTURE15 ​

ts
readonly TEXTURE15: number;

Defined in: types/desktop-engine.d.ts:2704

Constant GL_TEXTURE15


TEXTURE16 ​

ts
readonly TEXTURE16: number;

Defined in: types/desktop-engine.d.ts:2706

Constant GL_TEXTURE16


TEXTURE17 ​

ts
readonly TEXTURE17: number;

Defined in: types/desktop-engine.d.ts:2708

Constant GL_TEXTURE17


TEXTURE18 ​

ts
readonly TEXTURE18: number;

Defined in: types/desktop-engine.d.ts:2710

Constant GL_TEXTURE18


TEXTURE19 ​

ts
readonly TEXTURE19: number;

Defined in: types/desktop-engine.d.ts:2712

Constant GL_TEXTURE19


TEXTURE2 ​

ts
readonly TEXTURE2: number;

Defined in: types/desktop-engine.d.ts:2678

Constant GL_TEXTURE2


TEXTURE20 ​

ts
readonly TEXTURE20: number;

Defined in: types/desktop-engine.d.ts:2714

Constant GL_TEXTURE20


TEXTURE21 ​

ts
readonly TEXTURE21: number;

Defined in: types/desktop-engine.d.ts:2716

Constant GL_TEXTURE21


TEXTURE22 ​

ts
readonly TEXTURE22: number;

Defined in: types/desktop-engine.d.ts:2718

Constant GL_TEXTURE22


TEXTURE23 ​

ts
readonly TEXTURE23: number;

Defined in: types/desktop-engine.d.ts:2720

Constant GL_TEXTURE23


TEXTURE24 ​

ts
readonly TEXTURE24: number;

Defined in: types/desktop-engine.d.ts:2722

Constant GL_TEXTURE24


TEXTURE25 ​

ts
readonly TEXTURE25: number;

Defined in: types/desktop-engine.d.ts:2724

Constant GL_TEXTURE25


TEXTURE26 ​

ts
readonly TEXTURE26: number;

Defined in: types/desktop-engine.d.ts:2726

Constant GL_TEXTURE26


TEXTURE27 ​

ts
readonly TEXTURE27: number;

Defined in: types/desktop-engine.d.ts:2728

Constant GL_TEXTURE27


TEXTURE28 ​

ts
readonly TEXTURE28: number;

Defined in: types/desktop-engine.d.ts:2730

Constant GL_TEXTURE28


TEXTURE29 ​

ts
readonly TEXTURE29: number;

Defined in: types/desktop-engine.d.ts:2732

Constant GL_TEXTURE29


TEXTURE3 ​

ts
readonly TEXTURE3: number;

Defined in: types/desktop-engine.d.ts:2680

Constant GL_TEXTURE3


TEXTURE30 ​

ts
readonly TEXTURE30: number;

Defined in: types/desktop-engine.d.ts:2734

Constant GL_TEXTURE30


TEXTURE31 ​

ts
readonly TEXTURE31: number;

Defined in: types/desktop-engine.d.ts:2736

Constant GL_TEXTURE31


TEXTURE4 ​

ts
readonly TEXTURE4: number;

Defined in: types/desktop-engine.d.ts:2682

Constant GL_TEXTURE4


TEXTURE5 ​

ts
readonly TEXTURE5: number;

Defined in: types/desktop-engine.d.ts:2684

Constant GL_TEXTURE5


TEXTURE6 ​

ts
readonly TEXTURE6: number;

Defined in: types/desktop-engine.d.ts:2686

Constant GL_TEXTURE6


TEXTURE7 ​

ts
readonly TEXTURE7: number;

Defined in: types/desktop-engine.d.ts:2688

Constant GL_TEXTURE7


TEXTURE8 ​

ts
readonly TEXTURE8: number;

Defined in: types/desktop-engine.d.ts:2690

Constant GL_TEXTURE8


TEXTURE9 ​

ts
readonly TEXTURE9: number;

Defined in: types/desktop-engine.d.ts:2692

Constant GL_TEXTURE9


TRIANGLE_FAN ​

ts
readonly TRIANGLE_FAN: number;

Defined in: types/desktop-engine.d.ts:2304

Constant GL_TRIANGLE_FAN


TRIANGLE_STRIP ​

ts
readonly TRIANGLE_STRIP: number;

Defined in: types/desktop-engine.d.ts:2302

Constant GL_TRIANGLE_STRIP


TRIANGLES ​

ts
readonly TRIANGLES: number;

Defined in: types/desktop-engine.d.ts:2300

Constant GL_TRIANGLES


TRUE ​

ts
readonly TRUE: number;

Defined in: types/desktop-engine.d.ts:2290

Constant GL_TRUE


UNPACK_ALIGNMENT ​

ts
readonly UNPACK_ALIGNMENT: number;

Defined in: types/desktop-engine.d.ts:2474

Constant GL_UNPACK_ALIGNMENT


UNPACK_COLORSPACE_CONVERSION_WEBGL ​

ts
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;

Defined in: types/desktop-engine.d.ts:2896

Constant GL_UNPACK_COLORSPACE_CONVERSION_WEBGL


UNPACK_FLIP_Y_WEBGL ​

ts
readonly UNPACK_FLIP_Y_WEBGL: number;

Defined in: types/desktop-engine.d.ts:2890

Constant GL_UNPACK_FLIP_Y_WEBGL


UNPACK_PREMULTIPLY_ALPHA_WEBGL ​

ts
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;

Defined in: types/desktop-engine.d.ts:2892

Constant GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL


UNSIGNED_BYTE ​

ts
readonly UNSIGNED_BYTE: number;

Defined in: types/desktop-engine.d.ts:2524

Constant GL_UNSIGNED_BYTE


UNSIGNED_INT ​

ts
readonly UNSIGNED_INT: number;

Defined in: types/desktop-engine.d.ts:2532

Constant GL_UNSIGNED_INT


UNSIGNED_SHORT ​

ts
readonly UNSIGNED_SHORT: number;

Defined in: types/desktop-engine.d.ts:2528

Constant GL_UNSIGNED_SHORT


UNSIGNED_SHORT_4_4_4_4 ​

ts
readonly UNSIGNED_SHORT_4_4_4_4: number;

Defined in: types/desktop-engine.d.ts:2550

Constant GL_UNSIGNED_SHORT_4_4_4_4


UNSIGNED_SHORT_5_5_5_1 ​

ts
readonly UNSIGNED_SHORT_5_5_5_1: number;

Defined in: types/desktop-engine.d.ts:2552

Constant GL_UNSIGNED_SHORT_5_5_5_1


UNSIGNED_SHORT_5_6_5 ​

ts
readonly UNSIGNED_SHORT_5_6_5: number;

Defined in: types/desktop-engine.d.ts:2554

Constant GL_UNSIGNED_SHORT_5_6_5


VALIDATE_STATUS ​

ts
readonly VALIDATE_STATUS: number;

Defined in: types/desktop-engine.d.ts:2580

Constant GL_VALIDATE_STATUS


VENDOR ​

ts
readonly VENDOR: number;

Defined in: types/desktop-engine.d.ts:2626

Constant GL_VENDOR


VERSION ​

ts
readonly VERSION: number;

Defined in: types/desktop-engine.d.ts:2630

Constant GL_VERSION


VERTEX_ATTRIB_ARRAY_BUFFER_BINDING ​

ts
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;

Defined in: types/desktop-engine.d.ts:2788

Constant GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING


VERTEX_ATTRIB_ARRAY_ENABLED ​

ts
readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;

Defined in: types/desktop-engine.d.ts:2776

Constant GL_VERTEX_ATTRIB_ARRAY_ENABLED


VERTEX_ATTRIB_ARRAY_NORMALIZED ​

ts
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;

Defined in: types/desktop-engine.d.ts:2784

Constant GL_VERTEX_ATTRIB_ARRAY_NORMALIZED


VERTEX_ATTRIB_ARRAY_POINTER ​

ts
readonly VERTEX_ATTRIB_ARRAY_POINTER: number;

Defined in: types/desktop-engine.d.ts:2786

Constant GL_VERTEX_ATTRIB_ARRAY_POINTER


VERTEX_ATTRIB_ARRAY_SIZE ​

ts
readonly VERTEX_ATTRIB_ARRAY_SIZE: number;

Defined in: types/desktop-engine.d.ts:2778

Constant GL_VERTEX_ATTRIB_ARRAY_SIZE


VERTEX_ATTRIB_ARRAY_STRIDE ​

ts
readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;

Defined in: types/desktop-engine.d.ts:2780

Constant GL_VERTEX_ATTRIB_ARRAY_STRIDE


VERTEX_ATTRIB_ARRAY_TYPE ​

ts
readonly VERTEX_ATTRIB_ARRAY_TYPE: number;

Defined in: types/desktop-engine.d.ts:2782

Constant GL_VERTEX_ATTRIB_ARRAY_TYPE


VERTEX_SHADER ​

ts
readonly VERTEX_SHADER: number;

Defined in: types/desktop-engine.d.ts:2558

Constant GL_VERTEX_SHADER


VIEWPORT ​

ts
readonly VIEWPORT: number;

Defined in: types/desktop-engine.d.ts:2466

Constant GL_VIEWPORT


ZERO ​

ts
readonly ZERO: number;

Defined in: types/desktop-engine.d.ts:2306

Constant GL_ZERO

Methods ​

activeTexture() ​

ts
activeTexture(texture): void;

Defined in: types/desktop-engine.d.ts:2008

Activates a texture unit

Parameters ​

ParameterType
texturenumber

Returns ​

void


attachShader() ​

ts
attachShader(program, shader): void;

Defined in: types/desktop-engine.d.ts:2010

Attaches a shader

Parameters ​

ParameterType
programWebGLProgram
shaderWebGLShader

Returns ​

void


bindAttribLocation() ​

ts
bindAttribLocation(
   program, 
   index, 
   name
): void;

Defined in: types/desktop-engine.d.ts:2012

Binds an attribute location

Parameters ​

ParameterType
programWebGLProgram
indexnumber
namestring

Returns ​

void


bindBuffer() ​

ts
bindBuffer(target, buffer): void;

Defined in: types/desktop-engine.d.ts:2014

Binds a buffer

Parameters ​

ParameterType
targetnumber
bufferWebGLBuffer | null

Returns ​

void


bindFramebuffer() ​

ts
bindFramebuffer(target, framebuffer): void;

Defined in: types/desktop-engine.d.ts:2018

Binds a framebuffer

Parameters ​

ParameterType
targetnumber
framebufferWebGLFramebuffer | null

Returns ​

void


bindRenderbuffer() ​

ts
bindRenderbuffer(target, renderbuffer): void;

Defined in: types/desktop-engine.d.ts:2016

Binds a renderbuffer

Parameters ​

ParameterType
targetnumber
renderbufferWebGLRenderbuffer | null

Returns ​

void


bindTexture() ​

ts
bindTexture(target, texture): void;

Defined in: types/desktop-engine.d.ts:2020

Binds a texture

Parameters ​

ParameterType
targetnumber
textureWebGLTexture | null

Returns ​

void


blendColor() ​

ts
blendColor(
   red, 
   green, 
   blue, 
   alpha
): void;

Defined in: types/desktop-engine.d.ts:2022

Blend color

Parameters ​

ParameterType
rednumber
greennumber
bluenumber
alphanumber

Returns ​

void


blendEquation() ​

ts
blendEquation(mode): void;

Defined in: types/desktop-engine.d.ts:2024

Blend equation

Parameters ​

ParameterType
modenumber

Returns ​

void


blendEquationSeparate() ​

ts
blendEquationSeparate(modeRGB, modeAlpha): void;

Defined in: types/desktop-engine.d.ts:2026

Separate blend equations

Parameters ​

ParameterType
modeRGBnumber
modeAlphanumber

Returns ​

void


blendFunc() ​

ts
blendFunc(sfactor, dfactor): void;

Defined in: types/desktop-engine.d.ts:2028

Blend factors

Parameters ​

ParameterType
sfactornumber
dfactornumber

Returns ​

void


blendFuncSeparate() ​

ts
blendFuncSeparate(
   srcRGB, 
   dstRGB, 
   srcAlpha, 
   dstAlpha
): void;

Defined in: types/desktop-engine.d.ts:2030

Separate blend factors

Parameters ​

ParameterType
srcRGBnumber
dstRGBnumber
srcAlphanumber
dstAlphanumber

Returns ​

void


bufferData() ​

ts
bufferData(
   target, 
   sizeOrData, 
   usage
): void;

Defined in: types/desktop-engine.d.ts:2032

Allocates or uploads buffer data (a number means a size in bytes)

Parameters ​

ParameterType
targetnumber
sizeOrDatanumber | ArrayBuffer | ArrayBufferView<ArrayBufferLike>
usagenumber

Returns ​

void


bufferSubData() ​

ts
bufferSubData(
   target, 
   offset, 
   data
): void;

Defined in: types/desktop-engine.d.ts:2034

Updates part of the buffer data

Parameters ​

ParameterType
targetnumber
offsetnumber
dataArrayBuffer | ArrayBufferView<ArrayBufferLike>

Returns ​

void


checkFramebufferStatus() ​

ts
checkFramebufferStatus(target): number;

Defined in: types/desktop-engine.d.ts:2036

Checks the framebuffer status

Parameters ​

ParameterType
targetnumber

Returns ​

number


clear() ​

ts
clear(mask): void;

Defined in: types/desktop-engine.d.ts:2038

Clears buffers

Parameters ​

ParameterType
masknumber

Returns ​

void


clearColor() ​

ts
clearColor(
   red, 
   green, 
   blue, 
   alpha
): void;

Defined in: types/desktop-engine.d.ts:2040

Clear color

Parameters ​

ParameterType
rednumber
greennumber
bluenumber
alphanumber

Returns ​

void


clearDepth() ​

ts
clearDepth(depth): void;

Defined in: types/desktop-engine.d.ts:2042

Clear depth

Parameters ​

ParameterType
depthnumber

Returns ​

void


clearStencil() ​

ts
clearStencil(s): void;

Defined in: types/desktop-engine.d.ts:2044

Clear stencil value

Parameters ​

ParameterType
snumber

Returns ​

void


colorMask() ​

ts
colorMask(
   red, 
   green, 
   blue, 
   alpha
): void;

Defined in: types/desktop-engine.d.ts:2046

Color write mask

Parameters ​

ParameterType
redboolean
greenboolean
blueboolean
alphaboolean

Returns ​

void


compileShader() ​

ts
compileShader(shader): void;

Defined in: types/desktop-engine.d.ts:2048

Compiles a shader

Parameters ​

ParameterType
shaderWebGLShader

Returns ​

void


compressedTexImage2D() ​

ts
compressedTexImage2D(
   target, 
   level, 
   internalformat, 
   width, 
   height, 
   border, 
   data
): void;

Defined in: types/desktop-engine.d.ts:2050

Uploads a compressed texture

Parameters ​

ParameterType
targetnumber
levelnumber
internalformatnumber
widthnumber
heightnumber
bordernumber
dataArrayBufferView

Returns ​

void


compressedTexSubImage2D() ​

ts
compressedTexSubImage2D(
   target, 
   level, 
   xoffset, 
   yoffset, 
   width, 
   height, 
   format, 
   data
): void;

Defined in: types/desktop-engine.d.ts:2052

Updates a compressed texture

Parameters ​

ParameterType
targetnumber
levelnumber
xoffsetnumber
yoffsetnumber
widthnumber
heightnumber
formatnumber
dataArrayBufferView

Returns ​

void


copyTexImage2D() ​

ts
copyTexImage2D(
   target, 
   level, 
   internalformat, 
   x, 
   y, 
   width, 
   height, 
   border?
): void;

Defined in: types/desktop-engine.d.ts:2054

Copies a texture from the framebuffer (the border argument is ignored)

Parameters ​

ParameterType
targetnumber
levelnumber
internalformatnumber
xnumber
ynumber
widthnumber
heightnumber
border?number

Returns ​

void


copyTexSubImage2D() ​

ts
copyTexSubImage2D(
   target, 
   level, 
   xoffset, 
   yoffset, 
   x, 
   y, 
   width, 
   height
): void;

Defined in: types/desktop-engine.d.ts:2056

Copies part of a texture from the framebuffer

Parameters ​

ParameterType
targetnumber
levelnumber
xoffsetnumber
yoffsetnumber
xnumber
ynumber
widthnumber
heightnumber

Returns ​

void


createBuffer() ​

ts
createBuffer(): WebGLBuffer | null;

Defined in: types/desktop-engine.d.ts:2058

Creates a buffer

Returns ​

WebGLBuffer | null


createFramebuffer() ​

ts
createFramebuffer(): WebGLFramebuffer | null;

Defined in: types/desktop-engine.d.ts:2060

Creates a framebuffer

Returns ​

WebGLFramebuffer | null


createProgram() ​

ts
createProgram(): WebGLProgram | null;

Defined in: types/desktop-engine.d.ts:2066

Creates a program

Returns ​

WebGLProgram | null


createRenderbuffer() ​

ts
createRenderbuffer(): WebGLRenderbuffer | null;

Defined in: types/desktop-engine.d.ts:2062

Creates a renderbuffer

Returns ​

WebGLRenderbuffer | null


createShader() ​

ts
createShader(type): WebGLShader | null;

Defined in: types/desktop-engine.d.ts:2068

Creates a shader

Parameters ​

ParameterType
typenumber

Returns ​

WebGLShader | null


createTexture() ​

ts
createTexture(): WebGLTexture | null;

Defined in: types/desktop-engine.d.ts:2064

Creates a texture

Returns ​

WebGLTexture | null


cullFace() ​

ts
cullFace(mode): void;

Defined in: types/desktop-engine.d.ts:2070

Face culling mode

Parameters ​

ParameterType
modenumber

Returns ​

void


deleteBuffer() ​

ts
deleteBuffer(buffer): void;

Defined in: types/desktop-engine.d.ts:2072

Deletes a buffer

Parameters ​

ParameterType
bufferWebGLBuffer | null

Returns ​

void


deleteFramebuffer() ​

ts
deleteFramebuffer(framebuffer): void;

Defined in: types/desktop-engine.d.ts:2074

Deletes a framebuffer

Parameters ​

ParameterType
framebufferWebGLFramebuffer | null

Returns ​

void


deleteProgram() ​

ts
deleteProgram(program): void;

Defined in: types/desktop-engine.d.ts:2082

Deletes a program

Parameters ​

ParameterType
programWebGLProgram | null

Returns ​

void


deleteRenderbuffer() ​

ts
deleteRenderbuffer(renderbuffer): void;

Defined in: types/desktop-engine.d.ts:2076

Deletes a renderbuffer

Parameters ​

ParameterType
renderbufferWebGLRenderbuffer | null

Returns ​

void


deleteShader() ​

ts
deleteShader(shader): void;

Defined in: types/desktop-engine.d.ts:2078

Deletes a shader

Parameters ​

ParameterType
shaderWebGLShader | null

Returns ​

void


deleteTexture() ​

ts
deleteTexture(texture): void;

Defined in: types/desktop-engine.d.ts:2080

Deletes a texture

Parameters ​

ParameterType
textureWebGLTexture | null

Returns ​

void


depthFunc() ​

ts
depthFunc(func): void;

Defined in: types/desktop-engine.d.ts:2084

Depth comparison function

Parameters ​

ParameterType
funcnumber

Returns ​

void


depthMask() ​

ts
depthMask(flag): void;

Defined in: types/desktop-engine.d.ts:2086

Enables or disables depth writes

Parameters ​

ParameterType
flagboolean

Returns ​

void


depthRange() ​

ts
depthRange(zNear, zFar): void;

Defined in: types/desktop-engine.d.ts:2088

Depth range

Parameters ​

ParameterType
zNearnumber
zFarnumber

Returns ​

void


detachShader() ​

ts
detachShader(program, shader): void;

Defined in: types/desktop-engine.d.ts:2090

Detaches a shader

Parameters ​

ParameterType
programWebGLProgram
shaderWebGLShader

Returns ​

void


disable() ​

ts
disable(cap): void;

Defined in: types/desktop-engine.d.ts:2092

Disables a capability

Parameters ​

ParameterType
capnumber

Returns ​

void


disableVertexAttribArray() ​

ts
disableVertexAttribArray(index): void;

Defined in: types/desktop-engine.d.ts:2094

Disables a vertex attribute array

Parameters ​

ParameterType
indexnumber

Returns ​

void


drawArrays() ​

ts
drawArrays(
   mode, 
   first, 
   count
): void;

Defined in: types/desktop-engine.d.ts:2096

Draws arrays

Parameters ​

ParameterType
modenumber
firstnumber
countnumber

Returns ​

void


drawElements() ​

ts
drawElements(
   mode, 
   count, 
   type, 
   offset
): void;

Defined in: types/desktop-engine.d.ts:2098

Draws elements

Parameters ​

ParameterType
modenumber
countnumber
typenumber
offsetnumber

Returns ​

void


enable() ​

ts
enable(cap): void;

Defined in: types/desktop-engine.d.ts:2100

Enables a capability

Parameters ​

ParameterType
capnumber

Returns ​

void


enableVertexAttribArray() ​

ts
enableVertexAttribArray(index): void;

Defined in: types/desktop-engine.d.ts:2102

Enables a vertex attribute array

Parameters ​

ParameterType
indexnumber

Returns ​

void


finish() ​

ts
finish(): void;

Defined in: types/desktop-engine.d.ts:2106

Waits for commands to finish

Returns ​

void


flush() ​

ts
flush(): void;

Defined in: types/desktop-engine.d.ts:2104

Flushes commands

Returns ​

void


framebufferRenderbuffer() ​

ts
framebufferRenderbuffer(
   target, 
   attachment, 
   renderbuffertarget, 
   renderbuffer
): void;

Defined in: types/desktop-engine.d.ts:2108

Attaches a renderbuffer to the framebuffer

Parameters ​

ParameterType
targetnumber
attachmentnumber
renderbuffertargetnumber
renderbufferWebGLRenderbuffer | null

Returns ​

void


framebufferTexture2D() ​

ts
framebufferTexture2D(
   target, 
   attachment, 
   textarget, 
   texture, 
   level
): void;

Defined in: types/desktop-engine.d.ts:2110

Attaches a texture to the framebuffer

Parameters ​

ParameterType
targetnumber
attachmentnumber
textargetnumber
textureWebGLTexture | null
levelnumber

Returns ​

void


frontFace() ​

ts
frontFace(mode): void;

Defined in: types/desktop-engine.d.ts:2112

Front face winding

Parameters ​

ParameterType
modenumber

Returns ​

void


generateMipmap() ​

ts
generateMipmap(target): void;

Defined in: types/desktop-engine.d.ts:2114

Generates mipmaps

Parameters ​

ParameterType
targetnumber

Returns ​

void


getActiveAttrib() ​

ts
getActiveAttrib(program, index): WebGLActiveInfo | null;

Defined in: types/desktop-engine.d.ts:2116

Gets attribute information

Parameters ​

ParameterType
programWebGLProgram
indexnumber

Returns ​

WebGLActiveInfo | null


getActiveUniform() ​

ts
getActiveUniform(program, index): WebGLActiveInfo | null;

Defined in: types/desktop-engine.d.ts:2118

Gets uniform information

Parameters ​

ParameterType
programWebGLProgram
indexnumber

Returns ​

WebGLActiveInfo | null


getAttachedShaders() ​

ts
getAttachedShaders(program): WebGLShader[] | null;

Defined in: types/desktop-engine.d.ts:2120

Gets the attached shaders

Parameters ​

ParameterType
programWebGLProgram

Returns ​

WebGLShader[] | null


getAttribLocation() ​

ts
getAttribLocation(program, name): number;

Defined in: types/desktop-engine.d.ts:2122

Gets an attribute location

Parameters ​

ParameterType
programWebGLProgram
namestring

Returns ​

number


getBufferParameter() ​

ts
getBufferParameter(target, pname): any;

Defined in: types/desktop-engine.d.ts:2130

Queries a buffer parameter

Parameters ​

ParameterType
targetnumber
pnamenumber

Returns ​

any


getContextAttributes() ​

ts
getContextAttributes(): WebGLContextAttributes;

Defined in: types/desktop-engine.d.ts:1998

Gets the context attributes (fixed values)

Returns ​

WebGLContextAttributes


getError() ​

ts
getError(): number;

Defined in: types/desktop-engine.d.ts:2132

Gets the error code

Returns ​

number


getExtension() ​

Call Signature ​

ts
getExtension<K>(name): WebGLExtensionMap[K] | null;

Defined in: types/desktop-engine.d.ts:2004

Gets an extension object, or null if it isn't supported

Type Parameters ​
Type Parameter
K extends keyof WebGLExtensionMap
Parameters ​
ParameterType
nameK
Returns ​

WebGLExtensionMap[K] | null

Call Signature ​

ts
getExtension(name): object | null;

Defined in: types/desktop-engine.d.ts:2006

Gets an extension object, or null if it isn't supported

Parameters ​
ParameterType
namestring
Returns ​

object | null


getFramebufferAttachmentParameter() ​

ts
getFramebufferAttachmentParameter(
   target, 
   attachment, 
   pname
): any;

Defined in: types/desktop-engine.d.ts:2134

Queries a framebuffer attachment parameter

Parameters ​

ParameterType
targetnumber
attachmentnumber
pnamenumber

Returns ​

any


getParameter() ​

ts
getParameter(pname): any;

Defined in: types/desktop-engine.d.ts:2128

Queries a parameter: capabilities (BLEND, DEPTH_TEST, ...), DEPTH_WRITEMASK and the UNPACK_*_WEBGL flags are booleans, VIEWPORT/SCISSOR_BOX/MAX_VIEWPORT_DIMS Int32Array, COLOR_WRITEMASK boolean[], bindings the object or null, the texture unit limits at most 32, and other values numbers or strings

Parameters ​

ParameterType
pnamenumber

Returns ​

any


getProgramInfoLog() ​

ts
getProgramInfoLog(program): string | null;

Defined in: types/desktop-engine.d.ts:2138

Gets the program info log

Parameters ​

ParameterType
programWebGLProgram

Returns ​

string | null


getProgramParameter() ​

ts
getProgramParameter(program, pname): any;

Defined in: types/desktop-engine.d.ts:2136

Queries a program parameter: DELETE_STATUS, LINK_STATUS and VALIDATE_STATUS are booleans, the rest numbers

Parameters ​

ParameterType
programWebGLProgram
pnamenumber

Returns ​

any


getRenderbufferParameter() ​

ts
getRenderbufferParameter(target, pname): any;

Defined in: types/desktop-engine.d.ts:2140

Queries a renderbuffer parameter

Parameters ​

ParameterType
targetnumber
pnamenumber

Returns ​

any


getShaderInfoLog() ​

ts
getShaderInfoLog(shader): string | null;

Defined in: types/desktop-engine.d.ts:2146

Gets the shader info log

Parameters ​

ParameterType
shaderWebGLShader

Returns ​

string | null


getShaderParameter() ​

ts
getShaderParameter(shader, pname): any;

Defined in: types/desktop-engine.d.ts:2142

Queries a shader parameter: DELETE_STATUS and COMPILE_STATUS are booleans, the rest numbers

Parameters ​

ParameterType
shaderWebGLShader
pnamenumber

Returns ​

any


getShaderPrecisionFormat() ​

ts
getShaderPrecisionFormat(shadertype, precisiontype): 
  | WebGLShaderPrecisionFormat
  | null;

Defined in: types/desktop-engine.d.ts:2144

Queries shader precision

Parameters ​

ParameterType
shadertypenumber
precisiontypenumber

Returns ​

| WebGLShaderPrecisionFormat | null


getShaderSource() ​

ts
getShaderSource(shader): string | null;

Defined in: types/desktop-engine.d.ts:2148

Gets the shader source

Parameters ​

ParameterType
shaderWebGLShader

Returns ​

string | null


getSupportedExtensions() ​

ts
getSupportedExtensions(): string[];

Defined in: types/desktop-engine.d.ts:2002

Gets the list of supported extension names

Returns ​

string[]


getTexParameter() ​

ts
getTexParameter(target, pname): any;

Defined in: types/desktop-engine.d.ts:2150

Queries a parameter of the texture bound to target (null if none): TEXTURE_IMMUTABLE_FORMAT is a boolean, the rest numbers

Parameters ​

ParameterType
targetnumber
pnamenumber

Returns ​

any


getUniform() ​

ts
getUniform(program, location): any;

Defined in: types/desktop-engine.d.ts:2152

Reads a uniform value

Parameters ​

ParameterType
programWebGLProgram
locationWebGLUniformLocation

Returns ​

any


getUniformLocation() ​

ts
getUniformLocation(program, name): WebGLUniformLocation | null;

Defined in: types/desktop-engine.d.ts:2154

Gets a uniform location

Parameters ​

ParameterType
programWebGLProgram
namestring

Returns ​

WebGLUniformLocation | null


getVertexAttrib() ​

ts
getVertexAttrib(index, pname): any;

Defined in: types/desktop-engine.d.ts:2156

Queries a vertex attribute

Parameters ​

ParameterType
indexnumber
pnamenumber

Returns ​

any


getVertexAttribOffset() ​

ts
getVertexAttribOffset(index, pname): number;

Defined in: types/desktop-engine.d.ts:2158

Queries a vertex attribute offset

Parameters ​

ParameterType
indexnumber
pnamenumber

Returns ​

number


hint() ​

ts
hint(target, mode): void;

Defined in: types/desktop-engine.d.ts:2160

Hint

Parameters ​

ParameterType
targetnumber
modenumber

Returns ​

void


isBuffer() ​

ts
isBuffer(buffer): boolean;

Defined in: types/desktop-engine.d.ts:2162

Returns whether the object is a buffer

Parameters ​

ParameterType
bufferWebGLBuffer | null

Returns ​

boolean


isContextLost() ​

ts
isContextLost(): boolean;

Defined in: types/desktop-engine.d.ts:2000

Whether the context was lost: the GPU stopped its work (see the canvas' webglcontextlost event). It isn't restored

Returns ​

boolean


isEnabled() ​

ts
isEnabled(cap): boolean;

Defined in: types/desktop-engine.d.ts:2174

Returns whether a capability is enabled

Parameters ​

ParameterType
capnumber

Returns ​

boolean


isFramebuffer() ​

ts
isFramebuffer(framebuffer): boolean;

Defined in: types/desktop-engine.d.ts:2164

Returns whether the object is a framebuffer

Parameters ​

ParameterType
framebufferWebGLFramebuffer | null

Returns ​

boolean


isProgram() ​

ts
isProgram(program): boolean;

Defined in: types/desktop-engine.d.ts:2166

Returns whether the object is a program

Parameters ​

ParameterType
programWebGLProgram | null

Returns ​

boolean


isRenderbuffer() ​

ts
isRenderbuffer(renderbuffer): boolean;

Defined in: types/desktop-engine.d.ts:2168

Returns whether the object is a renderbuffer

Parameters ​

ParameterType
renderbufferWebGLRenderbuffer | null

Returns ​

boolean


isShader() ​

ts
isShader(shader): boolean;

Defined in: types/desktop-engine.d.ts:2170

Returns whether the object is a shader

Parameters ​

ParameterType
shaderWebGLShader | null

Returns ​

boolean


isTexture() ​

ts
isTexture(texture): boolean;

Defined in: types/desktop-engine.d.ts:2172

Returns whether the object is a texture

Parameters ​

ParameterType
textureWebGLTexture | null

Returns ​

boolean


lineWidth() ​

ts
lineWidth(width): void;

Defined in: types/desktop-engine.d.ts:2176

Line width

Parameters ​

ParameterType
widthnumber

Returns ​

void


linkProgram() ​

ts
linkProgram(program): void;

Defined in: types/desktop-engine.d.ts:2178

Links a program

Parameters ​

ParameterType
programWebGLProgram

Returns ​

void


pixelStorei() ​

ts
pixelStorei(pname, param): void;

Defined in: types/desktop-engine.d.ts:2180

Pixel storage parameter

Parameters ​

ParameterType
pnamenumber
paramnumber | boolean

Returns ​

void


polygonOffset() ​

ts
polygonOffset(factor, units): void;

Defined in: types/desktop-engine.d.ts:2182

Polygon offset

Parameters ​

ParameterType
factornumber
unitsnumber

Returns ​

void


readPixels() ​

ts
readPixels(
   x, 
   y, 
   width, 
   height, 
   format, 
   type, 
   pixels
): void;

Defined in: types/desktop-engine.d.ts:2184

Reads pixels into pixels

Parameters ​

ParameterType
xnumber
ynumber
widthnumber
heightnumber
formatnumber
typenumber
pixelsArrayBufferView

Returns ​

void


renderbufferStorage() ​

ts
renderbufferStorage(
   target, 
   internalformat, 
   width, 
   height
): void;

Defined in: types/desktop-engine.d.ts:2186

Allocates renderbuffer storage

Parameters ​

ParameterType
targetnumber
internalformatnumber
widthnumber
heightnumber

Returns ​

void


sampleCoverage() ​

ts
sampleCoverage(value, invert): void;

Defined in: types/desktop-engine.d.ts:2188

Multisample coverage

Parameters ​

ParameterType
valuenumber
invertboolean

Returns ​

void


scissor() ​

ts
scissor(
   x, 
   y, 
   width, 
   height
): void;

Defined in: types/desktop-engine.d.ts:2190

Scissor rectangle

Parameters ​

ParameterType
xnumber
ynumber
widthnumber
heightnumber

Returns ​

void


shaderSource() ​

ts
shaderSource(shader, source): void;

Defined in: types/desktop-engine.d.ts:2192

Sets the shader source

Parameters ​

ParameterType
shaderWebGLShader
sourcestring

Returns ​

void


stencilFunc() ​

ts
stencilFunc(
   func, 
   ref, 
   mask
): void;

Defined in: types/desktop-engine.d.ts:2194

Stencil function

Parameters ​

ParameterType
funcnumber
refnumber
masknumber

Returns ​

void


stencilFuncSeparate() ​

ts
stencilFuncSeparate(
   face, 
   func, 
   ref, 
   mask
): void;

Defined in: types/desktop-engine.d.ts:2196

Separate stencil functions

Parameters ​

ParameterType
facenumber
funcnumber
refnumber
masknumber

Returns ​

void


stencilMask() ​

ts
stencilMask(mask): void;

Defined in: types/desktop-engine.d.ts:2198

Stencil write mask

Parameters ​

ParameterType
masknumber

Returns ​

void


stencilMaskSeparate() ​

ts
stencilMaskSeparate(face, mask): void;

Defined in: types/desktop-engine.d.ts:2200

Separate stencil write masks

Parameters ​

ParameterType
facenumber
masknumber

Returns ​

void


stencilOp() ​

ts
stencilOp(
   fail, 
   zfail, 
   zpass
): void;

Defined in: types/desktop-engine.d.ts:2202

Stencil operation

Parameters ​

ParameterType
failnumber
zfailnumber
zpassnumber

Returns ​

void


stencilOpSeparate() ​

ts
stencilOpSeparate(
   face, 
   fail, 
   zfail, 
   zpass
): void;

Defined in: types/desktop-engine.d.ts:2204

Separate stencil operations

Parameters ​

ParameterType
facenumber
failnumber
zfailnumber
zpassnumber

Returns ​

void


texImage2D() ​

Call Signature ​

ts
texImage2D(
   target, 
   level, 
   internalformat, 
   format, 
   type, 
   source
): void;

Defined in: types/desktop-engine.d.ts:2206

Uploads a texture from a canvas, image or pixel data (6-argument form)

Parameters ​
ParameterType
targetnumber
levelnumber
internalformatnumber
formatnumber
typenumber
sourceCanvasDrawable
Returns ​

void

Call Signature ​

ts
texImage2D(
   target, 
   level, 
   internalformat, 
   width, 
   height, 
   border, 
   format, 
   type, 
   pixels
): void;

Defined in: types/desktop-engine.d.ts:2208

Uploads a texture from a typed array (9-argument form)

Parameters ​
ParameterType
targetnumber
levelnumber
internalformatnumber
widthnumber
heightnumber
bordernumber
formatnumber
typenumber
pixelsArrayBufferView<ArrayBufferLike> | null
Returns ​

void


texParameterf() ​

ts
texParameterf(
   target, 
   pname, 
   param
): void;

Defined in: types/desktop-engine.d.ts:2214

Float texture parameter

Parameters ​

ParameterType
targetnumber
pnamenumber
paramnumber

Returns ​

void


texParameteri() ​

ts
texParameteri(
   target, 
   pname, 
   param
): void;

Defined in: types/desktop-engine.d.ts:2216

Integer texture parameter

Parameters ​

ParameterType
targetnumber
pnamenumber
paramnumber

Returns ​

void


texSubImage2D() ​

Call Signature ​

ts
texSubImage2D(
   target, 
   level, 
   xoffset, 
   yoffset, 
   format, 
   type, 
   source
): void;

Defined in: types/desktop-engine.d.ts:2210

Updates a texture from a canvas, image or pixel data (7-argument form)

Parameters ​
ParameterType
targetnumber
levelnumber
xoffsetnumber
yoffsetnumber
formatnumber
typenumber
sourceCanvasDrawable
Returns ​

void

Call Signature ​

ts
texSubImage2D(
   target, 
   level, 
   xoffset, 
   yoffset, 
   width, 
   height, 
   format, 
   type, 
   pixels
): void;

Defined in: types/desktop-engine.d.ts:2212

Updates a texture from a typed array (9-argument form)

Parameters ​
ParameterType
targetnumber
levelnumber
xoffsetnumber
yoffsetnumber
widthnumber
heightnumber
formatnumber
typenumber
pixelsArrayBufferView<ArrayBufferLike> | null
Returns ​

void


uniform1f() ​

ts
uniform1f(location, x): void;

Defined in: types/desktop-engine.d.ts:2218

Sets a float uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
xnumber

Returns ​

void


uniform1fv() ​

ts
uniform1fv(location, v): void;

Defined in: types/desktop-engine.d.ts:2234

Sets a float array uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
vFloat32List

Returns ​

void


uniform1i() ​

ts
uniform1i(location, x): void;

Defined in: types/desktop-engine.d.ts:2226

Sets an int uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
xnumber

Returns ​

void


uniform1iv() ​

ts
uniform1iv(location, v): void;

Defined in: types/desktop-engine.d.ts:2242

Sets an int array uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
vInt32List

Returns ​

void


uniform2f() ​

ts
uniform2f(
   location, 
   x, 
   y
): void;

Defined in: types/desktop-engine.d.ts:2220

Sets a vec2 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
xnumber
ynumber

Returns ​

void


uniform2fv() ​

ts
uniform2fv(location, v): void;

Defined in: types/desktop-engine.d.ts:2236

Sets a vec2 array uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
vFloat32List

Returns ​

void


uniform2i() ​

ts
uniform2i(
   location, 
   x, 
   y
): void;

Defined in: types/desktop-engine.d.ts:2228

Sets an ivec2 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
xnumber
ynumber

Returns ​

void


uniform2iv() ​

ts
uniform2iv(location, v): void;

Defined in: types/desktop-engine.d.ts:2244

Sets an ivec2 array uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
vInt32List

Returns ​

void


uniform3f() ​

ts
uniform3f(
   location, 
   x, 
   y, 
   z
): void;

Defined in: types/desktop-engine.d.ts:2222

Sets a vec3 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
xnumber
ynumber
znumber

Returns ​

void


uniform3fv() ​

ts
uniform3fv(location, v): void;

Defined in: types/desktop-engine.d.ts:2238

Sets a vec3 array uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
vFloat32List

Returns ​

void


uniform3i() ​

ts
uniform3i(
   location, 
   x, 
   y, 
   z
): void;

Defined in: types/desktop-engine.d.ts:2230

Sets an ivec3 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
xnumber
ynumber
znumber

Returns ​

void


uniform3iv() ​

ts
uniform3iv(location, v): void;

Defined in: types/desktop-engine.d.ts:2246

Sets an ivec3 array uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
vInt32List

Returns ​

void


uniform4f() ​

ts
uniform4f(
   location, 
   x, 
   y, 
   z, 
   w
): void;

Defined in: types/desktop-engine.d.ts:2224

Sets a vec4 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
xnumber
ynumber
znumber
wnumber

Returns ​

void


uniform4fv() ​

ts
uniform4fv(location, v): void;

Defined in: types/desktop-engine.d.ts:2240

Sets a vec4 array uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
vFloat32List

Returns ​

void


uniform4i() ​

ts
uniform4i(
   location, 
   x, 
   y, 
   z, 
   w
): void;

Defined in: types/desktop-engine.d.ts:2232

Sets an ivec4 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
xnumber
ynumber
znumber
wnumber

Returns ​

void


uniform4iv() ​

ts
uniform4iv(location, v): void;

Defined in: types/desktop-engine.d.ts:2248

Sets an ivec4 array uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
vInt32List

Returns ​

void


uniformMatrix2fv() ​

ts
uniformMatrix2fv(
   location, 
   transpose, 
   value
): void;

Defined in: types/desktop-engine.d.ts:2250

Sets a mat2 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueFloat32List

Returns ​

void


uniformMatrix3fv() ​

ts
uniformMatrix3fv(
   location, 
   transpose, 
   value
): void;

Defined in: types/desktop-engine.d.ts:2252

Sets a mat3 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueFloat32List

Returns ​

void


uniformMatrix4fv() ​

ts
uniformMatrix4fv(
   location, 
   transpose, 
   value
): void;

Defined in: types/desktop-engine.d.ts:2254

Sets a mat4 uniform

Parameters ​

ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueFloat32List

Returns ​

void


useProgram() ​

ts
useProgram(program): void;

Defined in: types/desktop-engine.d.ts:2256

Uses a program

Parameters ​

ParameterType
programWebGLProgram | null

Returns ​

void


validateProgram() ​

ts
validateProgram(program): void;

Defined in: types/desktop-engine.d.ts:2258

Validates a program

Parameters ​

ParameterType
programWebGLProgram

Returns ​

void


vertexAttrib1f() ​

ts
vertexAttrib1f(index, x): void;

Defined in: types/desktop-engine.d.ts:2260

Sets a constant vertex attribute (1 component)

Parameters ​

ParameterType
indexnumber
xnumber

Returns ​

void


vertexAttrib1fv() ​

ts
vertexAttrib1fv(index, values): void;

Defined in: types/desktop-engine.d.ts:2268

Sets a constant vertex attribute from an array (1 component)

Parameters ​

ParameterType
indexnumber
valuesFloat32List

Returns ​

void


vertexAttrib2f() ​

ts
vertexAttrib2f(
   index, 
   x, 
   y
): void;

Defined in: types/desktop-engine.d.ts:2262

Sets a constant vertex attribute (2 components)

Parameters ​

ParameterType
indexnumber
xnumber
ynumber

Returns ​

void


vertexAttrib2fv() ​

ts
vertexAttrib2fv(index, values): void;

Defined in: types/desktop-engine.d.ts:2270

Sets a constant vertex attribute from an array (2 components)

Parameters ​

ParameterType
indexnumber
valuesFloat32List

Returns ​

void


vertexAttrib3f() ​

ts
vertexAttrib3f(
   index, 
   x, 
   y, 
   z
): void;

Defined in: types/desktop-engine.d.ts:2264

Sets a constant vertex attribute (3 components)

Parameters ​

ParameterType
indexnumber
xnumber
ynumber
znumber

Returns ​

void


vertexAttrib3fv() ​

ts
vertexAttrib3fv(index, values): void;

Defined in: types/desktop-engine.d.ts:2272

Sets a constant vertex attribute from an array (3 components)

Parameters ​

ParameterType
indexnumber
valuesFloat32List

Returns ​

void


vertexAttrib4f() ​

ts
vertexAttrib4f(
   index, 
   x, 
   y, 
   z, 
   w
): void;

Defined in: types/desktop-engine.d.ts:2266

Sets a constant vertex attribute (4 components)

Parameters ​

ParameterType
indexnumber
xnumber
ynumber
znumber
wnumber

Returns ​

void


vertexAttrib4fv() ​

ts
vertexAttrib4fv(index, values): void;

Defined in: types/desktop-engine.d.ts:2274

Sets a constant vertex attribute from an array (4 components)

Parameters ​

ParameterType
indexnumber
valuesFloat32List

Returns ​

void


vertexAttribPointer() ​

ts
vertexAttribPointer(
   index, 
   size, 
   type, 
   normalized, 
   stride, 
   offset
): void;

Defined in: types/desktop-engine.d.ts:2276

Vertex attribute pointer

Parameters ​

ParameterType
indexnumber
sizenumber
typenumber
normalizedboolean
stridenumber
offsetnumber

Returns ​

void


viewport() ​

ts
viewport(
   x, 
   y, 
   width, 
   height
): void;

Defined in: types/desktop-engine.d.ts:2278

Viewport

Parameters ​

ParameterType
xnumber
ynumber
widthnumber
heightnumber

Returns ​

void

The SDK is released under the Apache License 2.0