Constructor

new(g4:Graphics, canvas:Canvas)

Methods

@:access(koui.elements.Element)fillKRect(x:FastFloat, y:FastFloat, width:FastFloat, height:FastFloat, style:Style):Void

Inherited Variables

Defined by KPainter

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>

Inherited Methods

Defined by KPainter

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