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
hashCode → int

Get a hash code for this object.

read-only, inherited
renderContext RenderContext

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

copyFrom(RenderState renderState) → void

flush() → void

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
pop() → void

push(Matrix matrix, num alpha, BlendMode blendMode) → void

renderObject(RenderObject renderObject) → void

renderObjectFiltered(RenderObject renderObject) → 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

toString() → String

Returns a string representation of this object.

inherited