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
readonly ACTIVE_ATTRIBUTE_MAX_LENGTH: number;Defined in: types/desktop-engine.d.ts:2590
Constant GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
ACTIVE_ATTRIBUTES
readonly ACTIVE_ATTRIBUTES: number;Defined in: types/desktop-engine.d.ts:2588
Constant GL_ACTIVE_ATTRIBUTES
ACTIVE_TEXTURE
readonly ACTIVE_TEXTURE: number;Defined in: types/desktop-engine.d.ts:2738
Constant GL_ACTIVE_TEXTURE
ACTIVE_UNIFORM_MAX_LENGTH
readonly ACTIVE_UNIFORM_MAX_LENGTH: number;Defined in: types/desktop-engine.d.ts:2586
Constant GL_ACTIVE_UNIFORM_MAX_LENGTH
ACTIVE_UNIFORMS
readonly ACTIVE_UNIFORMS: number;Defined in: types/desktop-engine.d.ts:2584
Constant GL_ACTIVE_UNIFORMS
ALIASED_LINE_WIDTH_RANGE
readonly ALIASED_LINE_WIDTH_RANGE: number;Defined in: types/desktop-engine.d.ts:2422
Constant GL_ALIASED_LINE_WIDTH_RANGE
ALIASED_POINT_SIZE_RANGE
readonly ALIASED_POINT_SIZE_RANGE: number;Defined in: types/desktop-engine.d.ts:2420
Constant GL_ALIASED_POINT_SIZE_RANGE
ALPHA
readonly ALPHA: number;Defined in: types/desktop-engine.d.ts:2540
Constant GL_ALPHA
ALPHA_BITS
readonly ALPHA_BITS: number;Defined in: types/desktop-engine.d.ts:2490
Constant GL_ALPHA_BITS
ALWAYS
readonly ALWAYS: number;Defined in: types/desktop-engine.d.ts:2610
Constant GL_ALWAYS
ARRAY_BUFFER
readonly ARRAY_BUFFER: number;Defined in: types/desktop-engine.d.ts:2358
Constant GL_ARRAY_BUFFER
ARRAY_BUFFER_BINDING
readonly ARRAY_BUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:2362
Constant GL_ARRAY_BUFFER_BINDING
ATTACHED_SHADERS
readonly ATTACHED_SHADERS: number;Defined in: types/desktop-engine.d.ts:2582
Constant GL_ATTACHED_SHADERS
BACK
readonly BACK: number;Defined in: types/desktop-engine.d.ts:2380
Constant GL_BACK
BLEND
readonly BLEND: number;Defined in: types/desktop-engine.d.ts:2388
Constant GL_BLEND
BLEND_COLOR
readonly BLEND_COLOR: number;Defined in: types/desktop-engine.d.ts:2356
Constant GL_BLEND_COLOR
BLEND_DST_ALPHA
readonly BLEND_DST_ALPHA: number;Defined in: types/desktop-engine.d.ts:2344
Constant GL_BLEND_DST_ALPHA
BLEND_DST_RGB
readonly BLEND_DST_RGB: number;Defined in: types/desktop-engine.d.ts:2340
Constant GL_BLEND_DST_RGB
BLEND_EQUATION
readonly BLEND_EQUATION: number;Defined in: types/desktop-engine.d.ts:2330
Constant GL_BLEND_EQUATION
BLEND_EQUATION_ALPHA
readonly BLEND_EQUATION_ALPHA: number;Defined in: types/desktop-engine.d.ts:2334
Constant GL_BLEND_EQUATION_ALPHA
BLEND_EQUATION_RGB
readonly BLEND_EQUATION_RGB: number;Defined in: types/desktop-engine.d.ts:2332
Constant GL_BLEND_EQUATION_RGB
BLEND_SRC_ALPHA
readonly BLEND_SRC_ALPHA: number;Defined in: types/desktop-engine.d.ts:2346
Constant GL_BLEND_SRC_ALPHA
BLEND_SRC_RGB
readonly BLEND_SRC_RGB: number;Defined in: types/desktop-engine.d.ts:2342
Constant GL_BLEND_SRC_RGB
BLUE_BITS
readonly BLUE_BITS: number;Defined in: types/desktop-engine.d.ts:2488
Constant GL_BLUE_BITS
BOOL
readonly BOOL: number;Defined in: types/desktop-engine.d.ts:2758
Constant GL_BOOL
BOOL_VEC2
readonly BOOL_VEC2: number;Defined in: types/desktop-engine.d.ts:2760
Constant GL_BOOL_VEC2
BOOL_VEC3
readonly BOOL_VEC3: number;Defined in: types/desktop-engine.d.ts:2762
Constant GL_BOOL_VEC3
BOOL_VEC4
readonly BOOL_VEC4: number;Defined in: types/desktop-engine.d.ts:2764
Constant GL_BOOL_VEC4
BROWSER_DEFAULT_WEBGL
readonly BROWSER_DEFAULT_WEBGL: number;Defined in: types/desktop-engine.d.ts:2898
Constant GL_BROWSER_DEFAULT_WEBGL
BUFFER_SIZE
readonly BUFFER_SIZE: number;Defined in: types/desktop-engine.d.ts:2372
Constant GL_BUFFER_SIZE
BUFFER_USAGE
readonly BUFFER_USAGE: number;Defined in: types/desktop-engine.d.ts:2374
Constant GL_BUFFER_USAGE
BYTE
readonly BYTE: number;Defined in: types/desktop-engine.d.ts:2522
Constant GL_BYTE
canvas
readonly canvas: Canvas | null;Defined in: types/desktop-engine.d.ts:1991
The owning canvas
CCW
readonly CCW: number;Defined in: types/desktop-engine.d.ts:2416
Constant GL_CCW
CLAMP_TO_EDGE
readonly CLAMP_TO_EDGE: number;Defined in: types/desktop-engine.d.ts:2742
Constant GL_CLAMP_TO_EDGE
COLOR_ATTACHMENT0
readonly COLOR_ATTACHMENT0: number;Defined in: types/desktop-engine.d.ts:2862
Constant GL_COLOR_ATTACHMENT0
COLOR_BUFFER_BIT
readonly COLOR_BUFFER_BIT: number;Defined in: types/desktop-engine.d.ts:2286
Constant GL_COLOR_BUFFER_BIT
COLOR_CLEAR_VALUE
readonly COLOR_CLEAR_VALUE: number;Defined in: types/desktop-engine.d.ts:2470
Constant GL_COLOR_CLEAR_VALUE
COLOR_WRITEMASK
readonly COLOR_WRITEMASK: number;Defined in: types/desktop-engine.d.ts:2472
Constant GL_COLOR_WRITEMASK
COMPILE_STATUS
readonly COMPILE_STATUS: number;Defined in: types/desktop-engine.d.ts:2794
Constant GL_COMPILE_STATUS
COMPRESSED_TEXTURE_FORMATS
readonly COMPRESSED_TEXTURE_FORMATS: number;Defined in: types/desktop-engine.d.ts:2512
Constant GL_COMPRESSED_TEXTURE_FORMATS
CONSTANT_ALPHA
readonly CONSTANT_ALPHA: number;Defined in: types/desktop-engine.d.ts:2352
Constant GL_CONSTANT_ALPHA
CONSTANT_COLOR
readonly CONSTANT_COLOR: number;Defined in: types/desktop-engine.d.ts:2348
Constant GL_CONSTANT_COLOR
CONTEXT_LOST_WEBGL
readonly CONTEXT_LOST_WEBGL: number;Defined in: types/desktop-engine.d.ts:2894
Constant GL_CONTEXT_LOST_WEBGL
CULL_FACE
readonly CULL_FACE: number;Defined in: types/desktop-engine.d.ts:2386
Constant GL_CULL_FACE
CULL_FACE_MODE
readonly CULL_FACE_MODE: number;Defined in: types/desktop-engine.d.ts:2424
Constant GL_CULL_FACE_MODE
CURRENT_PROGRAM
readonly CURRENT_PROGRAM: number;Defined in: types/desktop-engine.d.ts:2594
Constant GL_CURRENT_PROGRAM
CURRENT_VERTEX_ATTRIB
readonly CURRENT_VERTEX_ATTRIB: number;Defined in: types/desktop-engine.d.ts:2376
Constant GL_CURRENT_VERTEX_ATTRIB
CW
readonly CW: number;Defined in: types/desktop-engine.d.ts:2414
Constant GL_CW
DECR
readonly DECR: number;Defined in: types/desktop-engine.d.ts:2618
Constant GL_DECR
DECR_WRAP
readonly DECR_WRAP: number;Defined in: types/desktop-engine.d.ts:2624
Constant GL_DECR_WRAP
DELETE_STATUS
readonly DELETE_STATUS: number;Defined in: types/desktop-engine.d.ts:2576
Constant GL_DELETE_STATUS
DEPTH_ATTACHMENT
readonly DEPTH_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2864
Constant GL_DEPTH_ATTACHMENT
DEPTH_BITS
readonly DEPTH_BITS: number;Defined in: types/desktop-engine.d.ts:2492
Constant GL_DEPTH_BITS
DEPTH_BUFFER_BIT
readonly DEPTH_BUFFER_BIT: number;Defined in: types/desktop-engine.d.ts:2282
Constant GL_DEPTH_BUFFER_BIT
DEPTH_CLEAR_VALUE
readonly DEPTH_CLEAR_VALUE: number;Defined in: types/desktop-engine.d.ts:2432
Constant GL_DEPTH_CLEAR_VALUE
DEPTH_COMPONENT
readonly DEPTH_COMPONENT: number;Defined in: types/desktop-engine.d.ts:2538
Constant GL_DEPTH_COMPONENT
DEPTH_COMPONENT16
readonly DEPTH_COMPONENT16: number;Defined in: types/desktop-engine.d.ts:2828
Constant GL_DEPTH_COMPONENT16
DEPTH_FUNC
readonly DEPTH_FUNC: number;Defined in: types/desktop-engine.d.ts:2434
Constant GL_DEPTH_FUNC
DEPTH_RANGE
readonly DEPTH_RANGE: number;Defined in: types/desktop-engine.d.ts:2428
Constant GL_DEPTH_RANGE
DEPTH_STENCIL
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
readonly DEPTH_STENCIL_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2868
Constant GL_DEPTH_STENCIL_ATTACHMENT
DEPTH_TEST
readonly DEPTH_TEST: number;Defined in: types/desktop-engine.d.ts:2394
Constant GL_DEPTH_TEST
DEPTH_WRITEMASK
readonly DEPTH_WRITEMASK: number;Defined in: types/desktop-engine.d.ts:2430
Constant GL_DEPTH_WRITEMASK
DITHER
readonly DITHER: number;Defined in: types/desktop-engine.d.ts:2390
Constant GL_DITHER
DONT_CARE
readonly DONT_CARE: number;Defined in: types/desktop-engine.d.ts:2514
Constant GL_DONT_CARE
drawingBufferHeight
readonly drawingBufferHeight: number;Defined in: types/desktop-engine.d.ts:1995
Drawing buffer height
drawingBufferWidth
readonly drawingBufferWidth: number;Defined in: types/desktop-engine.d.ts:1993
Drawing buffer width
DST_ALPHA
readonly DST_ALPHA: number;Defined in: types/desktop-engine.d.ts:2318
Constant GL_DST_ALPHA
DST_COLOR
readonly DST_COLOR: number;Defined in: types/desktop-engine.d.ts:2322
Constant GL_DST_COLOR
DYNAMIC_DRAW
readonly DYNAMIC_DRAW: number;Defined in: types/desktop-engine.d.ts:2370
Constant GL_DYNAMIC_DRAW
ELEMENT_ARRAY_BUFFER
readonly ELEMENT_ARRAY_BUFFER: number;Defined in: types/desktop-engine.d.ts:2360
Constant GL_ELEMENT_ARRAY_BUFFER
ELEMENT_ARRAY_BUFFER_BINDING
readonly ELEMENT_ARRAY_BUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:2364
Constant GL_ELEMENT_ARRAY_BUFFER_BINDING
EQUAL
readonly EQUAL: number;Defined in: types/desktop-engine.d.ts:2600
Constant GL_EQUAL
EXTENSIONS
readonly EXTENSIONS: number;Defined in: types/desktop-engine.d.ts:2632
Constant GL_EXTENSIONS
FALSE
readonly FALSE: number;Defined in: types/desktop-engine.d.ts:2288
Constant GL_FALSE
FASTEST
readonly FASTEST: number;Defined in: types/desktop-engine.d.ts:2516
Constant GL_FASTEST
FIXED
readonly FIXED: number;Defined in: types/desktop-engine.d.ts:2536
Constant GL_FIXED
FLOAT
readonly FLOAT: number;Defined in: types/desktop-engine.d.ts:2534
Constant GL_FLOAT
FLOAT_MAT2
readonly FLOAT_MAT2: number;Defined in: types/desktop-engine.d.ts:2766
Constant GL_FLOAT_MAT2
FLOAT_MAT3
readonly FLOAT_MAT3: number;Defined in: types/desktop-engine.d.ts:2768
Constant GL_FLOAT_MAT3
FLOAT_MAT4
readonly FLOAT_MAT4: number;Defined in: types/desktop-engine.d.ts:2770
Constant GL_FLOAT_MAT4
FLOAT_VEC2
readonly FLOAT_VEC2: number;Defined in: types/desktop-engine.d.ts:2746
Constant GL_FLOAT_VEC2
FLOAT_VEC3
readonly FLOAT_VEC3: number;Defined in: types/desktop-engine.d.ts:2748
Constant GL_FLOAT_VEC3
FLOAT_VEC4
readonly FLOAT_VEC4: number;Defined in: types/desktop-engine.d.ts:2750
Constant GL_FLOAT_VEC4
FRAGMENT_SHADER
readonly FRAGMENT_SHADER: number;Defined in: types/desktop-engine.d.ts:2556
Constant GL_FRAGMENT_SHADER
FRAMEBUFFER
readonly FRAMEBUFFER: number;Defined in: types/desktop-engine.d.ts:2818
Constant GL_FRAMEBUFFER
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;Defined in: types/desktop-engine.d.ts:2856
Constant GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
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
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
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;Defined in: types/desktop-engine.d.ts:2858
Constant GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
FRAMEBUFFER_BINDING
readonly FRAMEBUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:2882
Constant GL_FRAMEBUFFER_BINDING
FRAMEBUFFER_COMPLETE
readonly FRAMEBUFFER_COMPLETE: number;Defined in: types/desktop-engine.d.ts:2872
Constant GL_FRAMEBUFFER_COMPLETE
FRAMEBUFFER_INCOMPLETE_ATTACHMENT
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2874
Constant GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
FRAMEBUFFER_INCOMPLETE_DIMENSIONS
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;Defined in: types/desktop-engine.d.ts:2878
Constant GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2876
Constant GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
FRAMEBUFFER_UNSUPPORTED
readonly FRAMEBUFFER_UNSUPPORTED: number;Defined in: types/desktop-engine.d.ts:2880
Constant GL_FRAMEBUFFER_UNSUPPORTED
FRONT
readonly FRONT: number;Defined in: types/desktop-engine.d.ts:2378
Constant GL_FRONT
FRONT_AND_BACK
readonly FRONT_AND_BACK: number;Defined in: types/desktop-engine.d.ts:2382
Constant GL_FRONT_AND_BACK
FRONT_FACE
readonly FRONT_FACE: number;Defined in: types/desktop-engine.d.ts:2426
Constant GL_FRONT_FACE
FUNC_ADD
readonly FUNC_ADD: number;Defined in: types/desktop-engine.d.ts:2328
Constant GL_FUNC_ADD
FUNC_REVERSE_SUBTRACT
readonly FUNC_REVERSE_SUBTRACT: number;Defined in: types/desktop-engine.d.ts:2338
Constant GL_FUNC_REVERSE_SUBTRACT
FUNC_SUBTRACT
readonly FUNC_SUBTRACT: number;Defined in: types/desktop-engine.d.ts:2336
Constant GL_FUNC_SUBTRACT
GENERATE_MIPMAP_HINT
readonly GENERATE_MIPMAP_HINT: number;Defined in: types/desktop-engine.d.ts:2520
Constant GL_GENERATE_MIPMAP_HINT
GEQUAL
readonly GEQUAL: number;Defined in: types/desktop-engine.d.ts:2608
Constant GL_GEQUAL
GREATER
readonly GREATER: number;Defined in: types/desktop-engine.d.ts:2604
Constant GL_GREATER
GREEN_BITS
readonly GREEN_BITS: number;Defined in: types/desktop-engine.d.ts:2486
Constant GL_GREEN_BITS
HIGH_FLOAT
readonly HIGH_FLOAT: number;Defined in: types/desktop-engine.d.ts:2810
Constant GL_HIGH_FLOAT
HIGH_INT
readonly HIGH_INT: number;Defined in: types/desktop-engine.d.ts:2816
Constant GL_HIGH_INT
IMPLEMENTATION_COLOR_READ_FORMAT
readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;Defined in: types/desktop-engine.d.ts:2792
Constant GL_IMPLEMENTATION_COLOR_READ_FORMAT
IMPLEMENTATION_COLOR_READ_TYPE
readonly IMPLEMENTATION_COLOR_READ_TYPE: number;Defined in: types/desktop-engine.d.ts:2790
Constant GL_IMPLEMENTATION_COLOR_READ_TYPE
INCR
readonly INCR: number;Defined in: types/desktop-engine.d.ts:2616
Constant GL_INCR
INCR_WRAP
readonly INCR_WRAP: number;Defined in: types/desktop-engine.d.ts:2622
Constant GL_INCR_WRAP
INFO_LOG_LENGTH
readonly INFO_LOG_LENGTH: number;Defined in: types/desktop-engine.d.ts:2796
Constant GL_INFO_LOG_LENGTH
INT
readonly INT: number;Defined in: types/desktop-engine.d.ts:2530
Constant GL_INT
INT_VEC2
readonly INT_VEC2: number;Defined in: types/desktop-engine.d.ts:2752
Constant GL_INT_VEC2
INT_VEC3
readonly INT_VEC3: number;Defined in: types/desktop-engine.d.ts:2754
Constant GL_INT_VEC3
INT_VEC4
readonly INT_VEC4: number;Defined in: types/desktop-engine.d.ts:2756
Constant GL_INT_VEC4
INVALID_ENUM
readonly INVALID_ENUM: number;Defined in: types/desktop-engine.d.ts:2406
Constant GL_INVALID_ENUM
INVALID_FRAMEBUFFER_OPERATION
readonly INVALID_FRAMEBUFFER_OPERATION: number;Defined in: types/desktop-engine.d.ts:2888
Constant GL_INVALID_FRAMEBUFFER_OPERATION
INVALID_OPERATION
readonly INVALID_OPERATION: number;Defined in: types/desktop-engine.d.ts:2410
Constant GL_INVALID_OPERATION
INVALID_VALUE
readonly INVALID_VALUE: number;Defined in: types/desktop-engine.d.ts:2408
Constant GL_INVALID_VALUE
INVERT
readonly INVERT: number;Defined in: types/desktop-engine.d.ts:2620
Constant GL_INVERT
KEEP
readonly KEEP: number;Defined in: types/desktop-engine.d.ts:2612
Constant GL_KEEP
LEQUAL
readonly LEQUAL: number;Defined in: types/desktop-engine.d.ts:2602
Constant GL_LEQUAL
LESS
readonly LESS: number;Defined in: types/desktop-engine.d.ts:2598
Constant GL_LESS
LINE_LOOP
readonly LINE_LOOP: number;Defined in: types/desktop-engine.d.ts:2296
Constant GL_LINE_LOOP
LINE_STRIP
readonly LINE_STRIP: number;Defined in: types/desktop-engine.d.ts:2298
Constant GL_LINE_STRIP
LINE_WIDTH
readonly LINE_WIDTH: number;Defined in: types/desktop-engine.d.ts:2418
Constant GL_LINE_WIDTH
LINEAR
readonly LINEAR: number;Defined in: types/desktop-engine.d.ts:2636
Constant GL_LINEAR
LINEAR_MIPMAP_LINEAR
readonly LINEAR_MIPMAP_LINEAR: number;Defined in: types/desktop-engine.d.ts:2644
Constant GL_LINEAR_MIPMAP_LINEAR
LINEAR_MIPMAP_NEAREST
readonly LINEAR_MIPMAP_NEAREST: number;Defined in: types/desktop-engine.d.ts:2640
Constant GL_LINEAR_MIPMAP_NEAREST
LINES
readonly LINES: number;Defined in: types/desktop-engine.d.ts:2294
Constant GL_LINES
LINK_STATUS
readonly LINK_STATUS: number;Defined in: types/desktop-engine.d.ts:2578
Constant GL_LINK_STATUS
LOW_FLOAT
readonly LOW_FLOAT: number;Defined in: types/desktop-engine.d.ts:2806
Constant GL_LOW_FLOAT
LOW_INT
readonly LOW_INT: number;Defined in: types/desktop-engine.d.ts:2812
Constant GL_LOW_INT
LUMINANCE
readonly LUMINANCE: number;Defined in: types/desktop-engine.d.ts:2546
Constant GL_LUMINANCE
LUMINANCE_ALPHA
readonly LUMINANCE_ALPHA: number;Defined in: types/desktop-engine.d.ts:2548
Constant GL_LUMINANCE_ALPHA
MAX_COMBINED_TEXTURE_IMAGE_UNITS
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
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
readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;Defined in: types/desktop-engine.d.ts:2572
Constant GL_MAX_FRAGMENT_UNIFORM_VECTORS
MAX_RENDERBUFFER_SIZE
readonly MAX_RENDERBUFFER_SIZE: number;Defined in: types/desktop-engine.d.ts:2886
Constant GL_MAX_RENDERBUFFER_SIZE
MAX_TEXTURE_IMAGE_UNITS
readonly MAX_TEXTURE_IMAGE_UNITS: number;Defined in: types/desktop-engine.d.ts:2570
Constant GL_MAX_TEXTURE_IMAGE_UNITS
MAX_TEXTURE_SIZE
readonly MAX_TEXTURE_SIZE: number;Defined in: types/desktop-engine.d.ts:2478
Constant GL_MAX_TEXTURE_SIZE
MAX_VARYING_VECTORS
readonly MAX_VARYING_VECTORS: number;Defined in: types/desktop-engine.d.ts:2564
Constant GL_MAX_VARYING_VECTORS
MAX_VERTEX_ATTRIBS
readonly MAX_VERTEX_ATTRIBS: number;Defined in: types/desktop-engine.d.ts:2560
Constant GL_MAX_VERTEX_ATTRIBS
MAX_VERTEX_TEXTURE_IMAGE_UNITS
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
readonly MAX_VERTEX_UNIFORM_VECTORS: number;Defined in: types/desktop-engine.d.ts:2562
Constant GL_MAX_VERTEX_UNIFORM_VECTORS
MAX_VIEWPORT_DIMS
readonly MAX_VIEWPORT_DIMS: number;Defined in: types/desktop-engine.d.ts:2480
Constant GL_MAX_VIEWPORT_DIMS
MEDIUM_FLOAT
readonly MEDIUM_FLOAT: number;Defined in: types/desktop-engine.d.ts:2808
Constant GL_MEDIUM_FLOAT
MEDIUM_INT
readonly MEDIUM_INT: number;Defined in: types/desktop-engine.d.ts:2814
Constant GL_MEDIUM_INT
MIRRORED_REPEAT
readonly MIRRORED_REPEAT: number;Defined in: types/desktop-engine.d.ts:2744
Constant GL_MIRRORED_REPEAT
NEAREST
readonly NEAREST: number;Defined in: types/desktop-engine.d.ts:2634
Constant GL_NEAREST
NEAREST_MIPMAP_LINEAR
readonly NEAREST_MIPMAP_LINEAR: number;Defined in: types/desktop-engine.d.ts:2642
Constant GL_NEAREST_MIPMAP_LINEAR
NEAREST_MIPMAP_NEAREST
readonly NEAREST_MIPMAP_NEAREST: number;Defined in: types/desktop-engine.d.ts:2638
Constant GL_NEAREST_MIPMAP_NEAREST
NEVER
readonly NEVER: number;Defined in: types/desktop-engine.d.ts:2596
Constant GL_NEVER
NICEST
readonly NICEST: number;Defined in: types/desktop-engine.d.ts:2518
Constant GL_NICEST
NO_ERROR
readonly NO_ERROR: number;Defined in: types/desktop-engine.d.ts:2404
Constant GL_NO_ERROR
NONE
readonly NONE: number;Defined in: types/desktop-engine.d.ts:2870
Constant GL_NONE
NOTEQUAL
readonly NOTEQUAL: number;Defined in: types/desktop-engine.d.ts:2606
Constant GL_NOTEQUAL
NUM_COMPRESSED_TEXTURE_FORMATS
readonly NUM_COMPRESSED_TEXTURE_FORMATS: number;Defined in: types/desktop-engine.d.ts:2510
Constant GL_NUM_COMPRESSED_TEXTURE_FORMATS
NUM_SHADER_BINARY_FORMATS
readonly NUM_SHADER_BINARY_FORMATS: number;Defined in: types/desktop-engine.d.ts:2804
Constant GL_NUM_SHADER_BINARY_FORMATS
ONE
readonly ONE: number;Defined in: types/desktop-engine.d.ts:2308
Constant GL_ONE
ONE_MINUS_CONSTANT_ALPHA
readonly ONE_MINUS_CONSTANT_ALPHA: number;Defined in: types/desktop-engine.d.ts:2354
Constant GL_ONE_MINUS_CONSTANT_ALPHA
ONE_MINUS_CONSTANT_COLOR
readonly ONE_MINUS_CONSTANT_COLOR: number;Defined in: types/desktop-engine.d.ts:2350
Constant GL_ONE_MINUS_CONSTANT_COLOR
ONE_MINUS_DST_ALPHA
readonly ONE_MINUS_DST_ALPHA: number;Defined in: types/desktop-engine.d.ts:2320
Constant GL_ONE_MINUS_DST_ALPHA
ONE_MINUS_DST_COLOR
readonly ONE_MINUS_DST_COLOR: number;Defined in: types/desktop-engine.d.ts:2324
Constant GL_ONE_MINUS_DST_COLOR
ONE_MINUS_SRC_ALPHA
readonly ONE_MINUS_SRC_ALPHA: number;Defined in: types/desktop-engine.d.ts:2316
Constant GL_ONE_MINUS_SRC_ALPHA
ONE_MINUS_SRC_COLOR
readonly ONE_MINUS_SRC_COLOR: number;Defined in: types/desktop-engine.d.ts:2312
Constant GL_ONE_MINUS_SRC_COLOR
OUT_OF_MEMORY
readonly OUT_OF_MEMORY: number;Defined in: types/desktop-engine.d.ts:2412
Constant GL_OUT_OF_MEMORY
PACK_ALIGNMENT
readonly PACK_ALIGNMENT: number;Defined in: types/desktop-engine.d.ts:2476
Constant GL_PACK_ALIGNMENT
POINTS
readonly POINTS: number;Defined in: types/desktop-engine.d.ts:2292
Constant GL_POINTS
POLYGON_OFFSET_FACTOR
readonly POLYGON_OFFSET_FACTOR: number;Defined in: types/desktop-engine.d.ts:2498
Constant GL_POLYGON_OFFSET_FACTOR
POLYGON_OFFSET_FILL
readonly POLYGON_OFFSET_FILL: number;Defined in: types/desktop-engine.d.ts:2398
Constant GL_POLYGON_OFFSET_FILL
POLYGON_OFFSET_UNITS
readonly POLYGON_OFFSET_UNITS: number;Defined in: types/desktop-engine.d.ts:2496
Constant GL_POLYGON_OFFSET_UNITS
RED_BITS
readonly RED_BITS: number;Defined in: types/desktop-engine.d.ts:2484
Constant GL_RED_BITS
RENDERBUFFER
readonly RENDERBUFFER: number;Defined in: types/desktop-engine.d.ts:2820
Constant GL_RENDERBUFFER
RENDERBUFFER_ALPHA_SIZE
readonly RENDERBUFFER_ALPHA_SIZE: number;Defined in: types/desktop-engine.d.ts:2848
Constant GL_RENDERBUFFER_ALPHA_SIZE
RENDERBUFFER_BINDING
readonly RENDERBUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:2884
Constant GL_RENDERBUFFER_BINDING
RENDERBUFFER_BLUE_SIZE
readonly RENDERBUFFER_BLUE_SIZE: number;Defined in: types/desktop-engine.d.ts:2846
Constant GL_RENDERBUFFER_BLUE_SIZE
RENDERBUFFER_DEPTH_SIZE
readonly RENDERBUFFER_DEPTH_SIZE: number;Defined in: types/desktop-engine.d.ts:2850
Constant GL_RENDERBUFFER_DEPTH_SIZE
RENDERBUFFER_GREEN_SIZE
readonly RENDERBUFFER_GREEN_SIZE: number;Defined in: types/desktop-engine.d.ts:2844
Constant GL_RENDERBUFFER_GREEN_SIZE
RENDERBUFFER_HEIGHT
readonly RENDERBUFFER_HEIGHT: number;Defined in: types/desktop-engine.d.ts:2838
Constant GL_RENDERBUFFER_HEIGHT
RENDERBUFFER_INTERNAL_FORMAT
readonly RENDERBUFFER_INTERNAL_FORMAT: number;Defined in: types/desktop-engine.d.ts:2840
Constant GL_RENDERBUFFER_INTERNAL_FORMAT
RENDERBUFFER_RED_SIZE
readonly RENDERBUFFER_RED_SIZE: number;Defined in: types/desktop-engine.d.ts:2842
Constant GL_RENDERBUFFER_RED_SIZE
RENDERBUFFER_STENCIL_SIZE
readonly RENDERBUFFER_STENCIL_SIZE: number;Defined in: types/desktop-engine.d.ts:2852
Constant GL_RENDERBUFFER_STENCIL_SIZE
RENDERBUFFER_WIDTH
readonly RENDERBUFFER_WIDTH: number;Defined in: types/desktop-engine.d.ts:2836
Constant GL_RENDERBUFFER_WIDTH
RENDERER
readonly RENDERER: number;Defined in: types/desktop-engine.d.ts:2628
Constant GL_RENDERER
REPEAT
readonly REPEAT: number;Defined in: types/desktop-engine.d.ts:2740
Constant GL_REPEAT
REPLACE
readonly REPLACE: number;Defined in: types/desktop-engine.d.ts:2614
Constant GL_REPLACE
RGB
readonly RGB: number;Defined in: types/desktop-engine.d.ts:2542
Constant GL_RGB
RGB5_A1
readonly RGB5_A1: number;Defined in: types/desktop-engine.d.ts:2824
Constant GL_RGB5_A1
RGB565
readonly RGB565: number;Defined in: types/desktop-engine.d.ts:2826
Constant GL_RGB565
RGBA
readonly RGBA: number;Defined in: types/desktop-engine.d.ts:2544
Constant GL_RGBA
RGBA4
readonly RGBA4: number;Defined in: types/desktop-engine.d.ts:2822
Constant GL_RGBA4
SAMPLE_ALPHA_TO_COVERAGE
readonly SAMPLE_ALPHA_TO_COVERAGE: number;Defined in: types/desktop-engine.d.ts:2400
Constant GL_SAMPLE_ALPHA_TO_COVERAGE
SAMPLE_BUFFERS
readonly SAMPLE_BUFFERS: number;Defined in: types/desktop-engine.d.ts:2502
Constant GL_SAMPLE_BUFFERS
SAMPLE_COVERAGE
readonly SAMPLE_COVERAGE: number;Defined in: types/desktop-engine.d.ts:2402
Constant GL_SAMPLE_COVERAGE
SAMPLE_COVERAGE_INVERT
readonly SAMPLE_COVERAGE_INVERT: number;Defined in: types/desktop-engine.d.ts:2508
Constant GL_SAMPLE_COVERAGE_INVERT
SAMPLE_COVERAGE_VALUE
readonly SAMPLE_COVERAGE_VALUE: number;Defined in: types/desktop-engine.d.ts:2506
Constant GL_SAMPLE_COVERAGE_VALUE
SAMPLER_2D
readonly SAMPLER_2D: number;Defined in: types/desktop-engine.d.ts:2772
Constant GL_SAMPLER_2D
SAMPLER_CUBE
readonly SAMPLER_CUBE: number;Defined in: types/desktop-engine.d.ts:2774
Constant GL_SAMPLER_CUBE
SAMPLES
readonly SAMPLES: number;Defined in: types/desktop-engine.d.ts:2504
Constant GL_SAMPLES
SCISSOR_BOX
readonly SCISSOR_BOX: number;Defined in: types/desktop-engine.d.ts:2468
Constant GL_SCISSOR_BOX
SCISSOR_TEST
readonly SCISSOR_TEST: number;Defined in: types/desktop-engine.d.ts:2396
Constant GL_SCISSOR_TEST
SHADER_BINARY_FORMATS
readonly SHADER_BINARY_FORMATS: number;Defined in: types/desktop-engine.d.ts:2802
Constant GL_SHADER_BINARY_FORMATS
SHADER_COMPILER
readonly SHADER_COMPILER: number;Defined in: types/desktop-engine.d.ts:2800
Constant GL_SHADER_COMPILER
SHADER_SOURCE_LENGTH
readonly SHADER_SOURCE_LENGTH: number;Defined in: types/desktop-engine.d.ts:2798
Constant GL_SHADER_SOURCE_LENGTH
SHADER_TYPE
readonly SHADER_TYPE: number;Defined in: types/desktop-engine.d.ts:2574
Constant GL_SHADER_TYPE
SHADING_LANGUAGE_VERSION
readonly SHADING_LANGUAGE_VERSION: number;Defined in: types/desktop-engine.d.ts:2592
Constant GL_SHADING_LANGUAGE_VERSION
SHORT
readonly SHORT: number;Defined in: types/desktop-engine.d.ts:2526
Constant GL_SHORT
SRC_ALPHA
readonly SRC_ALPHA: number;Defined in: types/desktop-engine.d.ts:2314
Constant GL_SRC_ALPHA
SRC_ALPHA_SATURATE
readonly SRC_ALPHA_SATURATE: number;Defined in: types/desktop-engine.d.ts:2326
Constant GL_SRC_ALPHA_SATURATE
SRC_COLOR
readonly SRC_COLOR: number;Defined in: types/desktop-engine.d.ts:2310
Constant GL_SRC_COLOR
STATIC_DRAW
readonly STATIC_DRAW: number;Defined in: types/desktop-engine.d.ts:2368
Constant GL_STATIC_DRAW
STENCIL_ATTACHMENT
readonly STENCIL_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2866
Constant GL_STENCIL_ATTACHMENT
STENCIL_BACK_FAIL
readonly STENCIL_BACK_FAIL: number;Defined in: types/desktop-engine.d.ts:2454
Constant GL_STENCIL_BACK_FAIL
STENCIL_BACK_FUNC
readonly STENCIL_BACK_FUNC: number;Defined in: types/desktop-engine.d.ts:2452
Constant GL_STENCIL_BACK_FUNC
STENCIL_BACK_PASS_DEPTH_FAIL
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
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
readonly STENCIL_BACK_REF: number;Defined in: types/desktop-engine.d.ts:2460
Constant GL_STENCIL_BACK_REF
STENCIL_BACK_VALUE_MASK
readonly STENCIL_BACK_VALUE_MASK: number;Defined in: types/desktop-engine.d.ts:2462
Constant GL_STENCIL_BACK_VALUE_MASK
STENCIL_BACK_WRITEMASK
readonly STENCIL_BACK_WRITEMASK: number;Defined in: types/desktop-engine.d.ts:2464
Constant GL_STENCIL_BACK_WRITEMASK
STENCIL_BITS
readonly STENCIL_BITS: number;Defined in: types/desktop-engine.d.ts:2494
Constant GL_STENCIL_BITS
STENCIL_BUFFER_BIT
readonly STENCIL_BUFFER_BIT: number;Defined in: types/desktop-engine.d.ts:2284
Constant GL_STENCIL_BUFFER_BIT
STENCIL_CLEAR_VALUE
readonly STENCIL_CLEAR_VALUE: number;Defined in: types/desktop-engine.d.ts:2436
Constant GL_STENCIL_CLEAR_VALUE
STENCIL_FAIL
readonly STENCIL_FAIL: number;Defined in: types/desktop-engine.d.ts:2440
Constant GL_STENCIL_FAIL
STENCIL_FUNC
readonly STENCIL_FUNC: number;Defined in: types/desktop-engine.d.ts:2438
Constant GL_STENCIL_FUNC
STENCIL_INDEX
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
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
readonly STENCIL_PASS_DEPTH_FAIL: number;Defined in: types/desktop-engine.d.ts:2442
Constant GL_STENCIL_PASS_DEPTH_FAIL
STENCIL_PASS_DEPTH_PASS
readonly STENCIL_PASS_DEPTH_PASS: number;Defined in: types/desktop-engine.d.ts:2444
Constant GL_STENCIL_PASS_DEPTH_PASS
STENCIL_REF
readonly STENCIL_REF: number;Defined in: types/desktop-engine.d.ts:2446
Constant GL_STENCIL_REF
STENCIL_TEST
readonly STENCIL_TEST: number;Defined in: types/desktop-engine.d.ts:2392
Constant GL_STENCIL_TEST
STENCIL_VALUE_MASK
readonly STENCIL_VALUE_MASK: number;Defined in: types/desktop-engine.d.ts:2448
Constant GL_STENCIL_VALUE_MASK
STENCIL_WRITEMASK
readonly STENCIL_WRITEMASK: number;Defined in: types/desktop-engine.d.ts:2450
Constant GL_STENCIL_WRITEMASK
STREAM_DRAW
readonly STREAM_DRAW: number;Defined in: types/desktop-engine.d.ts:2366
Constant GL_STREAM_DRAW
SUBPIXEL_BITS
readonly SUBPIXEL_BITS: number;Defined in: types/desktop-engine.d.ts:2482
Constant GL_SUBPIXEL_BITS
TEXTURE
readonly TEXTURE: number;Defined in: types/desktop-engine.d.ts:2654
Constant GL_TEXTURE
TEXTURE_2D
readonly TEXTURE_2D: number;Defined in: types/desktop-engine.d.ts:2384
Constant GL_TEXTURE_2D
TEXTURE_BINDING_2D
readonly TEXTURE_BINDING_2D: number;Defined in: types/desktop-engine.d.ts:2500
Constant GL_TEXTURE_BINDING_2D
TEXTURE_BINDING_CUBE_MAP
readonly TEXTURE_BINDING_CUBE_MAP: number;Defined in: types/desktop-engine.d.ts:2658
Constant GL_TEXTURE_BINDING_CUBE_MAP
TEXTURE_CUBE_MAP
readonly TEXTURE_CUBE_MAP: number;Defined in: types/desktop-engine.d.ts:2656
Constant GL_TEXTURE_CUBE_MAP
TEXTURE_CUBE_MAP_NEGATIVE_X
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
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
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
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
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
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
readonly TEXTURE_MAG_FILTER: number;Defined in: types/desktop-engine.d.ts:2646
Constant GL_TEXTURE_MAG_FILTER
TEXTURE_MIN_FILTER
readonly TEXTURE_MIN_FILTER: number;Defined in: types/desktop-engine.d.ts:2648
Constant GL_TEXTURE_MIN_FILTER
TEXTURE_WRAP_S
readonly TEXTURE_WRAP_S: number;Defined in: types/desktop-engine.d.ts:2650
Constant GL_TEXTURE_WRAP_S
TEXTURE_WRAP_T
readonly TEXTURE_WRAP_T: number;Defined in: types/desktop-engine.d.ts:2652
Constant GL_TEXTURE_WRAP_T
TEXTURE0
readonly TEXTURE0: number;Defined in: types/desktop-engine.d.ts:2674
Constant GL_TEXTURE0
TEXTURE1
readonly TEXTURE1: number;Defined in: types/desktop-engine.d.ts:2676
Constant GL_TEXTURE1
TEXTURE10
readonly TEXTURE10: number;Defined in: types/desktop-engine.d.ts:2694
Constant GL_TEXTURE10
TEXTURE11
readonly TEXTURE11: number;Defined in: types/desktop-engine.d.ts:2696
Constant GL_TEXTURE11
TEXTURE12
readonly TEXTURE12: number;Defined in: types/desktop-engine.d.ts:2698
Constant GL_TEXTURE12
TEXTURE13
readonly TEXTURE13: number;Defined in: types/desktop-engine.d.ts:2700
Constant GL_TEXTURE13
TEXTURE14
readonly TEXTURE14: number;Defined in: types/desktop-engine.d.ts:2702
Constant GL_TEXTURE14
TEXTURE15
readonly TEXTURE15: number;Defined in: types/desktop-engine.d.ts:2704
Constant GL_TEXTURE15
TEXTURE16
readonly TEXTURE16: number;Defined in: types/desktop-engine.d.ts:2706
Constant GL_TEXTURE16
TEXTURE17
readonly TEXTURE17: number;Defined in: types/desktop-engine.d.ts:2708
Constant GL_TEXTURE17
TEXTURE18
readonly TEXTURE18: number;Defined in: types/desktop-engine.d.ts:2710
Constant GL_TEXTURE18
TEXTURE19
readonly TEXTURE19: number;Defined in: types/desktop-engine.d.ts:2712
Constant GL_TEXTURE19
TEXTURE2
readonly TEXTURE2: number;Defined in: types/desktop-engine.d.ts:2678
Constant GL_TEXTURE2
TEXTURE20
readonly TEXTURE20: number;Defined in: types/desktop-engine.d.ts:2714
Constant GL_TEXTURE20
TEXTURE21
readonly TEXTURE21: number;Defined in: types/desktop-engine.d.ts:2716
Constant GL_TEXTURE21
TEXTURE22
readonly TEXTURE22: number;Defined in: types/desktop-engine.d.ts:2718
Constant GL_TEXTURE22
TEXTURE23
readonly TEXTURE23: number;Defined in: types/desktop-engine.d.ts:2720
Constant GL_TEXTURE23
TEXTURE24
readonly TEXTURE24: number;Defined in: types/desktop-engine.d.ts:2722
Constant GL_TEXTURE24
TEXTURE25
readonly TEXTURE25: number;Defined in: types/desktop-engine.d.ts:2724
Constant GL_TEXTURE25
TEXTURE26
readonly TEXTURE26: number;Defined in: types/desktop-engine.d.ts:2726
Constant GL_TEXTURE26
TEXTURE27
readonly TEXTURE27: number;Defined in: types/desktop-engine.d.ts:2728
Constant GL_TEXTURE27
TEXTURE28
readonly TEXTURE28: number;Defined in: types/desktop-engine.d.ts:2730
Constant GL_TEXTURE28
TEXTURE29
readonly TEXTURE29: number;Defined in: types/desktop-engine.d.ts:2732
Constant GL_TEXTURE29
TEXTURE3
readonly TEXTURE3: number;Defined in: types/desktop-engine.d.ts:2680
Constant GL_TEXTURE3
TEXTURE30
readonly TEXTURE30: number;Defined in: types/desktop-engine.d.ts:2734
Constant GL_TEXTURE30
TEXTURE31
readonly TEXTURE31: number;Defined in: types/desktop-engine.d.ts:2736
Constant GL_TEXTURE31
TEXTURE4
readonly TEXTURE4: number;Defined in: types/desktop-engine.d.ts:2682
Constant GL_TEXTURE4
TEXTURE5
readonly TEXTURE5: number;Defined in: types/desktop-engine.d.ts:2684
Constant GL_TEXTURE5
TEXTURE6
readonly TEXTURE6: number;Defined in: types/desktop-engine.d.ts:2686
Constant GL_TEXTURE6
TEXTURE7
readonly TEXTURE7: number;Defined in: types/desktop-engine.d.ts:2688
Constant GL_TEXTURE7
TEXTURE8
readonly TEXTURE8: number;Defined in: types/desktop-engine.d.ts:2690
Constant GL_TEXTURE8
TEXTURE9
readonly TEXTURE9: number;Defined in: types/desktop-engine.d.ts:2692
Constant GL_TEXTURE9
TRIANGLE_FAN
readonly TRIANGLE_FAN: number;Defined in: types/desktop-engine.d.ts:2304
Constant GL_TRIANGLE_FAN
TRIANGLE_STRIP
readonly TRIANGLE_STRIP: number;Defined in: types/desktop-engine.d.ts:2302
Constant GL_TRIANGLE_STRIP
TRIANGLES
readonly TRIANGLES: number;Defined in: types/desktop-engine.d.ts:2300
Constant GL_TRIANGLES
TRUE
readonly TRUE: number;Defined in: types/desktop-engine.d.ts:2290
Constant GL_TRUE
UNPACK_ALIGNMENT
readonly UNPACK_ALIGNMENT: number;Defined in: types/desktop-engine.d.ts:2474
Constant GL_UNPACK_ALIGNMENT
UNPACK_COLORSPACE_CONVERSION_WEBGL
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;Defined in: types/desktop-engine.d.ts:2896
Constant GL_UNPACK_COLORSPACE_CONVERSION_WEBGL
UNPACK_FLIP_Y_WEBGL
readonly UNPACK_FLIP_Y_WEBGL: number;Defined in: types/desktop-engine.d.ts:2890
Constant GL_UNPACK_FLIP_Y_WEBGL
UNPACK_PREMULTIPLY_ALPHA_WEBGL
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;Defined in: types/desktop-engine.d.ts:2892
Constant GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL
UNSIGNED_BYTE
readonly UNSIGNED_BYTE: number;Defined in: types/desktop-engine.d.ts:2524
Constant GL_UNSIGNED_BYTE
UNSIGNED_INT
readonly UNSIGNED_INT: number;Defined in: types/desktop-engine.d.ts:2532
Constant GL_UNSIGNED_INT
UNSIGNED_SHORT
readonly UNSIGNED_SHORT: number;Defined in: types/desktop-engine.d.ts:2528
Constant GL_UNSIGNED_SHORT
UNSIGNED_SHORT_4_4_4_4
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
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
readonly UNSIGNED_SHORT_5_6_5: number;Defined in: types/desktop-engine.d.ts:2554
Constant GL_UNSIGNED_SHORT_5_6_5
VALIDATE_STATUS
readonly VALIDATE_STATUS: number;Defined in: types/desktop-engine.d.ts:2580
Constant GL_VALIDATE_STATUS
VENDOR
readonly VENDOR: number;Defined in: types/desktop-engine.d.ts:2626
Constant GL_VENDOR
VERSION
readonly VERSION: number;Defined in: types/desktop-engine.d.ts:2630
Constant GL_VERSION
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
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
readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;Defined in: types/desktop-engine.d.ts:2776
Constant GL_VERTEX_ATTRIB_ARRAY_ENABLED
VERTEX_ATTRIB_ARRAY_NORMALIZED
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;Defined in: types/desktop-engine.d.ts:2784
Constant GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
VERTEX_ATTRIB_ARRAY_POINTER
readonly VERTEX_ATTRIB_ARRAY_POINTER: number;Defined in: types/desktop-engine.d.ts:2786
Constant GL_VERTEX_ATTRIB_ARRAY_POINTER
VERTEX_ATTRIB_ARRAY_SIZE
readonly VERTEX_ATTRIB_ARRAY_SIZE: number;Defined in: types/desktop-engine.d.ts:2778
Constant GL_VERTEX_ATTRIB_ARRAY_SIZE
VERTEX_ATTRIB_ARRAY_STRIDE
readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;Defined in: types/desktop-engine.d.ts:2780
Constant GL_VERTEX_ATTRIB_ARRAY_STRIDE
VERTEX_ATTRIB_ARRAY_TYPE
readonly VERTEX_ATTRIB_ARRAY_TYPE: number;Defined in: types/desktop-engine.d.ts:2782
Constant GL_VERTEX_ATTRIB_ARRAY_TYPE
VERTEX_SHADER
readonly VERTEX_SHADER: number;Defined in: types/desktop-engine.d.ts:2558
Constant GL_VERTEX_SHADER
VIEWPORT
readonly VIEWPORT: number;Defined in: types/desktop-engine.d.ts:2466
Constant GL_VIEWPORT
ZERO
readonly ZERO: number;Defined in: types/desktop-engine.d.ts:2306
Constant GL_ZERO
Methods
activeTexture()
activeTexture(texture): void;Defined in: types/desktop-engine.d.ts:2008
Activates a texture unit
Parameters
| Parameter | Type |
|---|---|
texture | number |
Returns
void
attachShader()
attachShader(program, shader): void;Defined in: types/desktop-engine.d.ts:2010
Attaches a shader
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
shader | WebGLShader |
Returns
void
bindAttribLocation()
bindAttribLocation(
program,
index,
name
): void;Defined in: types/desktop-engine.d.ts:2012
Binds an attribute location
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
index | number |
name | string |
Returns
void
bindBuffer()
bindBuffer(target, buffer): void;Defined in: types/desktop-engine.d.ts:2014
Binds a buffer
Parameters
| Parameter | Type |
|---|---|
target | number |
buffer | WebGLBuffer | null |
Returns
void
bindFramebuffer()
bindFramebuffer(target, framebuffer): void;Defined in: types/desktop-engine.d.ts:2018
Binds a framebuffer
Parameters
| Parameter | Type |
|---|---|
target | number |
framebuffer | WebGLFramebuffer | null |
Returns
void
bindRenderbuffer()
bindRenderbuffer(target, renderbuffer): void;Defined in: types/desktop-engine.d.ts:2016
Binds a renderbuffer
Parameters
| Parameter | Type |
|---|---|
target | number |
renderbuffer | WebGLRenderbuffer | null |
Returns
void
bindTexture()
bindTexture(target, texture): void;Defined in: types/desktop-engine.d.ts:2020
Binds a texture
Parameters
| Parameter | Type |
|---|---|
target | number |
texture | WebGLTexture | null |
Returns
void
blendColor()
blendColor(
red,
green,
blue,
alpha
): void;Defined in: types/desktop-engine.d.ts:2022
Blend color
Parameters
| Parameter | Type |
|---|---|
red | number |
green | number |
blue | number |
alpha | number |
Returns
void
blendEquation()
blendEquation(mode): void;Defined in: types/desktop-engine.d.ts:2024
Blend equation
Parameters
| Parameter | Type |
|---|---|
mode | number |
Returns
void
blendEquationSeparate()
blendEquationSeparate(modeRGB, modeAlpha): void;Defined in: types/desktop-engine.d.ts:2026
Separate blend equations
Parameters
| Parameter | Type |
|---|---|
modeRGB | number |
modeAlpha | number |
Returns
void
blendFunc()
blendFunc(sfactor, dfactor): void;Defined in: types/desktop-engine.d.ts:2028
Blend factors
Parameters
| Parameter | Type |
|---|---|
sfactor | number |
dfactor | number |
Returns
void
blendFuncSeparate()
blendFuncSeparate(
srcRGB,
dstRGB,
srcAlpha,
dstAlpha
): void;Defined in: types/desktop-engine.d.ts:2030
Separate blend factors
Parameters
| Parameter | Type |
|---|---|
srcRGB | number |
dstRGB | number |
srcAlpha | number |
dstAlpha | number |
Returns
void
bufferData()
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
| Parameter | Type |
|---|---|
target | number |
sizeOrData | number | ArrayBuffer | ArrayBufferView<ArrayBufferLike> |
usage | number |
Returns
void
bufferSubData()
bufferSubData(
target,
offset,
data
): void;Defined in: types/desktop-engine.d.ts:2034
Updates part of the buffer data
Parameters
| Parameter | Type |
|---|---|
target | number |
offset | number |
data | ArrayBuffer | ArrayBufferView<ArrayBufferLike> |
Returns
void
checkFramebufferStatus()
checkFramebufferStatus(target): number;Defined in: types/desktop-engine.d.ts:2036
Checks the framebuffer status
Parameters
| Parameter | Type |
|---|---|
target | number |
Returns
number
clear()
clear(mask): void;Defined in: types/desktop-engine.d.ts:2038
Clears buffers
Parameters
| Parameter | Type |
|---|---|
mask | number |
Returns
void
clearColor()
clearColor(
red,
green,
blue,
alpha
): void;Defined in: types/desktop-engine.d.ts:2040
Clear color
Parameters
| Parameter | Type |
|---|---|
red | number |
green | number |
blue | number |
alpha | number |
Returns
void
clearDepth()
clearDepth(depth): void;Defined in: types/desktop-engine.d.ts:2042
Clear depth
Parameters
| Parameter | Type |
|---|---|
depth | number |
Returns
void
clearStencil()
clearStencil(s): void;Defined in: types/desktop-engine.d.ts:2044
Clear stencil value
Parameters
| Parameter | Type |
|---|---|
s | number |
Returns
void
colorMask()
colorMask(
red,
green,
blue,
alpha
): void;Defined in: types/desktop-engine.d.ts:2046
Color write mask
Parameters
| Parameter | Type |
|---|---|
red | boolean |
green | boolean |
blue | boolean |
alpha | boolean |
Returns
void
compileShader()
compileShader(shader): void;Defined in: types/desktop-engine.d.ts:2048
Compiles a shader
Parameters
| Parameter | Type |
|---|---|
shader | WebGLShader |
Returns
void
compressedTexImage2D()
compressedTexImage2D(
target,
level,
internalformat,
width,
height,
border,
data
): void;Defined in: types/desktop-engine.d.ts:2050
Uploads a compressed texture
Parameters
| Parameter | Type |
|---|---|
target | number |
level | number |
internalformat | number |
width | number |
height | number |
border | number |
data | ArrayBufferView |
Returns
void
compressedTexSubImage2D()
compressedTexSubImage2D(
target,
level,
xoffset,
yoffset,
width,
height,
format,
data
): void;Defined in: types/desktop-engine.d.ts:2052
Updates a compressed texture
Parameters
| Parameter | Type |
|---|---|
target | number |
level | number |
xoffset | number |
yoffset | number |
width | number |
height | number |
format | number |
data | ArrayBufferView |
Returns
void
copyTexImage2D()
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
| Parameter | Type |
|---|---|
target | number |
level | number |
internalformat | number |
x | number |
y | number |
width | number |
height | number |
border? | number |
Returns
void
copyTexSubImage2D()
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
| Parameter | Type |
|---|---|
target | number |
level | number |
xoffset | number |
yoffset | number |
x | number |
y | number |
width | number |
height | number |
Returns
void
createBuffer()
createBuffer(): WebGLBuffer | null;Defined in: types/desktop-engine.d.ts:2058
Creates a buffer
Returns
WebGLBuffer | null
createFramebuffer()
createFramebuffer(): WebGLFramebuffer | null;Defined in: types/desktop-engine.d.ts:2060
Creates a framebuffer
Returns
WebGLFramebuffer | null
createProgram()
createProgram(): WebGLProgram | null;Defined in: types/desktop-engine.d.ts:2066
Creates a program
Returns
WebGLProgram | null
createRenderbuffer()
createRenderbuffer(): WebGLRenderbuffer | null;Defined in: types/desktop-engine.d.ts:2062
Creates a renderbuffer
Returns
WebGLRenderbuffer | null
createShader()
createShader(type): WebGLShader | null;Defined in: types/desktop-engine.d.ts:2068
Creates a shader
Parameters
| Parameter | Type |
|---|---|
type | number |
Returns
WebGLShader | null
createTexture()
createTexture(): WebGLTexture | null;Defined in: types/desktop-engine.d.ts:2064
Creates a texture
Returns
WebGLTexture | null
cullFace()
cullFace(mode): void;Defined in: types/desktop-engine.d.ts:2070
Face culling mode
Parameters
| Parameter | Type |
|---|---|
mode | number |
Returns
void
deleteBuffer()
deleteBuffer(buffer): void;Defined in: types/desktop-engine.d.ts:2072
Deletes a buffer
Parameters
| Parameter | Type |
|---|---|
buffer | WebGLBuffer | null |
Returns
void
deleteFramebuffer()
deleteFramebuffer(framebuffer): void;Defined in: types/desktop-engine.d.ts:2074
Deletes a framebuffer
Parameters
| Parameter | Type |
|---|---|
framebuffer | WebGLFramebuffer | null |
Returns
void
deleteProgram()
deleteProgram(program): void;Defined in: types/desktop-engine.d.ts:2082
Deletes a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram | null |
Returns
void
deleteRenderbuffer()
deleteRenderbuffer(renderbuffer): void;Defined in: types/desktop-engine.d.ts:2076
Deletes a renderbuffer
Parameters
| Parameter | Type |
|---|---|
renderbuffer | WebGLRenderbuffer | null |
Returns
void
deleteShader()
deleteShader(shader): void;Defined in: types/desktop-engine.d.ts:2078
Deletes a shader
Parameters
| Parameter | Type |
|---|---|
shader | WebGLShader | null |
Returns
void
deleteTexture()
deleteTexture(texture): void;Defined in: types/desktop-engine.d.ts:2080
Deletes a texture
Parameters
| Parameter | Type |
|---|---|
texture | WebGLTexture | null |
Returns
void
depthFunc()
depthFunc(func): void;Defined in: types/desktop-engine.d.ts:2084
Depth comparison function
Parameters
| Parameter | Type |
|---|---|
func | number |
Returns
void
depthMask()
depthMask(flag): void;Defined in: types/desktop-engine.d.ts:2086
Enables or disables depth writes
Parameters
| Parameter | Type |
|---|---|
flag | boolean |
Returns
void
depthRange()
depthRange(zNear, zFar): void;Defined in: types/desktop-engine.d.ts:2088
Depth range
Parameters
| Parameter | Type |
|---|---|
zNear | number |
zFar | number |
Returns
void
detachShader()
detachShader(program, shader): void;Defined in: types/desktop-engine.d.ts:2090
Detaches a shader
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
shader | WebGLShader |
Returns
void
disable()
disable(cap): void;Defined in: types/desktop-engine.d.ts:2092
Disables a capability
Parameters
| Parameter | Type |
|---|---|
cap | number |
Returns
void
disableVertexAttribArray()
disableVertexAttribArray(index): void;Defined in: types/desktop-engine.d.ts:2094
Disables a vertex attribute array
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
void
drawArrays()
drawArrays(
mode,
first,
count
): void;Defined in: types/desktop-engine.d.ts:2096
Draws arrays
Parameters
| Parameter | Type |
|---|---|
mode | number |
first | number |
count | number |
Returns
void
drawElements()
drawElements(
mode,
count,
type,
offset
): void;Defined in: types/desktop-engine.d.ts:2098
Draws elements
Parameters
| Parameter | Type |
|---|---|
mode | number |
count | number |
type | number |
offset | number |
Returns
void
enable()
enable(cap): void;Defined in: types/desktop-engine.d.ts:2100
Enables a capability
Parameters
| Parameter | Type |
|---|---|
cap | number |
Returns
void
enableVertexAttribArray()
enableVertexAttribArray(index): void;Defined in: types/desktop-engine.d.ts:2102
Enables a vertex attribute array
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
void
finish()
finish(): void;Defined in: types/desktop-engine.d.ts:2106
Waits for commands to finish
Returns
void
flush()
flush(): void;Defined in: types/desktop-engine.d.ts:2104
Flushes commands
Returns
void
framebufferRenderbuffer()
framebufferRenderbuffer(
target,
attachment,
renderbuffertarget,
renderbuffer
): void;Defined in: types/desktop-engine.d.ts:2108
Attaches a renderbuffer to the framebuffer
Parameters
| Parameter | Type |
|---|---|
target | number |
attachment | number |
renderbuffertarget | number |
renderbuffer | WebGLRenderbuffer | null |
Returns
void
framebufferTexture2D()
framebufferTexture2D(
target,
attachment,
textarget,
texture,
level
): void;Defined in: types/desktop-engine.d.ts:2110
Attaches a texture to the framebuffer
Parameters
| Parameter | Type |
|---|---|
target | number |
attachment | number |
textarget | number |
texture | WebGLTexture | null |
level | number |
Returns
void
frontFace()
frontFace(mode): void;Defined in: types/desktop-engine.d.ts:2112
Front face winding
Parameters
| Parameter | Type |
|---|---|
mode | number |
Returns
void
generateMipmap()
generateMipmap(target): void;Defined in: types/desktop-engine.d.ts:2114
Generates mipmaps
Parameters
| Parameter | Type |
|---|---|
target | number |
Returns
void
getActiveAttrib()
getActiveAttrib(program, index): WebGLActiveInfo | null;Defined in: types/desktop-engine.d.ts:2116
Gets attribute information
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
index | number |
Returns
WebGLActiveInfo | null
getActiveUniform()
getActiveUniform(program, index): WebGLActiveInfo | null;Defined in: types/desktop-engine.d.ts:2118
Gets uniform information
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
index | number |
Returns
WebGLActiveInfo | null
getAttachedShaders()
getAttachedShaders(program): WebGLShader[] | null;Defined in: types/desktop-engine.d.ts:2120
Gets the attached shaders
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
Returns
WebGLShader[] | null
getAttribLocation()
getAttribLocation(program, name): number;Defined in: types/desktop-engine.d.ts:2122
Gets an attribute location
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
name | string |
Returns
number
getBufferParameter()
getBufferParameter(target, pname): any;Defined in: types/desktop-engine.d.ts:2130
Queries a buffer parameter
Parameters
| Parameter | Type |
|---|---|
target | number |
pname | number |
Returns
any
getContextAttributes()
getContextAttributes(): WebGLContextAttributes;Defined in: types/desktop-engine.d.ts:1998
Gets the context attributes (fixed values)
Returns
getError()
getError(): number;Defined in: types/desktop-engine.d.ts:2132
Gets the error code
Returns
number
getExtension()
Call Signature
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
| Parameter | Type |
|---|---|
name | K |
Returns
WebGLExtensionMap[K] | null
Call Signature
getExtension(name): object | null;Defined in: types/desktop-engine.d.ts:2006
Gets an extension object, or null if it isn't supported
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
object | null
getFramebufferAttachmentParameter()
getFramebufferAttachmentParameter(
target,
attachment,
pname
): any;Defined in: types/desktop-engine.d.ts:2134
Queries a framebuffer attachment parameter
Parameters
| Parameter | Type |
|---|---|
target | number |
attachment | number |
pname | number |
Returns
any
getParameter()
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
| Parameter | Type |
|---|---|
pname | number |
Returns
any
getProgramInfoLog()
getProgramInfoLog(program): string | null;Defined in: types/desktop-engine.d.ts:2138
Gets the program info log
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
Returns
string | null
getProgramParameter()
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
| Parameter | Type |
|---|---|
program | WebGLProgram |
pname | number |
Returns
any
getRenderbufferParameter()
getRenderbufferParameter(target, pname): any;Defined in: types/desktop-engine.d.ts:2140
Queries a renderbuffer parameter
Parameters
| Parameter | Type |
|---|---|
target | number |
pname | number |
Returns
any
getShaderInfoLog()
getShaderInfoLog(shader): string | null;Defined in: types/desktop-engine.d.ts:2146
Gets the shader info log
Parameters
| Parameter | Type |
|---|---|
shader | WebGLShader |
Returns
string | null
getShaderParameter()
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
| Parameter | Type |
|---|---|
shader | WebGLShader |
pname | number |
Returns
any
getShaderPrecisionFormat()
getShaderPrecisionFormat(shadertype, precisiontype):
| WebGLShaderPrecisionFormat
| null;Defined in: types/desktop-engine.d.ts:2144
Queries shader precision
Parameters
| Parameter | Type |
|---|---|
shadertype | number |
precisiontype | number |
Returns
| WebGLShaderPrecisionFormat | null
getShaderSource()
getShaderSource(shader): string | null;Defined in: types/desktop-engine.d.ts:2148
Gets the shader source
Parameters
| Parameter | Type |
|---|---|
shader | WebGLShader |
Returns
string | null
getSupportedExtensions()
getSupportedExtensions(): string[];Defined in: types/desktop-engine.d.ts:2002
Gets the list of supported extension names
Returns
string[]
getTexParameter()
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
| Parameter | Type |
|---|---|
target | number |
pname | number |
Returns
any
getUniform()
getUniform(program, location): any;Defined in: types/desktop-engine.d.ts:2152
Reads a uniform value
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
location | WebGLUniformLocation |
Returns
any
getUniformLocation()
getUniformLocation(program, name): WebGLUniformLocation | null;Defined in: types/desktop-engine.d.ts:2154
Gets a uniform location
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
name | string |
Returns
WebGLUniformLocation | null
getVertexAttrib()
getVertexAttrib(index, pname): any;Defined in: types/desktop-engine.d.ts:2156
Queries a vertex attribute
Parameters
| Parameter | Type |
|---|---|
index | number |
pname | number |
Returns
any
getVertexAttribOffset()
getVertexAttribOffset(index, pname): number;Defined in: types/desktop-engine.d.ts:2158
Queries a vertex attribute offset
Parameters
| Parameter | Type |
|---|---|
index | number |
pname | number |
Returns
number
hint()
hint(target, mode): void;Defined in: types/desktop-engine.d.ts:2160
Hint
Parameters
| Parameter | Type |
|---|---|
target | number |
mode | number |
Returns
void
isBuffer()
isBuffer(buffer): boolean;Defined in: types/desktop-engine.d.ts:2162
Returns whether the object is a buffer
Parameters
| Parameter | Type |
|---|---|
buffer | WebGLBuffer | null |
Returns
boolean
isContextLost()
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()
isEnabled(cap): boolean;Defined in: types/desktop-engine.d.ts:2174
Returns whether a capability is enabled
Parameters
| Parameter | Type |
|---|---|
cap | number |
Returns
boolean
isFramebuffer()
isFramebuffer(framebuffer): boolean;Defined in: types/desktop-engine.d.ts:2164
Returns whether the object is a framebuffer
Parameters
| Parameter | Type |
|---|---|
framebuffer | WebGLFramebuffer | null |
Returns
boolean
isProgram()
isProgram(program): boolean;Defined in: types/desktop-engine.d.ts:2166
Returns whether the object is a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram | null |
Returns
boolean
isRenderbuffer()
isRenderbuffer(renderbuffer): boolean;Defined in: types/desktop-engine.d.ts:2168
Returns whether the object is a renderbuffer
Parameters
| Parameter | Type |
|---|---|
renderbuffer | WebGLRenderbuffer | null |
Returns
boolean
isShader()
isShader(shader): boolean;Defined in: types/desktop-engine.d.ts:2170
Returns whether the object is a shader
Parameters
| Parameter | Type |
|---|---|
shader | WebGLShader | null |
Returns
boolean
isTexture()
isTexture(texture): boolean;Defined in: types/desktop-engine.d.ts:2172
Returns whether the object is a texture
Parameters
| Parameter | Type |
|---|---|
texture | WebGLTexture | null |
Returns
boolean
lineWidth()
lineWidth(width): void;Defined in: types/desktop-engine.d.ts:2176
Line width
Parameters
| Parameter | Type |
|---|---|
width | number |
Returns
void
linkProgram()
linkProgram(program): void;Defined in: types/desktop-engine.d.ts:2178
Links a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
Returns
void
pixelStorei()
pixelStorei(pname, param): void;Defined in: types/desktop-engine.d.ts:2180
Pixel storage parameter
Parameters
| Parameter | Type |
|---|---|
pname | number |
param | number | boolean |
Returns
void
polygonOffset()
polygonOffset(factor, units): void;Defined in: types/desktop-engine.d.ts:2182
Polygon offset
Parameters
| Parameter | Type |
|---|---|
factor | number |
units | number |
Returns
void
readPixels()
readPixels(
x,
y,
width,
height,
format,
type,
pixels
): void;Defined in: types/desktop-engine.d.ts:2184
Reads pixels into pixels
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
width | number |
height | number |
format | number |
type | number |
pixels | ArrayBufferView |
Returns
void
renderbufferStorage()
renderbufferStorage(
target,
internalformat,
width,
height
): void;Defined in: types/desktop-engine.d.ts:2186
Allocates renderbuffer storage
Parameters
| Parameter | Type |
|---|---|
target | number |
internalformat | number |
width | number |
height | number |
Returns
void
sampleCoverage()
sampleCoverage(value, invert): void;Defined in: types/desktop-engine.d.ts:2188
Multisample coverage
Parameters
| Parameter | Type |
|---|---|
value | number |
invert | boolean |
Returns
void
scissor()
scissor(
x,
y,
width,
height
): void;Defined in: types/desktop-engine.d.ts:2190
Scissor rectangle
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
shaderSource()
shaderSource(shader, source): void;Defined in: types/desktop-engine.d.ts:2192
Sets the shader source
Parameters
| Parameter | Type |
|---|---|
shader | WebGLShader |
source | string |
Returns
void
stencilFunc()
stencilFunc(
func,
ref,
mask
): void;Defined in: types/desktop-engine.d.ts:2194
Stencil function
Parameters
| Parameter | Type |
|---|---|
func | number |
ref | number |
mask | number |
Returns
void
stencilFuncSeparate()
stencilFuncSeparate(
face,
func,
ref,
mask
): void;Defined in: types/desktop-engine.d.ts:2196
Separate stencil functions
Parameters
| Parameter | Type |
|---|---|
face | number |
func | number |
ref | number |
mask | number |
Returns
void
stencilMask()
stencilMask(mask): void;Defined in: types/desktop-engine.d.ts:2198
Stencil write mask
Parameters
| Parameter | Type |
|---|---|
mask | number |
Returns
void
stencilMaskSeparate()
stencilMaskSeparate(face, mask): void;Defined in: types/desktop-engine.d.ts:2200
Separate stencil write masks
Parameters
| Parameter | Type |
|---|---|
face | number |
mask | number |
Returns
void
stencilOp()
stencilOp(
fail,
zfail,
zpass
): void;Defined in: types/desktop-engine.d.ts:2202
Stencil operation
Parameters
| Parameter | Type |
|---|---|
fail | number |
zfail | number |
zpass | number |
Returns
void
stencilOpSeparate()
stencilOpSeparate(
face,
fail,
zfail,
zpass
): void;Defined in: types/desktop-engine.d.ts:2204
Separate stencil operations
Parameters
| Parameter | Type |
|---|---|
face | number |
fail | number |
zfail | number |
zpass | number |
Returns
void
texImage2D()
Call Signature
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
| Parameter | Type |
|---|---|
target | number |
level | number |
internalformat | number |
format | number |
type | number |
source | CanvasDrawable |
Returns
void
Call Signature
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
| Parameter | Type |
|---|---|
target | number |
level | number |
internalformat | number |
width | number |
height | number |
border | number |
format | number |
type | number |
pixels | ArrayBufferView<ArrayBufferLike> | null |
Returns
void
texParameterf()
texParameterf(
target,
pname,
param
): void;Defined in: types/desktop-engine.d.ts:2214
Float texture parameter
Parameters
| Parameter | Type |
|---|---|
target | number |
pname | number |
param | number |
Returns
void
texParameteri()
texParameteri(
target,
pname,
param
): void;Defined in: types/desktop-engine.d.ts:2216
Integer texture parameter
Parameters
| Parameter | Type |
|---|---|
target | number |
pname | number |
param | number |
Returns
void
texSubImage2D()
Call Signature
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
| Parameter | Type |
|---|---|
target | number |
level | number |
xoffset | number |
yoffset | number |
format | number |
type | number |
source | CanvasDrawable |
Returns
void
Call Signature
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
| Parameter | Type |
|---|---|
target | number |
level | number |
xoffset | number |
yoffset | number |
width | number |
height | number |
format | number |
type | number |
pixels | ArrayBufferView<ArrayBufferLike> | null |
Returns
void
uniform1f()
uniform1f(location, x): void;Defined in: types/desktop-engine.d.ts:2218
Sets a float uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
x | number |
Returns
void
uniform1fv()
uniform1fv(location, v): void;Defined in: types/desktop-engine.d.ts:2234
Sets a float array uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
v | Float32List |
Returns
void
uniform1i()
uniform1i(location, x): void;Defined in: types/desktop-engine.d.ts:2226
Sets an int uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
x | number |
Returns
void
uniform1iv()
uniform1iv(location, v): void;Defined in: types/desktop-engine.d.ts:2242
Sets an int array uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
v | Int32List |
Returns
void
uniform2f()
uniform2f(
location,
x,
y
): void;Defined in: types/desktop-engine.d.ts:2220
Sets a vec2 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
x | number |
y | number |
Returns
void
uniform2fv()
uniform2fv(location, v): void;Defined in: types/desktop-engine.d.ts:2236
Sets a vec2 array uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
v | Float32List |
Returns
void
uniform2i()
uniform2i(
location,
x,
y
): void;Defined in: types/desktop-engine.d.ts:2228
Sets an ivec2 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
x | number |
y | number |
Returns
void
uniform2iv()
uniform2iv(location, v): void;Defined in: types/desktop-engine.d.ts:2244
Sets an ivec2 array uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
v | Int32List |
Returns
void
uniform3f()
uniform3f(
location,
x,
y,
z
): void;Defined in: types/desktop-engine.d.ts:2222
Sets a vec3 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
x | number |
y | number |
z | number |
Returns
void
uniform3fv()
uniform3fv(location, v): void;Defined in: types/desktop-engine.d.ts:2238
Sets a vec3 array uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
v | Float32List |
Returns
void
uniform3i()
uniform3i(
location,
x,
y,
z
): void;Defined in: types/desktop-engine.d.ts:2230
Sets an ivec3 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
x | number |
y | number |
z | number |
Returns
void
uniform3iv()
uniform3iv(location, v): void;Defined in: types/desktop-engine.d.ts:2246
Sets an ivec3 array uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
v | Int32List |
Returns
void
uniform4f()
uniform4f(
location,
x,
y,
z,
w
): void;Defined in: types/desktop-engine.d.ts:2224
Sets a vec4 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
x | number |
y | number |
z | number |
w | number |
Returns
void
uniform4fv()
uniform4fv(location, v): void;Defined in: types/desktop-engine.d.ts:2240
Sets a vec4 array uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
v | Float32List |
Returns
void
uniform4i()
uniform4i(
location,
x,
y,
z,
w
): void;Defined in: types/desktop-engine.d.ts:2232
Sets an ivec4 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
x | number |
y | number |
z | number |
w | number |
Returns
void
uniform4iv()
uniform4iv(location, v): void;Defined in: types/desktop-engine.d.ts:2248
Sets an ivec4 array uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
v | Int32List |
Returns
void
uniformMatrix2fv()
uniformMatrix2fv(
location,
transpose,
value
): void;Defined in: types/desktop-engine.d.ts:2250
Sets a mat2 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
transpose | boolean |
value | Float32List |
Returns
void
uniformMatrix3fv()
uniformMatrix3fv(
location,
transpose,
value
): void;Defined in: types/desktop-engine.d.ts:2252
Sets a mat3 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
transpose | boolean |
value | Float32List |
Returns
void
uniformMatrix4fv()
uniformMatrix4fv(
location,
transpose,
value
): void;Defined in: types/desktop-engine.d.ts:2254
Sets a mat4 uniform
Parameters
| Parameter | Type |
|---|---|
location | WebGLUniformLocation | null |
transpose | boolean |
value | Float32List |
Returns
void
useProgram()
useProgram(program): void;Defined in: types/desktop-engine.d.ts:2256
Uses a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram | null |
Returns
void
validateProgram()
validateProgram(program): void;Defined in: types/desktop-engine.d.ts:2258
Validates a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
Returns
void
vertexAttrib1f()
vertexAttrib1f(index, x): void;Defined in: types/desktop-engine.d.ts:2260
Sets a constant vertex attribute (1 component)
Parameters
| Parameter | Type |
|---|---|
index | number |
x | number |
Returns
void
vertexAttrib1fv()
vertexAttrib1fv(index, values): void;Defined in: types/desktop-engine.d.ts:2268
Sets a constant vertex attribute from an array (1 component)
Parameters
| Parameter | Type |
|---|---|
index | number |
values | Float32List |
Returns
void
vertexAttrib2f()
vertexAttrib2f(
index,
x,
y
): void;Defined in: types/desktop-engine.d.ts:2262
Sets a constant vertex attribute (2 components)
Parameters
| Parameter | Type |
|---|---|
index | number |
x | number |
y | number |
Returns
void
vertexAttrib2fv()
vertexAttrib2fv(index, values): void;Defined in: types/desktop-engine.d.ts:2270
Sets a constant vertex attribute from an array (2 components)
Parameters
| Parameter | Type |
|---|---|
index | number |
values | Float32List |
Returns
void
vertexAttrib3f()
vertexAttrib3f(
index,
x,
y,
z
): void;Defined in: types/desktop-engine.d.ts:2264
Sets a constant vertex attribute (3 components)
Parameters
| Parameter | Type |
|---|---|
index | number |
x | number |
y | number |
z | number |
Returns
void
vertexAttrib3fv()
vertexAttrib3fv(index, values): void;Defined in: types/desktop-engine.d.ts:2272
Sets a constant vertex attribute from an array (3 components)
Parameters
| Parameter | Type |
|---|---|
index | number |
values | Float32List |
Returns
void
vertexAttrib4f()
vertexAttrib4f(
index,
x,
y,
z,
w
): void;Defined in: types/desktop-engine.d.ts:2266
Sets a constant vertex attribute (4 components)
Parameters
| Parameter | Type |
|---|---|
index | number |
x | number |
y | number |
z | number |
w | number |
Returns
void
vertexAttrib4fv()
vertexAttrib4fv(index, values): void;Defined in: types/desktop-engine.d.ts:2274
Sets a constant vertex attribute from an array (4 components)
Parameters
| Parameter | Type |
|---|---|
index | number |
values | Float32List |
Returns
void
vertexAttribPointer()
vertexAttribPointer(
index,
size,
type,
normalized,
stride,
offset
): void;Defined in: types/desktop-engine.d.ts:2276
Vertex attribute pointer
Parameters
| Parameter | Type |
|---|---|
index | number |
size | number |
type | number |
normalized | boolean |
stride | number |
offset | number |
Returns
void
viewport()
viewport(
x,
y,
width,
height
): void;Defined in: types/desktop-engine.d.ts:2278
Viewport
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
