GpuShapeViewCommands

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Link copied to clipboard
interface ICommand
Link copied to clipboard
Link copied to clipboard
data class ShapeCommand(var drawType: AGDrawType = AGDrawType.LINE_STRIP, var vertexIndex: Int = 0, var vertexEnd: Int = 0, var paintShader: GpuShapeViewPrograms.PaintShader?, var program: Program? = null, var colorMask: AGColorMask = AGColorMask.DEFAULT, var stencilOpFunc: AGStencilOpFunc = AGStencilOpFunc.DEFAULT, var stencilRef: AGStencilReference = AGStencilReference.DEFAULT, var blendMode: BlendMode? = null, var cullFace: AGCullFace = AGCullFace.NONE) : GpuShapeViewCommands.ICommand

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun addVertex(x: Float, y: Float, len: Float = 0.0f, maxLen: Float = len): Int
Link copied to clipboard
fun clear()
Link copied to clipboard
fun clearStencil(i: Int = 0)
Link copied to clipboard
fun draw(drawType: AGDrawType, paintShader: GpuShapeViewPrograms.PaintShader?, colorMask: AGColorMask = AGColorMask.DEFAULT, stencilOpFunc: AGStencilOpFunc = AGStencilOpFunc.DEFAULT, stencilRef: AGStencilReference = AGStencilReference.DEFAULT, blendMode: BlendMode = BlendMode.NORMAL, cullFace: AGCullFace = AGCullFace.NONE, startIndex: Int = this.verticesStartIndex, endIndex: Int = this.vertexIndex)
Link copied to clipboard
fun finish()
Link copied to clipboard
fun render(ctx: RenderContext, globalMatrix: Matrix, localMatrix: Matrix, applyScissor: Boolean, colorMul: RGBA, doRequireTexture: Boolean)
Link copied to clipboard
fun setScissor(scissor: AGScissor)
Link copied to clipboard
fun updateVertex(index: Int, x: Float, y: Float, len: Float = 0.0f, maxLen: Float = len)
Link copied to clipboard
Link copied to clipboard