Fork me on GitHub
View source

package haxepunk.graphics.hardware

class RenderBuffer

Constructor

View source

new () : Void

Variables

read only length : Int

Functions

View source

addFloat (v : Float) : Void

View source

addInt (value : Int) : Void

View source

addVec (x : Float, y : Float) : Void

View source

addVertexAttribData (attribs : Array<Attribute>, nbVertices : Int) : Void

Add vertex attribute data, at the end of the DrawCommand. While position, texture coords and color are interleaved, custom vertex attrib data is at the end of the buffer to speed up construction.

View source

ensureSize (triangles : Int, floatsPerTriangle : Int) : Void

View source

init () : Void

View source

prepareVertexAndColor (drawCommand : DrawCommand) : Void

View source

prepareVertexAndUV (drawCommand : DrawCommand) : Void

View source

prepareVertexOnly (drawCommand : DrawCommand) : Void

View source

prepareVertexUVandColor (drawCommand : DrawCommand) : Void

View source

use () : Void