Constructor

new (?renderTarget:Canvas)

Methods

begin (?additionalRenderTargets:Array<Canvas>):Void

clear (?color:Color, ?depth:Float, ?stencil:Int):Void

createIndexBuffer (indexCount:Int, usage:Usage, canRead:Bool = false):IndexBuffer

createVertexBuffer (vertexCount:Int, structure:VertexStructure, usage:Usage, canRead:Bool = false):VertexBuffer

drawIndexedVertices (start:Int = 0, count:Int = -1):Void

drawIndexedVerticesInstanced (instanceCount:Int, start:Int = 0, count:Int = -1):Void

scissor (x:Int, y:Int, width:Int, height:Int):Void

setBlendingMode (source:BlendingFactor, destination:BlendingFactor, operation:BlendingOperation, alphaSource:BlendingFactor, alphaDestination:BlendingFactor, alphaOperation:BlendingOperation):Void

setBool (location:ConstantLocation, value:Bool):Void

setFloat3 (location:ConstantLocation, value1:FastFloat, value2:FastFloat, value3:FastFloat):Void

setFloat4 (location:ConstantLocation, value1:FastFloat, value2:FastFloat, value3:FastFloat, value4:FastFloat):Void

setInt (location:ConstantLocation, value:Int):Void

inline setMatrix (location:ConstantLocation, matrix:FastMatrix4):Void

inline setMatrix3 (location:ConstantLocation, matrix:FastMatrix3):Void

setStencilParameters (compareMode:CompareMode, bothPass:StencilAction, depthFail:StencilAction, stencilFail:StencilAction, referenceValue:Int, readMask:Int = 0xff, writeMask:Int = 0xff):Void

setTexture (stage:TextureUnit, texture:Image):Void

setTexture3DParameters (texunit:TextureUnit, uAddressing:TextureAddressing, vAddressing:TextureAddressing, wAddressing:TextureAddressing, minificationFilter:TextureFilter, magnificationFilter:TextureFilter, mipmapFilter:MipMapFilter):Void

setTextureParameters (texunit:TextureUnit, uAddressing:TextureAddressing, vAddressing:TextureAddressing, minificationFilter:TextureFilter, magnificationFilter:TextureFilter, mipmapFilter:MipMapFilter):Void

viewport (x:Int, y:Int, width:Int, height:Int):Void