@awayjs
stage
Search
Preparing search index...
The search index is not available
Options
Show Inherited
Menu
Class ContextGLES
Hierarchy
ContextGLES
Implements
IContextGL
Index
Constructors
constructor
Properties
_cmd
Bytes
_create
Bytes
_current
Program
_gl
MAX_
SAMPLERS
_sound
Bytes
modulo
Accessors
container
pixel
Ratio
standard
Derivatives
Methods
clear
configure
Back
Buffer
create
Cube
Texture
create
Index
Buffer
create
Program
create
Texture
create
Vertex
Buffer
disable
Stencil
dispose
draw
Indices
draw
ToBitmap
Image2D
draw
Vertices
enable
Stencil
execute
gl
present
set
Blend
Factors
set
Color
Mask
set
Culling
set
Depth
Test
set
Program
set
Program
Constants
From
Array
set
Render
ToBack
Buffer
set
Render
ToTexture
set
Sampler
State
At
set
Scissor
Rectangle
set
Stencil
Actions
set
Stencil
Actions
Masks
set
Stencil
Reference
Value
set
Texture
At
set
Vertex
Buffer
At
start
Sound
stop
Sound
update
Sound
Constructors
constructor
new
ContextGLES
(
canvas
:
HTMLCanvasElement
)
:
ContextGLES
Parameters
canvas:
HTMLCanvasElement
Returns
ContextGLES
Properties
_cmd
Bytes
_cmd
Bytes
:
Byte32Array
_create
Bytes
_create
Bytes
:
Byte32Array
_current
Program
_current
Program
:
ProgramGLES
_gl
_gl
:
WebGLRenderingContext
Static
MAX_
SAMPLERS
MAX_
SAMPLERS
:
number
Static
_sound
Bytes
_sound
Bytes
:
Byte32Array
Static
modulo
modulo
:
number
Accessors
container
get
(
)
:
HTMLCanvasElement
Returns
HTMLCanvasElement
pixel
Ratio
get
(
)
:
number
Returns
number
standard
Derivatives
get
(
)
:
boolean
Returns
boolean
Methods
clear
clear
(
red
?:
number
, green
?:
number
, blue
?:
number
, alpha
?:
number
, depth
?:
number
, stencil
?:
number
, mask
?:
number
)
:
void
Parameters
Default value
red:
number
= 0
Default value
green:
number
= 0
Default value
blue:
number
= 0
Default value
alpha:
number
= 1
Default value
depth:
number
= 1
Default value
stencil:
number
= 0
Default value
mask:
number
= ContextGLClearMask.ALL
Returns
void
configure
Back
Buffer
configure
Back
Buffer
(
width
:
number
, height
:
number
, antiAlias
:
number
, enableDepthAndStencil
?:
boolean
)
:
void
Parameters
width:
number
height:
number
antiAlias:
number
Default value
enableDepthAndStencil:
boolean
= true
Returns
void
create
Cube
Texture
create
Cube
Texture
(
size
:
number
, format
:
ContextGLTextureFormat
, optimizeForRenderToTexture
:
boolean
, streamingLevels
?:
number
)
:
CubeTextureGLES
Parameters
size:
number
format:
ContextGLTextureFormat
optimizeForRenderToTexture:
boolean
Default value
streamingLevels:
number
= 0
Returns
CubeTextureGLES
create
Index
Buffer
create
Index
Buffer
(
numIndices
:
number
)
:
IndexBufferGLES
Parameters
numIndices:
number
Returns
IndexBufferGLES
create
Program
create
Program
(
)
:
ProgramGLES
Returns
ProgramGLES
create
Texture
create
Texture
(
width
:
number
, height
:
number
, format
:
ContextGLTextureFormat
, optimizeForRenderToTexture
:
boolean
, streamingLevels
?:
number
)
:
TextureGLES
Parameters
width:
number
height:
number
format:
ContextGLTextureFormat
optimizeForRenderToTexture:
boolean
Default value
streamingLevels:
number
= 0
Returns
TextureGLES
create
Vertex
Buffer
create
Vertex
Buffer
(
numVertices
:
number
, dataPerVertex
:
number
)
:
VertexBufferGLES
Parameters
numVertices:
number
dataPerVertex:
number
Returns
VertexBufferGLES
disable
Stencil
disable
Stencil
(
)
:
void
Returns
void
dispose
dispose
(
)
:
void
Returns
void
draw
Indices
draw
Indices
(
mode
:
ContextGLDrawMode
, indexBuffer
:
IndexBufferGLES
, firstIndex
?:
number
, numIndices
?:
number
)
:
void
Parameters
mode:
ContextGLDrawMode
indexBuffer:
IndexBufferGLES
Default value
firstIndex:
number
= 0
Default value
numIndices:
number
= -1
Returns
void
draw
ToBitmap
Image2D
draw
ToBitmap
Image2D
(
destination
:
BitmapImage2D
)
:
void
Parameters
destination:
BitmapImage2D
Returns
void
draw
Vertices
draw
Vertices
(
mode
:
ContextGLDrawMode
, firstVertex
?:
number
, numVertices
?:
number
)
:
void
Parameters
mode:
ContextGLDrawMode
Default value
firstVertex:
number
= 0
Default value
numVertices:
number
= -1
Returns
void
enable
Stencil
enable
Stencil
(
)
:
void
Returns
void
execute
execute
(
)
:
void
Returns
void
gl
gl
(
)
:
WebGLRenderingContext
Returns
WebGLRenderingContext
present
present
(
)
:
void
Returns
void
set
Blend
Factors
set
Blend
Factors
(
sourceFactor
:
ContextGLBlendFactor
, destinationFactor
:
ContextGLBlendFactor
)
:
void
Parameters
sourceFactor:
ContextGLBlendFactor
destinationFactor:
ContextGLBlendFactor
Returns
void
set
Color
Mask
set
Color
Mask
(
red
:
boolean
, green
:
boolean
, blue
:
boolean
, alpha
:
boolean
)
:
void
Parameters
red:
boolean
green:
boolean
blue:
boolean
alpha:
boolean
Returns
void
set
Culling
set
Culling
(
triangleFaceToCull
:
ContextGLTriangleFace
, coordinateSystem
?:
CoordinateSystem
)
:
void
Parameters
triangleFaceToCull:
ContextGLTriangleFace
Default value
coordinateSystem:
CoordinateSystem
= CoordinateSystem.LEFT_HANDED
Returns
void
set
Depth
Test
set
Depth
Test
(
depthMask
:
boolean
, passCompareMode
:
ContextGLCompareMode
)
:
void
Parameters
depthMask:
boolean
passCompareMode:
ContextGLCompareMode
Returns
void
set
Program
set
Program
(
program
:
ProgramGLES
)
:
void
Parameters
program:
ProgramGLES
Returns
void
set
Program
Constants
From
Array
set
Program
Constants
From
Array
(
programType
:
number
, data
:
Float32Array
)
:
void
Parameters
programType:
number
data:
Float32Array
Returns
void
set
Render
ToBack
Buffer
set
Render
ToBack
Buffer
(
)
:
void
Returns
void
set
Render
ToTexture
set
Render
ToTexture
(
target
:
TextureBaseGLES
, enableDepthAndStencil
?:
boolean
, antiAlias
?:
number
, surfaceSelector
?:
number
)
:
void
Parameters
target:
TextureBaseGLES
Default value
enableDepthAndStencil:
boolean
= false
Default value
antiAlias:
number
= 0
Default value
surfaceSelector:
number
= 0
Returns
void
set
Sampler
State
At
set
Sampler
State
At
(
sampler
:
number
, wrap
:
ContextGLWrapMode
, filter
:
ContextGLTextureFilter
, mipfilter
:
ContextGLMipFilter
)
:
void
Parameters
sampler:
number
wrap:
ContextGLWrapMode
filter:
ContextGLTextureFilter
mipfilter:
ContextGLMipFilter
Returns
void
set
Scissor
Rectangle
set
Scissor
Rectangle
(
rectangle
:
Rectangle
)
:
void
Parameters
rectangle:
Rectangle
Returns
void
set
Stencil
Actions
set
Stencil
Actions
(
triangleFace
?:
ContextGLTriangleFace
, compareMode
?:
ContextGLCompareMode
, actionOnBothPass
?:
ContextGLStencilAction
, actionOnDepthFail
?:
ContextGLStencilAction
, actionOnDepthPassStencilFail
?:
ContextGLStencilAction
, coordinateSystem
?:
CoordinateSystem
)
:
void
Parameters
Default value
triangleFace:
ContextGLTriangleFace
= ContextGLTriangleFace.FRONT_AND_BACK
Default value
compareMode:
ContextGLCompareMode
= ContextGLCompareMode.ALWAYS
Default value
actionOnBothPass:
ContextGLStencilAction
= ContextGLStencilAction.KEEP
Default value
actionOnDepthFail:
ContextGLStencilAction
= ContextGLStencilAction.KEEP
Default value
actionOnDepthPassStencilFail:
ContextGLStencilAction
= ContextGLStencilAction.KEEP
Default value
coordinateSystem:
CoordinateSystem
= CoordinateSystem.LEFT_HANDED
Returns
void
set
Stencil
Actions
Masks
set
Stencil
Actions
Masks
(
compareMode
:
string
, referenceValue
:
number
, writeMask
:
number
, actionOnBothPass
?:
string
, actionOnDepthFail
?:
string
, actionOnDepthPassStencilFail
?:
string
, coordinateSystem
?:
string
)
:
void
Parameters
compareMode:
string
referenceValue:
number
writeMask:
number
Default value
actionOnBothPass:
string
= "keep"
Default value
actionOnDepthFail:
string
= "keep"
Default value
actionOnDepthPassStencilFail:
string
= "keep"
Default value
coordinateSystem:
string
= "leftHanded"
Returns
void
set
Stencil
Reference
Value
set
Stencil
Reference
Value
(
referenceValue
:
number
, readMask
?:
number
, writeMask
?:
number
)
:
void
Parameters
referenceValue:
number
Default value
readMask:
number
= 255
Default value
writeMask:
number
= 255
Returns
void
set
Texture
At
set
Texture
At
(
sampler
:
number
, texture
:
TextureBaseGLES
)
:
void
Parameters
sampler:
number
texture:
TextureBaseGLES
Returns
void
set
Vertex
Buffer
At
set
Vertex
Buffer
At
(
index
:
number
, buffer
:
VertexBufferGLES
, bufferOffset
?:
number
, format
?:
number
)
:
void
Parameters
index:
number
buffer:
VertexBufferGLES
Default value
bufferOffset:
number
= 0
Default value
format:
number
= 4
Returns
void
Static
start
Sound
start
Sound
(
name
:
string
, id
:
number
, volume
:
number
, loop
:
boolean
)
:
void
Parameters
name:
string
id:
number
volume:
number
loop:
boolean
Returns
void
Static
stop
Sound
stop
Sound
(
id
:
number
)
:
void
Parameters
id:
number
Returns
void
Static
update
Sound
update
Sound
(
id
:
number
, volume
:
number
, loop
:
boolean
)
:
void
Parameters
id:
number
volume:
number
loop:
boolean
Returns
void
ContextGLBlend
Factor
ContextGLClear
Mask
ContextGLCompare
Mode
ContextGLDraw
Mode
ContextGLMip
Filter
ContextGLProfile
ContextGLProgram
Type
ContextGLStencil
Action
ContextGLTexture
Filter
ContextGLTexture
Format
ContextGLTriangle
Face
ContextGLVertex
Buffer
Format
ContextGLWrap
Mode
Context
Mode
AGALMini
Assembler
AGALTokenizer
AGLSLParser
Animation
Register
Data
Animation
Set
Base
Animation
Set
Error
Animator
Base
Animator
Event
Basic
Material
Pass
Blend
Mode
Software
Compiler
Base
Context
Flash
ContextGLES
Context
Software
Context
WebGL
Cube
Texture
Flash
Cube
TextureGLES
Cube
Texture
Software
Cube
Texture
WebGL
Depth
Compare
Mode
Software
Description
Destination
FS
Flags
GLESAsset
Base
GLESConnector
GL_
Attributes
Buffer
GL_
Basic
Material
GL_
Bitmap
Image2D
GL_
Bitmap
Image
Cube
GL_
Elements
Base
GL_
External
Image2D
GL_
Image2D
GL_
Image
Base
GL_
Image
Cube
GL_
Material
Base
GL_
Material
Pass
Base
GL_
Render
Image2D
GL_
Render
Image
Cube
GL_
Renderable
Base
GL_
Sampler2D
GL_
Sampler
Base
GL_
Sampler
Cube
GL_
Shape
Renderable
GL_
Single2DTexture
GL_
Single
Cube
Texture
GL_
Texture
Base
GL_
Triangle
Elements
GL_
Video
Source
Image2D
Header
Index
Buffer
Flash
Index
BufferGLES
Index
Buffer
Software
Index
Buffer
WebGL
Mapping
Material
Group
Base
Material
Pool
Op
Codes
OpLUT
Opcode
Opcode
Map
Part
Pass
Base
Pass
Event
Program
Data
Program
Data
Pool
Program
Flash
ProgramGLES
Program
Software
ProgramVOSoftware
Program
WebGL
Reg
Map
Register
Pool
Renderable
Pool
Resource
Base
Flash
Sampler
Sampler
Map
Sampler
State
Shader
Base
Shader
Register
Cache
Shader
Register
Data
Shader
Register
Element
Software
Sampler
State
Stage
Stage
Event
Stage
Manager
Texture
BaseGLES
Texture
Base
WebGL
Texture
Flash
TextureGLES
Texture
Software
Texture
WebGL
Token
Vertex
Buffer
Flash
Vertex
BufferGLES
Vertex
Buffer
Properties
Vertex
Buffer
Software
Vertex
Buffer
WebGL
GL_
IAsset
Class
IAnimation
State
IContextGL
ICube
Texture
IElements
ClassGL
IIndex
Buffer
IMaterial
ClassGL
IPass
IProgram
IRenderable
ClassGL
ITexture
ITexture
Base
ITexture
Base
Software
ITexture
Base
Software
Class
IVertex
Buffer
Generated using
TypeDoc