Search
Preparing search index...
The search index is not available
@tgl/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
TglContext
Class TglContext
Hierarchy
TglContext
Index
Constructors
constructor
Properties
_canvas
_element
Array
Buffer
_gl
Accessors
active
Texture
blend
Color
blend
Equation
blend
Equation
Alpha
blend
Equation
Rgb
blending
Enabled
canvas
clear
Color
clear
Depth
clear
Stencil
color
Mask
cull
Face
Mode
depth
Test
Enabled
dither
Enabled
face
Culling
Enabled
polygon
Offset
Fill
Enabled
sample
Alpha
ToCoverage
Enabled
sample
Coverage
Enabled
scissor
Test
Enabled
stencil
Test
Enabled
web
GlRendering
Context
Methods
check
Errors
clear
Constructors
constructor
new
Tgl
Context
(
canvas
:
HTMLCanvasElement
, options
?:
WebGLContextAttributes
)
:
TglContext
Parameters
canvas:
HTMLCanvasElement
Optional
options:
WebGLContextAttributes
Returns
TglContext
Properties
Private
_canvas
_canvas
:
HTMLCanvasElement
Private
_element
Array
Buffer
_element
Array
Buffer
:
WebGLBuffer
Private
_gl
_gl
:
WebGLRenderingContext
Accessors
active
Texture
get
activeTexture
(
)
:
number
set
activeTexture
(
value
:
number
)
:
void
Returns
number
Parameters
value:
number
Returns
void
blend
Color
get
blendColor
(
)
:
Object
set
blendColor
(
value
:
[
number
,
number
,
number
,
number
]
)
:
void
Returns
Object
Parameters
value:
[
number
,
number
,
number
,
number
]
Returns
void
blend
Equation
get
blendEquation
(
)
:
GlBlendEquation
set
blendEquation
(
value
:
GlBlendEquation
)
:
void
Returns
GlBlendEquation
Parameters
value:
GlBlendEquation
Returns
void
blend
Equation
Alpha
get
blendEquationAlpha
(
)
:
GlBlendEquation
set
blendEquationAlpha
(
value
:
GlBlendEquation
)
:
void
Returns
GlBlendEquation
Parameters
value:
GlBlendEquation
Returns
void
blend
Equation
Rgb
get
blendEquationRgb
(
)
:
GlBlendEquation
set
blendEquationRgb
(
value
:
GlBlendEquation
)
:
void
Returns
GlBlendEquation
Parameters
value:
GlBlendEquation
Returns
void
blending
Enabled
get
blendingEnabled
(
)
:
boolean
set
blendingEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
canvas
get
canvas
(
)
:
HTMLCanvasElement
Returns
HTMLCanvasElement
clear
Color
get
clearColor
(
)
:
Object
set
clearColor
(
value
:
[
number
,
number
,
number
,
number
]
)
:
void
Returns
Object
Parameters
value:
[
number
,
number
,
number
,
number
]
Returns
void
clear
Depth
get
clearDepth
(
)
:
number
set
clearDepth
(
value
:
number
)
:
void
Returns
number
Parameters
value:
number
Returns
void
clear
Stencil
get
clearStencil
(
)
:
number
set
clearStencil
(
value
:
number
)
:
void
Returns
number
Parameters
value:
number
Returns
void
color
Mask
get
colorMask
(
)
:
Object
set
colorMask
(
value
:
[
boolean
,
boolean
,
boolean
,
boolean
]
)
:
void
Returns
Object
Parameters
value:
[
boolean
,
boolean
,
boolean
,
boolean
]
Returns
void
cull
Face
Mode
get
cullFaceMode
(
)
:
GlCullMode
set
cullFaceMode
(
value
:
GlCullMode
)
:
void
Returns
GlCullMode
Parameters
value:
GlCullMode
Returns
void
depth
Test
Enabled
get
depthTestEnabled
(
)
:
boolean
set
depthTestEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
dither
Enabled
get
ditherEnabled
(
)
:
boolean
set
ditherEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
face
Culling
Enabled
get
faceCullingEnabled
(
)
:
boolean
set
faceCullingEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
polygon
Offset
Fill
Enabled
get
polygonOffsetFillEnabled
(
)
:
boolean
set
polygonOffsetFillEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
sample
Alpha
ToCoverage
Enabled
get
sampleAlphaToCoverageEnabled
(
)
:
boolean
set
sampleAlphaToCoverageEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
sample
Coverage
Enabled
get
sampleCoverageEnabled
(
)
:
boolean
set
sampleCoverageEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
scissor
Test
Enabled
get
scissorTestEnabled
(
)
:
boolean
set
scissorTestEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
stencil
Test
Enabled
get
stencilTestEnabled
(
)
:
boolean
set
stencilTestEnabled
(
value
:
boolean
)
:
void
Returns
boolean
Parameters
value:
boolean
Returns
void
web
GlRendering
Context
get
webGlRenderingContext
(
)
:
WebGLRenderingContext
Returns
WebGLRenderingContext
Methods
check
Errors
check
Errors
(
)
:
void
Returns
void
clear
clear
(
flags
?:
GlClearFlags
)
:
void
Parameters
Default value
flags:
GlClearFlags
= GlClearFlags.COLOR_BUFFER_BIT
Returns
void
Globals
Gl
Blend
Equation
Gl
Buffer
Usage
Gl
Clear
Flags
Gl
Cull
Mode
Gl
Data
Type
Gl
Error
Gl
Mag
Type
Gl
Min
Type
Gl
Pixel
Format
Gl
Pixel
Type
Gl
Primitive
Type
Gl
Wrap
Mode
Drawable
Index
Buffer
Shader
Texture
Tgl
Context
constructor
_canvas
_element
Array
Buffer
_gl
active
Texture
blend
Color
blend
Equation
blend
Equation
Alpha
blend
Equation
Rgb
blending
Enabled
canvas
clear
Color
clear
Depth
clear
Stencil
color
Mask
cull
Face
Mode
depth
Test
Enabled
dither
Enabled
face
Culling
Enabled
polygon
Offset
Fill
Enabled
sample
Alpha
ToCoverage
Enabled
sample
Coverage
Enabled
scissor
Test
Enabled
stencil
Test
Enabled
web
GlRendering
Context
check
Errors
clear
Vertex
Buffer
Attribute
Info
Attribute
Options
Buffer
Options
Drawable
Options
Shader
Options
Texture
Options
Uniform
Info
Texture
Image
Uniform
Collection
Uniform
Value
Default
Texture
Options
attribute
Defaults
buffer
Defaults
default
Options
Generated using
TypeDoc