Canvas.drawMesh

Function/Meaning

Mesh drawing

Type
Canvasclassmethod of
Syntax
drawMesh(shader:ShaderProgram, count:int, primitiveType:int=VertexBuffer.ptTriangles, offset:int=0)
Arguments
shader

Specify the shader associated with the texture and vertex information

count

Number of vertices to draw

primitiveType

Designation such as triangle

offset

Offset to start drawing in the vertex array

Return value
None (void)
Explanation

The mesh (VertexBinder: vertex information) must be associated with the shader (set in the properties) before calling.
Texture information should be associated as well.
After calling, cancel (= void) the information associated with shader.