Interface: WebGLRenderingContext
Defined in: types/desktop-engine.d.ts:1410
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:2015
Constant GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
ACTIVE_ATTRIBUTES
readonly ACTIVE_ATTRIBUTES: number;Defined in: types/desktop-engine.d.ts:2013
Constant GL_ACTIVE_ATTRIBUTES
ACTIVE_TEXTURE
readonly ACTIVE_TEXTURE: number;Defined in: types/desktop-engine.d.ts:2163
Constant GL_ACTIVE_TEXTURE
ACTIVE_UNIFORM_MAX_LENGTH
readonly ACTIVE_UNIFORM_MAX_LENGTH: number;Defined in: types/desktop-engine.d.ts:2011
Constant GL_ACTIVE_UNIFORM_MAX_LENGTH
ACTIVE_UNIFORMS
readonly ACTIVE_UNIFORMS: number;Defined in: types/desktop-engine.d.ts:2009
Constant GL_ACTIVE_UNIFORMS
ALIASED_LINE_WIDTH_RANGE
readonly ALIASED_LINE_WIDTH_RANGE: number;Defined in: types/desktop-engine.d.ts:1847
Constant GL_ALIASED_LINE_WIDTH_RANGE
ALIASED_POINT_SIZE_RANGE
readonly ALIASED_POINT_SIZE_RANGE: number;Defined in: types/desktop-engine.d.ts:1845
Constant GL_ALIASED_POINT_SIZE_RANGE
ALPHA
readonly ALPHA: number;Defined in: types/desktop-engine.d.ts:1965
Constant GL_ALPHA
ALPHA_BITS
readonly ALPHA_BITS: number;Defined in: types/desktop-engine.d.ts:1915
Constant GL_ALPHA_BITS
ALWAYS
readonly ALWAYS: number;Defined in: types/desktop-engine.d.ts:2035
Constant GL_ALWAYS
ARRAY_BUFFER
readonly ARRAY_BUFFER: number;Defined in: types/desktop-engine.d.ts:1783
Constant GL_ARRAY_BUFFER
ARRAY_BUFFER_BINDING
readonly ARRAY_BUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:1787
Constant GL_ARRAY_BUFFER_BINDING
ATTACHED_SHADERS
readonly ATTACHED_SHADERS: number;Defined in: types/desktop-engine.d.ts:2007
Constant GL_ATTACHED_SHADERS
BACK
readonly BACK: number;Defined in: types/desktop-engine.d.ts:1805
Constant GL_BACK
BLEND
readonly BLEND: number;Defined in: types/desktop-engine.d.ts:1813
Constant GL_BLEND
BLEND_COLOR
readonly BLEND_COLOR: number;Defined in: types/desktop-engine.d.ts:1781
Constant GL_BLEND_COLOR
BLEND_DST_ALPHA
readonly BLEND_DST_ALPHA: number;Defined in: types/desktop-engine.d.ts:1769
Constant GL_BLEND_DST_ALPHA
BLEND_DST_RGB
readonly BLEND_DST_RGB: number;Defined in: types/desktop-engine.d.ts:1765
Constant GL_BLEND_DST_RGB
BLEND_EQUATION
readonly BLEND_EQUATION: number;Defined in: types/desktop-engine.d.ts:1755
Constant GL_BLEND_EQUATION
BLEND_EQUATION_ALPHA
readonly BLEND_EQUATION_ALPHA: number;Defined in: types/desktop-engine.d.ts:1759
Constant GL_BLEND_EQUATION_ALPHA
BLEND_EQUATION_RGB
readonly BLEND_EQUATION_RGB: number;Defined in: types/desktop-engine.d.ts:1757
Constant GL_BLEND_EQUATION_RGB
BLEND_SRC_ALPHA
readonly BLEND_SRC_ALPHA: number;Defined in: types/desktop-engine.d.ts:1771
Constant GL_BLEND_SRC_ALPHA
BLEND_SRC_RGB
readonly BLEND_SRC_RGB: number;Defined in: types/desktop-engine.d.ts:1767
Constant GL_BLEND_SRC_RGB
BLUE_BITS
readonly BLUE_BITS: number;Defined in: types/desktop-engine.d.ts:1913
Constant GL_BLUE_BITS
BOOL
readonly BOOL: number;Defined in: types/desktop-engine.d.ts:2183
Constant GL_BOOL
BOOL_VEC2
readonly BOOL_VEC2: number;Defined in: types/desktop-engine.d.ts:2185
Constant GL_BOOL_VEC2
BOOL_VEC3
readonly BOOL_VEC3: number;Defined in: types/desktop-engine.d.ts:2187
Constant GL_BOOL_VEC3
BOOL_VEC4
readonly BOOL_VEC4: number;Defined in: types/desktop-engine.d.ts:2189
Constant GL_BOOL_VEC4
BROWSER_DEFAULT_WEBGL
readonly BROWSER_DEFAULT_WEBGL: number;Defined in: types/desktop-engine.d.ts:2323
Constant GL_BROWSER_DEFAULT_WEBGL
BUFFER_SIZE
readonly BUFFER_SIZE: number;Defined in: types/desktop-engine.d.ts:1797
Constant GL_BUFFER_SIZE
BUFFER_USAGE
readonly BUFFER_USAGE: number;Defined in: types/desktop-engine.d.ts:1799
Constant GL_BUFFER_USAGE
BYTE
readonly BYTE: number;Defined in: types/desktop-engine.d.ts:1947
Constant GL_BYTE
canvas
readonly canvas: Canvas | null;Defined in: types/desktop-engine.d.ts:1412
The owning canvas
CCW
readonly CCW: number;Defined in: types/desktop-engine.d.ts:1841
Constant GL_CCW
CLAMP_TO_EDGE
readonly CLAMP_TO_EDGE: number;Defined in: types/desktop-engine.d.ts:2167
Constant GL_CLAMP_TO_EDGE
COLOR_ATTACHMENT0
readonly COLOR_ATTACHMENT0: number;Defined in: types/desktop-engine.d.ts:2287
Constant GL_COLOR_ATTACHMENT0
COLOR_BUFFER_BIT
readonly COLOR_BUFFER_BIT: number;Defined in: types/desktop-engine.d.ts:1711
Constant GL_COLOR_BUFFER_BIT
COLOR_CLEAR_VALUE
readonly COLOR_CLEAR_VALUE: number;Defined in: types/desktop-engine.d.ts:1895
Constant GL_COLOR_CLEAR_VALUE
COLOR_WRITEMASK
readonly COLOR_WRITEMASK: number;Defined in: types/desktop-engine.d.ts:1897
Constant GL_COLOR_WRITEMASK
COMPILE_STATUS
readonly COMPILE_STATUS: number;Defined in: types/desktop-engine.d.ts:2219
Constant GL_COMPILE_STATUS
COMPRESSED_TEXTURE_FORMATS
readonly COMPRESSED_TEXTURE_FORMATS: number;Defined in: types/desktop-engine.d.ts:1937
Constant GL_COMPRESSED_TEXTURE_FORMATS
CONSTANT_ALPHA
readonly CONSTANT_ALPHA: number;Defined in: types/desktop-engine.d.ts:1777
Constant GL_CONSTANT_ALPHA
CONSTANT_COLOR
readonly CONSTANT_COLOR: number;Defined in: types/desktop-engine.d.ts:1773
Constant GL_CONSTANT_COLOR
CONTEXT_LOST_WEBGL
readonly CONTEXT_LOST_WEBGL: number;Defined in: types/desktop-engine.d.ts:2319
Constant GL_CONTEXT_LOST_WEBGL
CULL_FACE
readonly CULL_FACE: number;Defined in: types/desktop-engine.d.ts:1811
Constant GL_CULL_FACE
CULL_FACE_MODE
readonly CULL_FACE_MODE: number;Defined in: types/desktop-engine.d.ts:1849
Constant GL_CULL_FACE_MODE
CURRENT_PROGRAM
readonly CURRENT_PROGRAM: number;Defined in: types/desktop-engine.d.ts:2019
Constant GL_CURRENT_PROGRAM
CURRENT_VERTEX_ATTRIB
readonly CURRENT_VERTEX_ATTRIB: number;Defined in: types/desktop-engine.d.ts:1801
Constant GL_CURRENT_VERTEX_ATTRIB
CW
readonly CW: number;Defined in: types/desktop-engine.d.ts:1839
Constant GL_CW
DECR
readonly DECR: number;Defined in: types/desktop-engine.d.ts:2043
Constant GL_DECR
DECR_WRAP
readonly DECR_WRAP: number;Defined in: types/desktop-engine.d.ts:2049
Constant GL_DECR_WRAP
DELETE_STATUS
readonly DELETE_STATUS: number;Defined in: types/desktop-engine.d.ts:2001
Constant GL_DELETE_STATUS
DEPTH_ATTACHMENT
readonly DEPTH_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2289
Constant GL_DEPTH_ATTACHMENT
DEPTH_BITS
readonly DEPTH_BITS: number;Defined in: types/desktop-engine.d.ts:1917
Constant GL_DEPTH_BITS
DEPTH_BUFFER_BIT
readonly DEPTH_BUFFER_BIT: number;Defined in: types/desktop-engine.d.ts:1707
Constant GL_DEPTH_BUFFER_BIT
DEPTH_CLEAR_VALUE
readonly DEPTH_CLEAR_VALUE: number;Defined in: types/desktop-engine.d.ts:1857
Constant GL_DEPTH_CLEAR_VALUE
DEPTH_COMPONENT
readonly DEPTH_COMPONENT: number;Defined in: types/desktop-engine.d.ts:1963
Constant GL_DEPTH_COMPONENT
DEPTH_COMPONENT16
readonly DEPTH_COMPONENT16: number;Defined in: types/desktop-engine.d.ts:2253
Constant GL_DEPTH_COMPONENT16
DEPTH_FUNC
readonly DEPTH_FUNC: number;Defined in: types/desktop-engine.d.ts:1859
Constant GL_DEPTH_FUNC
DEPTH_RANGE
readonly DEPTH_RANGE: number;Defined in: types/desktop-engine.d.ts:1853
Constant GL_DEPTH_RANGE
DEPTH_STENCIL
readonly DEPTH_STENCIL: number;Defined in: types/desktop-engine.d.ts:2259
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:2293
Constant GL_DEPTH_STENCIL_ATTACHMENT
DEPTH_TEST
readonly DEPTH_TEST: number;Defined in: types/desktop-engine.d.ts:1819
Constant GL_DEPTH_TEST
DEPTH_WRITEMASK
readonly DEPTH_WRITEMASK: number;Defined in: types/desktop-engine.d.ts:1855
Constant GL_DEPTH_WRITEMASK
DITHER
readonly DITHER: number;Defined in: types/desktop-engine.d.ts:1815
Constant GL_DITHER
DONT_CARE
readonly DONT_CARE: number;Defined in: types/desktop-engine.d.ts:1939
Constant GL_DONT_CARE
drawingBufferHeight
readonly drawingBufferHeight: number;Defined in: types/desktop-engine.d.ts:1416
Drawing buffer height
drawingBufferWidth
readonly drawingBufferWidth: number;Defined in: types/desktop-engine.d.ts:1414
Drawing buffer width
DST_ALPHA
readonly DST_ALPHA: number;Defined in: types/desktop-engine.d.ts:1743
Constant GL_DST_ALPHA
DST_COLOR
readonly DST_COLOR: number;Defined in: types/desktop-engine.d.ts:1747
Constant GL_DST_COLOR
DYNAMIC_DRAW
readonly DYNAMIC_DRAW: number;Defined in: types/desktop-engine.d.ts:1795
Constant GL_DYNAMIC_DRAW
ELEMENT_ARRAY_BUFFER
readonly ELEMENT_ARRAY_BUFFER: number;Defined in: types/desktop-engine.d.ts:1785
Constant GL_ELEMENT_ARRAY_BUFFER
ELEMENT_ARRAY_BUFFER_BINDING
readonly ELEMENT_ARRAY_BUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:1789
Constant GL_ELEMENT_ARRAY_BUFFER_BINDING
EQUAL
readonly EQUAL: number;Defined in: types/desktop-engine.d.ts:2025
Constant GL_EQUAL
EXTENSIONS
readonly EXTENSIONS: number;Defined in: types/desktop-engine.d.ts:2057
Constant GL_EXTENSIONS
FALSE
readonly FALSE: number;Defined in: types/desktop-engine.d.ts:1713
Constant GL_FALSE
FASTEST
readonly FASTEST: number;Defined in: types/desktop-engine.d.ts:1941
Constant GL_FASTEST
FIXED
readonly FIXED: number;Defined in: types/desktop-engine.d.ts:1961
Constant GL_FIXED
FLOAT
readonly FLOAT: number;Defined in: types/desktop-engine.d.ts:1959
Constant GL_FLOAT
FLOAT_MAT2
readonly FLOAT_MAT2: number;Defined in: types/desktop-engine.d.ts:2191
Constant GL_FLOAT_MAT2
FLOAT_MAT3
readonly FLOAT_MAT3: number;Defined in: types/desktop-engine.d.ts:2193
Constant GL_FLOAT_MAT3
FLOAT_MAT4
readonly FLOAT_MAT4: number;Defined in: types/desktop-engine.d.ts:2195
Constant GL_FLOAT_MAT4
FLOAT_VEC2
readonly FLOAT_VEC2: number;Defined in: types/desktop-engine.d.ts:2171
Constant GL_FLOAT_VEC2
FLOAT_VEC3
readonly FLOAT_VEC3: number;Defined in: types/desktop-engine.d.ts:2173
Constant GL_FLOAT_VEC3
FLOAT_VEC4
readonly FLOAT_VEC4: number;Defined in: types/desktop-engine.d.ts:2175
Constant GL_FLOAT_VEC4
FRAGMENT_SHADER
readonly FRAGMENT_SHADER: number;Defined in: types/desktop-engine.d.ts:1981
Constant GL_FRAGMENT_SHADER
FRAMEBUFFER
readonly FRAMEBUFFER: number;Defined in: types/desktop-engine.d.ts:2243
Constant GL_FRAMEBUFFER
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;Defined in: types/desktop-engine.d.ts:2281
Constant GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;Defined in: types/desktop-engine.d.ts:2279
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:2285
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:2283
Constant GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
FRAMEBUFFER_BINDING
readonly FRAMEBUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:2307
Constant GL_FRAMEBUFFER_BINDING
FRAMEBUFFER_COMPLETE
readonly FRAMEBUFFER_COMPLETE: number;Defined in: types/desktop-engine.d.ts:2297
Constant GL_FRAMEBUFFER_COMPLETE
FRAMEBUFFER_INCOMPLETE_ATTACHMENT
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2299
Constant GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
FRAMEBUFFER_INCOMPLETE_DIMENSIONS
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;Defined in: types/desktop-engine.d.ts:2303
Constant GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2301
Constant GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
FRAMEBUFFER_UNSUPPORTED
readonly FRAMEBUFFER_UNSUPPORTED: number;Defined in: types/desktop-engine.d.ts:2305
Constant GL_FRAMEBUFFER_UNSUPPORTED
FRONT
readonly FRONT: number;Defined in: types/desktop-engine.d.ts:1803
Constant GL_FRONT
FRONT_AND_BACK
readonly FRONT_AND_BACK: number;Defined in: types/desktop-engine.d.ts:1807
Constant GL_FRONT_AND_BACK
FRONT_FACE
readonly FRONT_FACE: number;Defined in: types/desktop-engine.d.ts:1851
Constant GL_FRONT_FACE
FUNC_ADD
readonly FUNC_ADD: number;Defined in: types/desktop-engine.d.ts:1753
Constant GL_FUNC_ADD
FUNC_REVERSE_SUBTRACT
readonly FUNC_REVERSE_SUBTRACT: number;Defined in: types/desktop-engine.d.ts:1763
Constant GL_FUNC_REVERSE_SUBTRACT
FUNC_SUBTRACT
readonly FUNC_SUBTRACT: number;Defined in: types/desktop-engine.d.ts:1761
Constant GL_FUNC_SUBTRACT
GENERATE_MIPMAP_HINT
readonly GENERATE_MIPMAP_HINT: number;Defined in: types/desktop-engine.d.ts:1945
Constant GL_GENERATE_MIPMAP_HINT
GEQUAL
readonly GEQUAL: number;Defined in: types/desktop-engine.d.ts:2033
Constant GL_GEQUAL
GREATER
readonly GREATER: number;Defined in: types/desktop-engine.d.ts:2029
Constant GL_GREATER
GREEN_BITS
readonly GREEN_BITS: number;Defined in: types/desktop-engine.d.ts:1911
Constant GL_GREEN_BITS
HIGH_FLOAT
readonly HIGH_FLOAT: number;Defined in: types/desktop-engine.d.ts:2235
Constant GL_HIGH_FLOAT
HIGH_INT
readonly HIGH_INT: number;Defined in: types/desktop-engine.d.ts:2241
Constant GL_HIGH_INT
IMPLEMENTATION_COLOR_READ_FORMAT
readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;Defined in: types/desktop-engine.d.ts:2217
Constant GL_IMPLEMENTATION_COLOR_READ_FORMAT
IMPLEMENTATION_COLOR_READ_TYPE
readonly IMPLEMENTATION_COLOR_READ_TYPE: number;Defined in: types/desktop-engine.d.ts:2215
Constant GL_IMPLEMENTATION_COLOR_READ_TYPE
INCR
readonly INCR: number;Defined in: types/desktop-engine.d.ts:2041
Constant GL_INCR
INCR_WRAP
readonly INCR_WRAP: number;Defined in: types/desktop-engine.d.ts:2047
Constant GL_INCR_WRAP
INFO_LOG_LENGTH
readonly INFO_LOG_LENGTH: number;Defined in: types/desktop-engine.d.ts:2221
Constant GL_INFO_LOG_LENGTH
INT
readonly INT: number;Defined in: types/desktop-engine.d.ts:1955
Constant GL_INT
INT_VEC2
readonly INT_VEC2: number;Defined in: types/desktop-engine.d.ts:2177
Constant GL_INT_VEC2
INT_VEC3
readonly INT_VEC3: number;Defined in: types/desktop-engine.d.ts:2179
Constant GL_INT_VEC3
INT_VEC4
readonly INT_VEC4: number;Defined in: types/desktop-engine.d.ts:2181
Constant GL_INT_VEC4
INVALID_ENUM
readonly INVALID_ENUM: number;Defined in: types/desktop-engine.d.ts:1831
Constant GL_INVALID_ENUM
INVALID_FRAMEBUFFER_OPERATION
readonly INVALID_FRAMEBUFFER_OPERATION: number;Defined in: types/desktop-engine.d.ts:2313
Constant GL_INVALID_FRAMEBUFFER_OPERATION
INVALID_OPERATION
readonly INVALID_OPERATION: number;Defined in: types/desktop-engine.d.ts:1835
Constant GL_INVALID_OPERATION
INVALID_VALUE
readonly INVALID_VALUE: number;Defined in: types/desktop-engine.d.ts:1833
Constant GL_INVALID_VALUE
INVERT
readonly INVERT: number;Defined in: types/desktop-engine.d.ts:2045
Constant GL_INVERT
KEEP
readonly KEEP: number;Defined in: types/desktop-engine.d.ts:2037
Constant GL_KEEP
LEQUAL
readonly LEQUAL: number;Defined in: types/desktop-engine.d.ts:2027
Constant GL_LEQUAL
LESS
readonly LESS: number;Defined in: types/desktop-engine.d.ts:2023
Constant GL_LESS
LINE_LOOP
readonly LINE_LOOP: number;Defined in: types/desktop-engine.d.ts:1721
Constant GL_LINE_LOOP
LINE_STRIP
readonly LINE_STRIP: number;Defined in: types/desktop-engine.d.ts:1723
Constant GL_LINE_STRIP
LINE_WIDTH
readonly LINE_WIDTH: number;Defined in: types/desktop-engine.d.ts:1843
Constant GL_LINE_WIDTH
LINEAR
readonly LINEAR: number;Defined in: types/desktop-engine.d.ts:2061
Constant GL_LINEAR
LINEAR_MIPMAP_LINEAR
readonly LINEAR_MIPMAP_LINEAR: number;Defined in: types/desktop-engine.d.ts:2069
Constant GL_LINEAR_MIPMAP_LINEAR
LINEAR_MIPMAP_NEAREST
readonly LINEAR_MIPMAP_NEAREST: number;Defined in: types/desktop-engine.d.ts:2065
Constant GL_LINEAR_MIPMAP_NEAREST
LINES
readonly LINES: number;Defined in: types/desktop-engine.d.ts:1719
Constant GL_LINES
LINK_STATUS
readonly LINK_STATUS: number;Defined in: types/desktop-engine.d.ts:2003
Constant GL_LINK_STATUS
LOW_FLOAT
readonly LOW_FLOAT: number;Defined in: types/desktop-engine.d.ts:2231
Constant GL_LOW_FLOAT
LOW_INT
readonly LOW_INT: number;Defined in: types/desktop-engine.d.ts:2237
Constant GL_LOW_INT
LUMINANCE
readonly LUMINANCE: number;Defined in: types/desktop-engine.d.ts:1971
Constant GL_LUMINANCE
LUMINANCE_ALPHA
readonly LUMINANCE_ALPHA: number;Defined in: types/desktop-engine.d.ts:1973
Constant GL_LUMINANCE_ALPHA
MAX_COMBINED_TEXTURE_IMAGE_UNITS
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;Defined in: types/desktop-engine.d.ts:1991
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:2097
Constant GL_MAX_CUBE_MAP_TEXTURE_SIZE
MAX_FRAGMENT_UNIFORM_VECTORS
readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;Defined in: types/desktop-engine.d.ts:1997
Constant GL_MAX_FRAGMENT_UNIFORM_VECTORS
MAX_RENDERBUFFER_SIZE
readonly MAX_RENDERBUFFER_SIZE: number;Defined in: types/desktop-engine.d.ts:2311
Constant GL_MAX_RENDERBUFFER_SIZE
MAX_TEXTURE_IMAGE_UNITS
readonly MAX_TEXTURE_IMAGE_UNITS: number;Defined in: types/desktop-engine.d.ts:1995
Constant GL_MAX_TEXTURE_IMAGE_UNITS
MAX_TEXTURE_SIZE
readonly MAX_TEXTURE_SIZE: number;Defined in: types/desktop-engine.d.ts:1903
Constant GL_MAX_TEXTURE_SIZE
MAX_VARYING_VECTORS
readonly MAX_VARYING_VECTORS: number;Defined in: types/desktop-engine.d.ts:1989
Constant GL_MAX_VARYING_VECTORS
MAX_VERTEX_ATTRIBS
readonly MAX_VERTEX_ATTRIBS: number;Defined in: types/desktop-engine.d.ts:1985
Constant GL_MAX_VERTEX_ATTRIBS
MAX_VERTEX_TEXTURE_IMAGE_UNITS
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;Defined in: types/desktop-engine.d.ts:1993
Constant GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
MAX_VERTEX_UNIFORM_VECTORS
readonly MAX_VERTEX_UNIFORM_VECTORS: number;Defined in: types/desktop-engine.d.ts:1987
Constant GL_MAX_VERTEX_UNIFORM_VECTORS
MAX_VIEWPORT_DIMS
readonly MAX_VIEWPORT_DIMS: number;Defined in: types/desktop-engine.d.ts:1905
Constant GL_MAX_VIEWPORT_DIMS
MEDIUM_FLOAT
readonly MEDIUM_FLOAT: number;Defined in: types/desktop-engine.d.ts:2233
Constant GL_MEDIUM_FLOAT
MEDIUM_INT
readonly MEDIUM_INT: number;Defined in: types/desktop-engine.d.ts:2239
Constant GL_MEDIUM_INT
MIRRORED_REPEAT
readonly MIRRORED_REPEAT: number;Defined in: types/desktop-engine.d.ts:2169
Constant GL_MIRRORED_REPEAT
NEAREST
readonly NEAREST: number;Defined in: types/desktop-engine.d.ts:2059
Constant GL_NEAREST
NEAREST_MIPMAP_LINEAR
readonly NEAREST_MIPMAP_LINEAR: number;Defined in: types/desktop-engine.d.ts:2067
Constant GL_NEAREST_MIPMAP_LINEAR
NEAREST_MIPMAP_NEAREST
readonly NEAREST_MIPMAP_NEAREST: number;Defined in: types/desktop-engine.d.ts:2063
Constant GL_NEAREST_MIPMAP_NEAREST
NEVER
readonly NEVER: number;Defined in: types/desktop-engine.d.ts:2021
Constant GL_NEVER
NICEST
readonly NICEST: number;Defined in: types/desktop-engine.d.ts:1943
Constant GL_NICEST
NO_ERROR
readonly NO_ERROR: number;Defined in: types/desktop-engine.d.ts:1829
Constant GL_NO_ERROR
NONE
readonly NONE: number;Defined in: types/desktop-engine.d.ts:2295
Constant GL_NONE
NOTEQUAL
readonly NOTEQUAL: number;Defined in: types/desktop-engine.d.ts:2031
Constant GL_NOTEQUAL
NUM_COMPRESSED_TEXTURE_FORMATS
readonly NUM_COMPRESSED_TEXTURE_FORMATS: number;Defined in: types/desktop-engine.d.ts:1935
Constant GL_NUM_COMPRESSED_TEXTURE_FORMATS
NUM_SHADER_BINARY_FORMATS
readonly NUM_SHADER_BINARY_FORMATS: number;Defined in: types/desktop-engine.d.ts:2229
Constant GL_NUM_SHADER_BINARY_FORMATS
ONE
readonly ONE: number;Defined in: types/desktop-engine.d.ts:1733
Constant GL_ONE
ONE_MINUS_CONSTANT_ALPHA
readonly ONE_MINUS_CONSTANT_ALPHA: number;Defined in: types/desktop-engine.d.ts:1779
Constant GL_ONE_MINUS_CONSTANT_ALPHA
ONE_MINUS_CONSTANT_COLOR
readonly ONE_MINUS_CONSTANT_COLOR: number;Defined in: types/desktop-engine.d.ts:1775
Constant GL_ONE_MINUS_CONSTANT_COLOR
ONE_MINUS_DST_ALPHA
readonly ONE_MINUS_DST_ALPHA: number;Defined in: types/desktop-engine.d.ts:1745
Constant GL_ONE_MINUS_DST_ALPHA
ONE_MINUS_DST_COLOR
readonly ONE_MINUS_DST_COLOR: number;Defined in: types/desktop-engine.d.ts:1749
Constant GL_ONE_MINUS_DST_COLOR
ONE_MINUS_SRC_ALPHA
readonly ONE_MINUS_SRC_ALPHA: number;Defined in: types/desktop-engine.d.ts:1741
Constant GL_ONE_MINUS_SRC_ALPHA
ONE_MINUS_SRC_COLOR
readonly ONE_MINUS_SRC_COLOR: number;Defined in: types/desktop-engine.d.ts:1737
Constant GL_ONE_MINUS_SRC_COLOR
OUT_OF_MEMORY
readonly OUT_OF_MEMORY: number;Defined in: types/desktop-engine.d.ts:1837
Constant GL_OUT_OF_MEMORY
PACK_ALIGNMENT
readonly PACK_ALIGNMENT: number;Defined in: types/desktop-engine.d.ts:1901
Constant GL_PACK_ALIGNMENT
POINTS
readonly POINTS: number;Defined in: types/desktop-engine.d.ts:1717
Constant GL_POINTS
POLYGON_OFFSET_FACTOR
readonly POLYGON_OFFSET_FACTOR: number;Defined in: types/desktop-engine.d.ts:1923
Constant GL_POLYGON_OFFSET_FACTOR
POLYGON_OFFSET_FILL
readonly POLYGON_OFFSET_FILL: number;Defined in: types/desktop-engine.d.ts:1823
Constant GL_POLYGON_OFFSET_FILL
POLYGON_OFFSET_UNITS
readonly POLYGON_OFFSET_UNITS: number;Defined in: types/desktop-engine.d.ts:1921
Constant GL_POLYGON_OFFSET_UNITS
RED_BITS
readonly RED_BITS: number;Defined in: types/desktop-engine.d.ts:1909
Constant GL_RED_BITS
RENDERBUFFER
readonly RENDERBUFFER: number;Defined in: types/desktop-engine.d.ts:2245
Constant GL_RENDERBUFFER
RENDERBUFFER_ALPHA_SIZE
readonly RENDERBUFFER_ALPHA_SIZE: number;Defined in: types/desktop-engine.d.ts:2273
Constant GL_RENDERBUFFER_ALPHA_SIZE
RENDERBUFFER_BINDING
readonly RENDERBUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:2309
Constant GL_RENDERBUFFER_BINDING
RENDERBUFFER_BLUE_SIZE
readonly RENDERBUFFER_BLUE_SIZE: number;Defined in: types/desktop-engine.d.ts:2271
Constant GL_RENDERBUFFER_BLUE_SIZE
RENDERBUFFER_DEPTH_SIZE
readonly RENDERBUFFER_DEPTH_SIZE: number;Defined in: types/desktop-engine.d.ts:2275
Constant GL_RENDERBUFFER_DEPTH_SIZE
RENDERBUFFER_GREEN_SIZE
readonly RENDERBUFFER_GREEN_SIZE: number;Defined in: types/desktop-engine.d.ts:2269
Constant GL_RENDERBUFFER_GREEN_SIZE
RENDERBUFFER_HEIGHT
readonly RENDERBUFFER_HEIGHT: number;Defined in: types/desktop-engine.d.ts:2263
Constant GL_RENDERBUFFER_HEIGHT
RENDERBUFFER_INTERNAL_FORMAT
readonly RENDERBUFFER_INTERNAL_FORMAT: number;Defined in: types/desktop-engine.d.ts:2265
Constant GL_RENDERBUFFER_INTERNAL_FORMAT
RENDERBUFFER_RED_SIZE
readonly RENDERBUFFER_RED_SIZE: number;Defined in: types/desktop-engine.d.ts:2267
Constant GL_RENDERBUFFER_RED_SIZE
RENDERBUFFER_STENCIL_SIZE
readonly RENDERBUFFER_STENCIL_SIZE: number;Defined in: types/desktop-engine.d.ts:2277
Constant GL_RENDERBUFFER_STENCIL_SIZE
RENDERBUFFER_WIDTH
readonly RENDERBUFFER_WIDTH: number;Defined in: types/desktop-engine.d.ts:2261
Constant GL_RENDERBUFFER_WIDTH
RENDERER
readonly RENDERER: number;Defined in: types/desktop-engine.d.ts:2053
Constant GL_RENDERER
REPEAT
readonly REPEAT: number;Defined in: types/desktop-engine.d.ts:2165
Constant GL_REPEAT
REPLACE
readonly REPLACE: number;Defined in: types/desktop-engine.d.ts:2039
Constant GL_REPLACE
RGB
readonly RGB: number;Defined in: types/desktop-engine.d.ts:1967
Constant GL_RGB
RGB5_A1
readonly RGB5_A1: number;Defined in: types/desktop-engine.d.ts:2249
Constant GL_RGB5_A1
RGB565
readonly RGB565: number;Defined in: types/desktop-engine.d.ts:2251
Constant GL_RGB565
RGBA
readonly RGBA: number;Defined in: types/desktop-engine.d.ts:1969
Constant GL_RGBA
RGBA4
readonly RGBA4: number;Defined in: types/desktop-engine.d.ts:2247
Constant GL_RGBA4
SAMPLE_ALPHA_TO_COVERAGE
readonly SAMPLE_ALPHA_TO_COVERAGE: number;Defined in: types/desktop-engine.d.ts:1825
Constant GL_SAMPLE_ALPHA_TO_COVERAGE
SAMPLE_BUFFERS
readonly SAMPLE_BUFFERS: number;Defined in: types/desktop-engine.d.ts:1927
Constant GL_SAMPLE_BUFFERS
SAMPLE_COVERAGE
readonly SAMPLE_COVERAGE: number;Defined in: types/desktop-engine.d.ts:1827
Constant GL_SAMPLE_COVERAGE
SAMPLE_COVERAGE_INVERT
readonly SAMPLE_COVERAGE_INVERT: number;Defined in: types/desktop-engine.d.ts:1933
Constant GL_SAMPLE_COVERAGE_INVERT
SAMPLE_COVERAGE_VALUE
readonly SAMPLE_COVERAGE_VALUE: number;Defined in: types/desktop-engine.d.ts:1931
Constant GL_SAMPLE_COVERAGE_VALUE
SAMPLER_2D
readonly SAMPLER_2D: number;Defined in: types/desktop-engine.d.ts:2197
Constant GL_SAMPLER_2D
SAMPLER_CUBE
readonly SAMPLER_CUBE: number;Defined in: types/desktop-engine.d.ts:2199
Constant GL_SAMPLER_CUBE
SAMPLES
readonly SAMPLES: number;Defined in: types/desktop-engine.d.ts:1929
Constant GL_SAMPLES
SCISSOR_BOX
readonly SCISSOR_BOX: number;Defined in: types/desktop-engine.d.ts:1893
Constant GL_SCISSOR_BOX
SCISSOR_TEST
readonly SCISSOR_TEST: number;Defined in: types/desktop-engine.d.ts:1821
Constant GL_SCISSOR_TEST
SHADER_BINARY_FORMATS
readonly SHADER_BINARY_FORMATS: number;Defined in: types/desktop-engine.d.ts:2227
Constant GL_SHADER_BINARY_FORMATS
SHADER_COMPILER
readonly SHADER_COMPILER: number;Defined in: types/desktop-engine.d.ts:2225
Constant GL_SHADER_COMPILER
SHADER_SOURCE_LENGTH
readonly SHADER_SOURCE_LENGTH: number;Defined in: types/desktop-engine.d.ts:2223
Constant GL_SHADER_SOURCE_LENGTH
SHADER_TYPE
readonly SHADER_TYPE: number;Defined in: types/desktop-engine.d.ts:1999
Constant GL_SHADER_TYPE
SHADING_LANGUAGE_VERSION
readonly SHADING_LANGUAGE_VERSION: number;Defined in: types/desktop-engine.d.ts:2017
Constant GL_SHADING_LANGUAGE_VERSION
SHORT
readonly SHORT: number;Defined in: types/desktop-engine.d.ts:1951
Constant GL_SHORT
SRC_ALPHA
readonly SRC_ALPHA: number;Defined in: types/desktop-engine.d.ts:1739
Constant GL_SRC_ALPHA
SRC_ALPHA_SATURATE
readonly SRC_ALPHA_SATURATE: number;Defined in: types/desktop-engine.d.ts:1751
Constant GL_SRC_ALPHA_SATURATE
SRC_COLOR
readonly SRC_COLOR: number;Defined in: types/desktop-engine.d.ts:1735
Constant GL_SRC_COLOR
STATIC_DRAW
readonly STATIC_DRAW: number;Defined in: types/desktop-engine.d.ts:1793
Constant GL_STATIC_DRAW
STENCIL_ATTACHMENT
readonly STENCIL_ATTACHMENT: number;Defined in: types/desktop-engine.d.ts:2291
Constant GL_STENCIL_ATTACHMENT
STENCIL_BACK_FAIL
readonly STENCIL_BACK_FAIL: number;Defined in: types/desktop-engine.d.ts:1879
Constant GL_STENCIL_BACK_FAIL
STENCIL_BACK_FUNC
readonly STENCIL_BACK_FUNC: number;Defined in: types/desktop-engine.d.ts:1877
Constant GL_STENCIL_BACK_FUNC
STENCIL_BACK_PASS_DEPTH_FAIL
readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;Defined in: types/desktop-engine.d.ts:1881
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:1883
Constant GL_STENCIL_BACK_PASS_DEPTH_PASS
STENCIL_BACK_REF
readonly STENCIL_BACK_REF: number;Defined in: types/desktop-engine.d.ts:1885
Constant GL_STENCIL_BACK_REF
STENCIL_BACK_VALUE_MASK
readonly STENCIL_BACK_VALUE_MASK: number;Defined in: types/desktop-engine.d.ts:1887
Constant GL_STENCIL_BACK_VALUE_MASK
STENCIL_BACK_WRITEMASK
readonly STENCIL_BACK_WRITEMASK: number;Defined in: types/desktop-engine.d.ts:1889
Constant GL_STENCIL_BACK_WRITEMASK
STENCIL_BITS
readonly STENCIL_BITS: number;Defined in: types/desktop-engine.d.ts:1919
Constant GL_STENCIL_BITS
STENCIL_BUFFER_BIT
readonly STENCIL_BUFFER_BIT: number;Defined in: types/desktop-engine.d.ts:1709
Constant GL_STENCIL_BUFFER_BIT
STENCIL_CLEAR_VALUE
readonly STENCIL_CLEAR_VALUE: number;Defined in: types/desktop-engine.d.ts:1861
Constant GL_STENCIL_CLEAR_VALUE
STENCIL_FAIL
readonly STENCIL_FAIL: number;Defined in: types/desktop-engine.d.ts:1865
Constant GL_STENCIL_FAIL
STENCIL_FUNC
readonly STENCIL_FUNC: number;Defined in: types/desktop-engine.d.ts:1863
Constant GL_STENCIL_FUNC
STENCIL_INDEX
readonly STENCIL_INDEX: number;Defined in: types/desktop-engine.d.ts:2255
Constant STENCIL_INDEX (its actual value is GL_DEPTH_STENCIL_OES)
STENCIL_INDEX8
readonly STENCIL_INDEX8: number;Defined in: types/desktop-engine.d.ts:2257
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:1867
Constant GL_STENCIL_PASS_DEPTH_FAIL
STENCIL_PASS_DEPTH_PASS
readonly STENCIL_PASS_DEPTH_PASS: number;Defined in: types/desktop-engine.d.ts:1869
Constant GL_STENCIL_PASS_DEPTH_PASS
STENCIL_REF
readonly STENCIL_REF: number;Defined in: types/desktop-engine.d.ts:1871
Constant GL_STENCIL_REF
STENCIL_TEST
readonly STENCIL_TEST: number;Defined in: types/desktop-engine.d.ts:1817
Constant GL_STENCIL_TEST
STENCIL_VALUE_MASK
readonly STENCIL_VALUE_MASK: number;Defined in: types/desktop-engine.d.ts:1873
Constant GL_STENCIL_VALUE_MASK
STENCIL_WRITEMASK
readonly STENCIL_WRITEMASK: number;Defined in: types/desktop-engine.d.ts:1875
Constant GL_STENCIL_WRITEMASK
STREAM_DRAW
readonly STREAM_DRAW: number;Defined in: types/desktop-engine.d.ts:1791
Constant GL_STREAM_DRAW
SUBPIXEL_BITS
readonly SUBPIXEL_BITS: number;Defined in: types/desktop-engine.d.ts:1907
Constant GL_SUBPIXEL_BITS
TEXTURE
readonly TEXTURE: number;Defined in: types/desktop-engine.d.ts:2079
Constant GL_TEXTURE
TEXTURE_2D
readonly TEXTURE_2D: number;Defined in: types/desktop-engine.d.ts:1809
Constant GL_TEXTURE_2D
TEXTURE_BINDING_2D
readonly TEXTURE_BINDING_2D: number;Defined in: types/desktop-engine.d.ts:1925
Constant GL_TEXTURE_BINDING_2D
TEXTURE_BINDING_CUBE_MAP
readonly TEXTURE_BINDING_CUBE_MAP: number;Defined in: types/desktop-engine.d.ts:2083
Constant GL_TEXTURE_BINDING_CUBE_MAP
TEXTURE_CUBE_MAP
readonly TEXTURE_CUBE_MAP: number;Defined in: types/desktop-engine.d.ts:2081
Constant GL_TEXTURE_CUBE_MAP
TEXTURE_CUBE_MAP_NEGATIVE_X
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;Defined in: types/desktop-engine.d.ts:2087
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:2091
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:2095
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:2085
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:2089
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:2093
Constant GL_TEXTURE_CUBE_MAP_POSITIVE_Z
TEXTURE_MAG_FILTER
readonly TEXTURE_MAG_FILTER: number;Defined in: types/desktop-engine.d.ts:2071
Constant GL_TEXTURE_MAG_FILTER
TEXTURE_MIN_FILTER
readonly TEXTURE_MIN_FILTER: number;Defined in: types/desktop-engine.d.ts:2073
Constant GL_TEXTURE_MIN_FILTER
TEXTURE_WRAP_S
readonly TEXTURE_WRAP_S: number;Defined in: types/desktop-engine.d.ts:2075
Constant GL_TEXTURE_WRAP_S
TEXTURE_WRAP_T
readonly TEXTURE_WRAP_T: number;Defined in: types/desktop-engine.d.ts:2077
Constant GL_TEXTURE_WRAP_T
TEXTURE0
readonly TEXTURE0: number;Defined in: types/desktop-engine.d.ts:2099
Constant GL_TEXTURE0
TEXTURE1
readonly TEXTURE1: number;Defined in: types/desktop-engine.d.ts:2101
Constant GL_TEXTURE1
TEXTURE10
readonly TEXTURE10: number;Defined in: types/desktop-engine.d.ts:2119
Constant GL_TEXTURE10
TEXTURE11
readonly TEXTURE11: number;Defined in: types/desktop-engine.d.ts:2121
Constant GL_TEXTURE11
TEXTURE12
readonly TEXTURE12: number;Defined in: types/desktop-engine.d.ts:2123
Constant GL_TEXTURE12
TEXTURE13
readonly TEXTURE13: number;Defined in: types/desktop-engine.d.ts:2125
Constant GL_TEXTURE13
TEXTURE14
readonly TEXTURE14: number;Defined in: types/desktop-engine.d.ts:2127
Constant GL_TEXTURE14
TEXTURE15
readonly TEXTURE15: number;Defined in: types/desktop-engine.d.ts:2129
Constant GL_TEXTURE15
TEXTURE16
readonly TEXTURE16: number;Defined in: types/desktop-engine.d.ts:2131
Constant GL_TEXTURE16
TEXTURE17
readonly TEXTURE17: number;Defined in: types/desktop-engine.d.ts:2133
Constant GL_TEXTURE17
TEXTURE18
readonly TEXTURE18: number;Defined in: types/desktop-engine.d.ts:2135
Constant GL_TEXTURE18
TEXTURE19
readonly TEXTURE19: number;Defined in: types/desktop-engine.d.ts:2137
Constant GL_TEXTURE19
TEXTURE2
readonly TEXTURE2: number;Defined in: types/desktop-engine.d.ts:2103
Constant GL_TEXTURE2
TEXTURE20
readonly TEXTURE20: number;Defined in: types/desktop-engine.d.ts:2139
Constant GL_TEXTURE20
TEXTURE21
readonly TEXTURE21: number;Defined in: types/desktop-engine.d.ts:2141
Constant GL_TEXTURE21
TEXTURE22
readonly TEXTURE22: number;Defined in: types/desktop-engine.d.ts:2143
Constant GL_TEXTURE22
TEXTURE23
readonly TEXTURE23: number;Defined in: types/desktop-engine.d.ts:2145
Constant GL_TEXTURE23
TEXTURE24
readonly TEXTURE24: number;Defined in: types/desktop-engine.d.ts:2147
Constant GL_TEXTURE24
TEXTURE25
readonly TEXTURE25: number;Defined in: types/desktop-engine.d.ts:2149
Constant GL_TEXTURE25
TEXTURE26
readonly TEXTURE26: number;Defined in: types/desktop-engine.d.ts:2151
Constant GL_TEXTURE26
TEXTURE27
readonly TEXTURE27: number;Defined in: types/desktop-engine.d.ts:2153
Constant GL_TEXTURE27
TEXTURE28
readonly TEXTURE28: number;Defined in: types/desktop-engine.d.ts:2155
Constant GL_TEXTURE28
TEXTURE29
readonly TEXTURE29: number;Defined in: types/desktop-engine.d.ts:2157
Constant GL_TEXTURE29
TEXTURE3
readonly TEXTURE3: number;Defined in: types/desktop-engine.d.ts:2105
Constant GL_TEXTURE3
TEXTURE30
readonly TEXTURE30: number;Defined in: types/desktop-engine.d.ts:2159
Constant GL_TEXTURE30
TEXTURE31
readonly TEXTURE31: number;Defined in: types/desktop-engine.d.ts:2161
Constant GL_TEXTURE31
TEXTURE4
readonly TEXTURE4: number;Defined in: types/desktop-engine.d.ts:2107
Constant GL_TEXTURE4
TEXTURE5
readonly TEXTURE5: number;Defined in: types/desktop-engine.d.ts:2109
Constant GL_TEXTURE5
TEXTURE6
readonly TEXTURE6: number;Defined in: types/desktop-engine.d.ts:2111
Constant GL_TEXTURE6
TEXTURE7
readonly TEXTURE7: number;Defined in: types/desktop-engine.d.ts:2113
Constant GL_TEXTURE7
TEXTURE8
readonly TEXTURE8: number;Defined in: types/desktop-engine.d.ts:2115
Constant GL_TEXTURE8
TEXTURE9
readonly TEXTURE9: number;Defined in: types/desktop-engine.d.ts:2117
Constant GL_TEXTURE9
TRIANGLE_FAN
readonly TRIANGLE_FAN: number;Defined in: types/desktop-engine.d.ts:1729
Constant GL_TRIANGLE_FAN
TRIANGLE_STRIP
readonly TRIANGLE_STRIP: number;Defined in: types/desktop-engine.d.ts:1727
Constant GL_TRIANGLE_STRIP
TRIANGLES
readonly TRIANGLES: number;Defined in: types/desktop-engine.d.ts:1725
Constant GL_TRIANGLES
TRUE
readonly TRUE: number;Defined in: types/desktop-engine.d.ts:1715
Constant GL_TRUE
UNPACK_ALIGNMENT
readonly UNPACK_ALIGNMENT: number;Defined in: types/desktop-engine.d.ts:1899
Constant GL_UNPACK_ALIGNMENT
UNPACK_COLORSPACE_CONVERSION_WEBGL
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;Defined in: types/desktop-engine.d.ts:2321
Constant GL_UNPACK_COLORSPACE_CONVERSION_WEBGL
UNPACK_FLIP_Y_WEBGL
readonly UNPACK_FLIP_Y_WEBGL: number;Defined in: types/desktop-engine.d.ts:2315
Constant GL_UNPACK_FLIP_Y_WEBGL
UNPACK_PREMULTIPLY_ALPHA_WEBGL
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;Defined in: types/desktop-engine.d.ts:2317
Constant GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL
UNSIGNED_BYTE
readonly UNSIGNED_BYTE: number;Defined in: types/desktop-engine.d.ts:1949
Constant GL_UNSIGNED_BYTE
UNSIGNED_INT
readonly UNSIGNED_INT: number;Defined in: types/desktop-engine.d.ts:1957
Constant GL_UNSIGNED_INT
UNSIGNED_SHORT
readonly UNSIGNED_SHORT: number;Defined in: types/desktop-engine.d.ts:1953
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:1975
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:1977
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:1979
Constant GL_UNSIGNED_SHORT_5_6_5
VALIDATE_STATUS
readonly VALIDATE_STATUS: number;Defined in: types/desktop-engine.d.ts:2005
Constant GL_VALIDATE_STATUS
VENDOR
readonly VENDOR: number;Defined in: types/desktop-engine.d.ts:2051
Constant GL_VENDOR
VERSION
readonly VERSION: number;Defined in: types/desktop-engine.d.ts:2055
Constant GL_VERSION
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;Defined in: types/desktop-engine.d.ts:2213
Constant GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
VERTEX_ATTRIB_ARRAY_ENABLED
readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;Defined in: types/desktop-engine.d.ts:2201
Constant GL_VERTEX_ATTRIB_ARRAY_ENABLED
VERTEX_ATTRIB_ARRAY_NORMALIZED
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;Defined in: types/desktop-engine.d.ts:2209
Constant GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
VERTEX_ATTRIB_ARRAY_POINTER
readonly VERTEX_ATTRIB_ARRAY_POINTER: number;Defined in: types/desktop-engine.d.ts:2211
Constant GL_VERTEX_ATTRIB_ARRAY_POINTER
VERTEX_ATTRIB_ARRAY_SIZE
readonly VERTEX_ATTRIB_ARRAY_SIZE: number;Defined in: types/desktop-engine.d.ts:2203
Constant GL_VERTEX_ATTRIB_ARRAY_SIZE
VERTEX_ATTRIB_ARRAY_STRIDE
readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;Defined in: types/desktop-engine.d.ts:2205
Constant GL_VERTEX_ATTRIB_ARRAY_STRIDE
VERTEX_ATTRIB_ARRAY_TYPE
readonly VERTEX_ATTRIB_ARRAY_TYPE: number;Defined in: types/desktop-engine.d.ts:2207
Constant GL_VERTEX_ATTRIB_ARRAY_TYPE
VERTEX_SHADER
readonly VERTEX_SHADER: number;Defined in: types/desktop-engine.d.ts:1983
Constant GL_VERTEX_SHADER
VIEWPORT
readonly VIEWPORT: number;Defined in: types/desktop-engine.d.ts:1891
Constant GL_VIEWPORT
ZERO
readonly ZERO: number;Defined in: types/desktop-engine.d.ts:1731
Constant GL_ZERO
Methods
activeTexture()
activeTexture(texture): void;Defined in: types/desktop-engine.d.ts:1429
Activates a texture unit
Parameters
| Parameter | Type |
|---|---|
texture | number |
Returns
void
attachShader()
attachShader(program, shader): void;Defined in: types/desktop-engine.d.ts:1431
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:1433
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:1435
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:1439
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:1437
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:1445
Binds a texture
Parameters
| Parameter | Type |
|---|---|
target | number |
texture | WebGLTexture | null |
Returns
void
blBindCanvasTexture()
blBindCanvasTexture(target, drawable): void;Defined in: types/desktop-engine.d.ts:1443
Same as wxBindCanvasTexture (non-standard)
Parameters
| Parameter | Type |
|---|---|
target | number |
drawable | CanvasDrawable |
Returns
void
blendColor()
blendColor(
red,
green,
blue,
alpha
): void;Defined in: types/desktop-engine.d.ts:1447
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:1449
Blend equation
Parameters
| Parameter | Type |
|---|---|
mode | number |
Returns
void
blendEquationSeparate()
blendEquationSeparate(modeRGB, modeAlpha): void;Defined in: types/desktop-engine.d.ts:1451
Separate blend equations
Parameters
| Parameter | Type |
|---|---|
modeRGB | number |
modeAlpha | number |
Returns
void
blendFunc()
blendFunc(sfactor, dfactor): void;Defined in: types/desktop-engine.d.ts:1453
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:1455
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:1457
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:1459
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:1461
Checks the framebuffer status
Parameters
| Parameter | Type |
|---|---|
target | number |
Returns
number
clear()
clear(mask): void;Defined in: types/desktop-engine.d.ts:1463
Clears buffers
Parameters
| Parameter | Type |
|---|---|
mask | number |
Returns
void
clearColor()
clearColor(
red,
green,
blue,
alpha
): void;Defined in: types/desktop-engine.d.ts:1465
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:1467
Clear depth
Parameters
| Parameter | Type |
|---|---|
depth | number |
Returns
void
clearStencil()
clearStencil(s): void;Defined in: types/desktop-engine.d.ts:1469
Clear stencil value
Parameters
| Parameter | Type |
|---|---|
s | number |
Returns
void
colorMask()
colorMask(
red,
green,
blue,
alpha
): void;Defined in: types/desktop-engine.d.ts:1471
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:1473
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:1475
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:1477
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:1479
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:1481
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:1483
Creates a buffer
Returns
WebGLBuffer | null
createFramebuffer()
createFramebuffer(): WebGLFramebuffer | null;Defined in: types/desktop-engine.d.ts:1485
Creates a framebuffer
Returns
WebGLFramebuffer | null
createProgram()
createProgram(): WebGLProgram | null;Defined in: types/desktop-engine.d.ts:1491
Creates a program
Returns
WebGLProgram | null
createRenderbuffer()
createRenderbuffer(): WebGLRenderbuffer | null;Defined in: types/desktop-engine.d.ts:1487
Creates a renderbuffer
Returns
WebGLRenderbuffer | null
createShader()
createShader(type): WebGLShader | null;Defined in: types/desktop-engine.d.ts:1493
Creates a shader
Parameters
| Parameter | Type |
|---|---|
type | number |
Returns
WebGLShader | null
createTexture()
createTexture(): WebGLTexture | null;Defined in: types/desktop-engine.d.ts:1489
Creates a texture
Returns
WebGLTexture | null
cullFace()
cullFace(mode): void;Defined in: types/desktop-engine.d.ts:1495
Face culling mode
Parameters
| Parameter | Type |
|---|---|
mode | number |
Returns
void
deleteBuffer()
deleteBuffer(buffer): void;Defined in: types/desktop-engine.d.ts:1497
Deletes a buffer
Parameters
| Parameter | Type |
|---|---|
buffer | WebGLBuffer | null |
Returns
void
deleteFramebuffer()
deleteFramebuffer(framebuffer): void;Defined in: types/desktop-engine.d.ts:1499
Deletes a framebuffer
Parameters
| Parameter | Type |
|---|---|
framebuffer | WebGLFramebuffer | null |
Returns
void
deleteProgram()
deleteProgram(program): void;Defined in: types/desktop-engine.d.ts:1507
Deletes a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram | null |
Returns
void
deleteRenderbuffer()
deleteRenderbuffer(renderbuffer): void;Defined in: types/desktop-engine.d.ts:1501
Deletes a renderbuffer
Parameters
| Parameter | Type |
|---|---|
renderbuffer | WebGLRenderbuffer | null |
Returns
void
deleteShader()
deleteShader(shader): void;Defined in: types/desktop-engine.d.ts:1503
Deletes a shader
Parameters
| Parameter | Type |
|---|---|
shader | WebGLShader | null |
Returns
void
deleteTexture()
deleteTexture(texture): void;Defined in: types/desktop-engine.d.ts:1505
Deletes a texture
Parameters
| Parameter | Type |
|---|---|
texture | WebGLTexture | null |
Returns
void
depthFunc()
depthFunc(func): void;Defined in: types/desktop-engine.d.ts:1509
Depth comparison function
Parameters
| Parameter | Type |
|---|---|
func | number |
Returns
void
depthMask()
depthMask(flag): void;Defined in: types/desktop-engine.d.ts:1511
Enables or disables depth writes
Parameters
| Parameter | Type |
|---|---|
flag | boolean |
Returns
void
depthRange()
depthRange(zNear, zFar): void;Defined in: types/desktop-engine.d.ts:1513
Depth range
Parameters
| Parameter | Type |
|---|---|
zNear | number |
zFar | number |
Returns
void
detachShader()
detachShader(program, shader): void;Defined in: types/desktop-engine.d.ts:1515
Detaches a shader
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
shader | WebGLShader |
Returns
void
disable()
disable(cap): void;Defined in: types/desktop-engine.d.ts:1517
Disables a capability
Parameters
| Parameter | Type |
|---|---|
cap | number |
Returns
void
disableVertexAttribArray()
disableVertexAttribArray(index): void;Defined in: types/desktop-engine.d.ts:1519
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:1521
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:1523
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:1525
Enables a capability
Parameters
| Parameter | Type |
|---|---|
cap | number |
Returns
void
enableVertexAttribArray()
enableVertexAttribArray(index): void;Defined in: types/desktop-engine.d.ts:1527
Enables a vertex attribute array
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
void
finish()
finish(): void;Defined in: types/desktop-engine.d.ts:1531
Waits for commands to finish
Returns
void
flush()
flush(): void;Defined in: types/desktop-engine.d.ts:1529
Flushes commands
Returns
void
framebufferRenderbuffer()
framebufferRenderbuffer(
target,
attachment,
renderbuffertarget,
renderbuffer
): void;Defined in: types/desktop-engine.d.ts:1533
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:1535
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:1537
Front face winding
Parameters
| Parameter | Type |
|---|---|
mode | number |
Returns
void
generateMipmap()
generateMipmap(target): void;Defined in: types/desktop-engine.d.ts:1539
Generates mipmaps
Parameters
| Parameter | Type |
|---|---|
target | number |
Returns
void
getActiveAttrib()
getActiveAttrib(program, index): WebGLActiveInfo | null;Defined in: types/desktop-engine.d.ts:1541
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:1543
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:1545
Gets the attached shaders
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
Returns
WebGLShader[] | null
getAttribLocation()
getAttribLocation(program, name): number;Defined in: types/desktop-engine.d.ts:1547
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:1555
Queries a buffer parameter
Parameters
| Parameter | Type |
|---|---|
target | number |
pname | number |
Returns
any
getContextAttributes()
getContextAttributes(): WebGLContextAttributes;Defined in: types/desktop-engine.d.ts:1419
Gets the context attributes (fixed values)
Returns
getError()
getError(): number;Defined in: types/desktop-engine.d.ts:1557
Gets the error code
Returns
number
getExtension()
Call Signature
getExtension<K>(name): WebGLExtensionMap[K] | null;Defined in: types/desktop-engine.d.ts:1425
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:1427
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:1559
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:1553
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:1563
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:1561
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:1565
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:1571
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:1567
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:1569
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:1573
Gets the shader source
Parameters
| Parameter | Type |
|---|---|
shader | WebGLShader |
Returns
string | null
getSupportedExtensions()
getSupportedExtensions(): string[];Defined in: types/desktop-engine.d.ts:1423
Gets the list of supported extension names
Returns
string[]
getTexParameter()
getTexParameter(target, pname): any;Defined in: types/desktop-engine.d.ts:1575
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:1577
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:1579
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:1581
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:1583
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:1585
Hint
Parameters
| Parameter | Type |
|---|---|
target | number |
mode | number |
Returns
void
isBuffer()
isBuffer(buffer): boolean;Defined in: types/desktop-engine.d.ts:1587
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:1421
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:1599
Returns whether a capability is enabled
Parameters
| Parameter | Type |
|---|---|
cap | number |
Returns
boolean
isFramebuffer()
isFramebuffer(framebuffer): boolean;Defined in: types/desktop-engine.d.ts:1589
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:1591
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:1593
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:1595
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:1597
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:1601
Line width
Parameters
| Parameter | Type |
|---|---|
width | number |
Returns
void
linkProgram()
linkProgram(program): void;Defined in: types/desktop-engine.d.ts:1603
Links a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
Returns
void
pixelStorei()
pixelStorei(pname, param): void;Defined in: types/desktop-engine.d.ts:1605
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:1607
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:1609
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:1611
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:1613
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:1615
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:1617
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:1619
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:1621
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:1623
Stencil write mask
Parameters
| Parameter | Type |
|---|---|
mask | number |
Returns
void
stencilMaskSeparate()
stencilMaskSeparate(face, mask): void;Defined in: types/desktop-engine.d.ts:1625
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:1627
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:1629
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:1631
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:1633
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:1639
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:1641
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:1635
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:1637
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:1643
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:1659
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:1651
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:1667
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:1645
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:1661
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:1653
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:1669
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:1647
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:1663
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:1655
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:1671
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:1649
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:1665
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:1657
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:1673
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:1675
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:1677
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:1679
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:1681
Uses a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram | null |
Returns
void
validateProgram()
validateProgram(program): void;Defined in: types/desktop-engine.d.ts:1683
Validates a program
Parameters
| Parameter | Type |
|---|---|
program | WebGLProgram |
Returns
void
vertexAttrib1f()
vertexAttrib1f(index, x): void;Defined in: types/desktop-engine.d.ts:1685
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:1693
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:1687
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:1695
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:1689
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:1697
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:1691
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:1699
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:1701
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:1703
Viewport
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
wxBindCanvasTexture()
wxBindCanvasTexture(target, drawable): void;Defined in: types/desktop-engine.d.ts:1441
Binds canvas/image contents as a texture (non-standard)
Parameters
| Parameter | Type |
|---|---|
target | number |
drawable | CanvasDrawable |
Returns
void
