mesh
The mesh library allows you to create meshes. A mesh is a set of vertices that define a 3D shape, for constant meshes you should use the IMesh object instead.
Methods
mesh.AdvanceVertex()
Pushes the currently set vertex data (via other mesh. * functions) into the mesh stack. See example on mesh. Begin.
Starts a new dynamic mesh. If an IMesh is passed, it will use that mesh instead.
mesh.End()
Ends the mesh and renders it.
Draws a quad using 4 vertices.
Draws a quad using a position, a normal and the size.
Sets the specular map values.
This function actually does nothing.
It is recommended to use IMesh:BuildFromTriangles instead of the mesh library.
A table of four numbers. This is used by most shaders in Source to hold tangent information of the vertex ( tangentX, tangentY, tangentZ, tangentHandedness ).
number mesh.VertexCount()
Returns the amount of vertices that have been pushed via mesh. AdvanceVertex.