RenderState class

The RenderState class is used to render objects to a give render surface defined by the renderContext parameter.

Most users won't ever use this class directly because it's only used internally to render the display list. However, more advanced users may use it to create custom display objects.

The renderObject method keeps track of the state for hierarchical objects from the display list and therefore can be called recursively. The renderQuad method renders simple RenderTextureQuad objects. This is also the method that is used by the display list to draw BitmapData objects.

Constructors

RenderState(RenderContext renderContext, [ Matrix matrix, num alpha, BlendMode blendMode ])

Properties

currentTime ↔ num
read / write
deltaTime ↔ num
read / write
globalAlpha → double
read-only
globalBlendMode BlendMode
read-only
globalMatrix Matrix
read-only
renderContext RenderContext
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copyFrom(RenderState renderState) → void
flush() → void
pop() → void
push(Matrix matrix, num alpha, BlendMode blendMode) → void
renderObject(RenderObject renderObject) → void
renderObjectFiltered(RenderObject renderObject) → void
renderTextureMapping(RenderTexture renderTexture, Matrix mappingMatrix, Int16List ixList, Float32List vxList) → void
renderTextureMesh(RenderTexture renderTexture, Int16List ixList, Float32List vxList) → void
renderTextureQuad(RenderTextureQuad renderTextureQuad) → void
renderTextureQuadFiltered(RenderTextureQuad renderTextureQuad, List<RenderFilter> renderFilters) → void
renderTriangle(num x1, num y1, num x2, num y2, num x3, num y3, int color) → void
renderTriangleMesh(Int16List ixList, Float32List vxList, int color) → void
reset([Matrix matrix, num alpha, BlendMode blendMode ]) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited