Index
Functions
get
Extensions
gl
Canvas
Object literals
default
Opts
Functions
Const
get
Extensions
get
Extensions<K>
(
gl
:
WebGLRenderingContext
, ids
:
K
[]
, required
?:
boolean
)
:
Pick
<
WebGLExtensionMap
,
K
>
Type parameters
K
:
keyof
WebGLExtensionMap
Parameters
gl:
WebGLRenderingContext
ids:
K
[]
Default value
required:
boolean
= true
Returns
Pick
<
WebGLExtensionMap
,
K
>
Const
gl
Canvas
gl
Canvas
(
opts
?:
Partial
<
WeblGLCanvasOpts
>
)
:
{
canvas
:
HTMLCanvasElement
;
ext
:
Pick
<
WebGLExtensionMap
,
"ANGLE_instanced_arrays"
|
"EXT_blend_minmax"
|
"EXT_color_buffer_float"
|
"EXT_frag_depth"
|
"EXT_shader_texture_lod"
|
"EXT_sRGB"
|
"EXT_texture_filter_anisotropic"
|
"OES_element_index_uint"
|
"OES_standard_derivatives"
|
"OES_texture_float_linear"
|
"OES_texture_float"
|
"OES_texture_half_float_linear"
|
"OES_texture_half_float"
|
"OES_vertex_array_object"
|
"WEBGL_color_buffer_float"
|
"WEBGL_compressed_texture_astc"
|
"WEBGL_compressed_texture_s3tc_srgb"
|
"WEBGL_compressed_texture_s3tc"
|
"WEBGL_debug_renderer_info"
|
"WEBGL_debug_shaders"
|
"WEBGL_depth_texture"
|
"WEBGL_draw_buffers"
|
"WEBGL_lose_context"
>
;
gl
:
WebGLRenderingContext
}
Parameters
Default value
opts:
Partial
<
WeblGLCanvasOpts
>
= {}
Returns
{
canvas
:
HTMLCanvasElement
;
ext
:
Pick
<
WebGLExtensionMap
,
"ANGLE_instanced_arrays"
|
"EXT_blend_minmax"
|
"EXT_color_buffer_float"
|
"EXT_frag_depth"
|
"EXT_shader_texture_lod"
|
"EXT_sRGB"
|
"EXT_texture_filter_anisotropic"
|
"OES_element_index_uint"
|
"OES_standard_derivatives"
|
"OES_texture_float_linear"
|
"OES_texture_float"
|
"OES_texture_half_float_linear"
|
"OES_texture_half_float"
|
"OES_vertex_array_object"
|
"WEBGL_color_buffer_float"
|
"WEBGL_compressed_texture_astc"
|
"WEBGL_compressed_texture_s3tc_srgb"
|
"WEBGL_compressed_texture_s3tc"
|
"WEBGL_debug_renderer_info"
|
"WEBGL_debug_shaders"
|
"WEBGL_depth_texture"
|
"WEBGL_draw_buffers"
|
"WEBGL_lose_context"
>
;
gl
:
WebGLRenderingContext
}
canvas
:
HTMLCanvasElement
ext
:
Pick
<
WebGLExtensionMap
,
"ANGLE_instanced_arrays"
|
"EXT_blend_minmax"
|
"EXT_color_buffer_float"
|
"EXT_frag_depth"
|
"EXT_shader_texture_lod"
|
"EXT_sRGB"
|
"EXT_texture_filter_anisotropic"
|
"OES_element_index_uint"
|
"OES_standard_derivatives"
|
"OES_texture_float_linear"
|
"OES_texture_float"
|
"OES_texture_half_float_linear"
|
"OES_texture_half_float"
|
"OES_vertex_array_object"
|
"WEBGL_color_buffer_float"
|
"WEBGL_compressed_texture_astc"
|
"WEBGL_compressed_texture_s3tc_srgb"
|
"WEBGL_compressed_texture_s3tc"
|
"WEBGL_debug_renderer_info"
|
"WEBGL_debug_shaders"
|
"WEBGL_depth_texture"
|
"WEBGL_draw_buffers"
|
"WEBGL_lose_context"
>
gl
:
WebGLRenderingContext
Object literals
Const
default
Opts
default
Opts
:
object
alpha
alpha
:
true
= true
antialias
antialias
:
true
= true
depth
depth
:
true
= true
premultiplied
Alpha
premultiplied
Alpha
:
true
= true
preserve
Drawing
Buffer
preserve
Drawing
Buffer
:
false
= false
stencil
stencil
:
false
= false
Globals
"canvas"
get
Extensions
gl
Canvas
default
Opts
Generated using
TypeDoc