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.


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


currentTime num
getter/setter pair
deltaTime num
getter/setter pair
globalAlpha double
no setter
globalBlendMode BlendMode
no setter
globalMatrix Matrix
no setter
hashCode int
The hash code for this object.
no setterinherited
renderContext RenderContext
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


copyFrom(RenderState renderState) → void
flush() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.