MeshBuffer
Function | Description |
---|---|
MeshBuffer.new() | Creates an empty mesh buffer |
Function | Returns | Description |
---|---|---|
:pushFace(Vector3D vertex1 , Vector3D vertex2 , Vector3D vertex3 , Vector3D normal1 , Vector3D normal2 , Vector3D normal3 , Vector2D uvw1 , Vector2D uvw2 , Vector2D uvw3 , Vector4D color1 , Vector4D color2 , Vector4D color3 ) |
Appends a new triangular face to the mesh buffer | |
:clear() | Clears the data in the buffer | |
:destroy() | Destroys the buffer | |
:getVertexCount() | int | Returns the number of vertices in the buffer |