Static variables

private@:value(128)staticfinalread onlyMAX_QUADS_PER_DRAWCALL:Int = 128

private@:value(16)staticfinalread onlyMAX_STYLES_PER_DRAWCALL:Int = 16

Constructor

new(g4:Graphics, canvas:Canvas, quadUniformNames:Vector<String>, styleUniformNames:Vector<String>, vert:VertexShader, frag:FragmentShader)

Variables

privatecanvas:Canvas

privatefrag:FragmentShader

g4:Graphics

privateindexBuffer:IndexBuffer

private@:value(0)nextFreeStyleIndex:Int = 0

privatepipeline:PipelineState

pipelineCache:PipelineCache

private@:value(0)quadIndex:Int = 0

privatefinalquadUniformLocations:Array<ConstantLocation>

privatefinalquadUniformNames:Vector<String>

privatefinalquadUniformValues:Array<Float32Array>

privatestructureLengths:Vector<Int>

privatestructures:Array<VertexStructure>

private@:value(new Map<Style,Int>())finalstyleIndices:Map<Style, Int> = new Map<Style,Int>()

privatefinalstyleUniformLocations:Array<ConstantLocation>

privatefinalstyleUniformNames:Vector<String>

privatefinalstyleUniformValues:Array<Float32Array>

privatevColors:Float32Array

privatevCoords:Float32Array

privatevert:VertexShader

privatevertexBuffers:Array<VertexBuffer>

Methods

privatedrawBuffer():Void

end():Void

privateinlinegetNumQuadUniforms():Int

privateinlinegetNumStyleUniforms():Int

privategetStyleIndex(style:Style):Int

init():Void

privateinitBuffers():Void

privateinitPipeline():Void

privateinitVertexStructures():Void

privateinlinesetRectColors(direction:Bool, colorTopLeft:Color, colorBottomRight:Color, opacity:FastFloat):Void

privateinlinesetRectVertices(left:FastFloat, right:FastFloat, top:FastFloat, bottom:FastFloat, styleIndex:Int):Void