FatRenderer is a triangle-strip-renderer with support for batching based on degenerated triangles.

It support vertex colors, 1 texture

TRIANGLE STRIP: classic:

[0]...[2]...[4] | ^ ^ | / | / | | / | / | v / v / v [1]...[3]...[5]

DEGENERATED

[0]...[2] [5'][6]...[8] | ^ | ^ | / | | / | | / | | / | v / v v / v [1]...[3][4'] [7]...[9]

4' is a copy of 3 5' is a copy of 6

This allows to detach the two triangles and draw them as quads. FatRenderer uses this to have different elements in one buffer.

TODO optimize scissor change by having a dirty flag for changed uniforms (prevents from resetting the same shader again) when only a uniform requires a change

Hierarchy

Implements

Constructors

Properties

animationElapsed: number = 0
byteIndex: number = 0
cpuBuffer: Float32Array
directDrawing: number = 0
fatScissorCircleShader: ManagedShader
fatScissorShader: ManagedShader
fatShader: ManagedShader
numElements: number = 0
numLastDrawCalls: number = 0
numLastElements: number = 0
rootMat: AffineMatrix = ...
scissorMode: ScissorMode = ScissorMode.None
scissorStore: Rect = ...
tmpCustomMatrix: AffineMatrix = ...
tmpDirectDrawMatrix: AffineMatrix = ...

Accessors

Methods

Generated using TypeDoc