mesh.AdvanceVertex
From GMod Wiki
Function | |
Syntax |
mesh.AdvanceVertex( ) Where is this used? |
Description: | |
For each vertex that you define in your mesh, you must call this function to tell the mesh builder that you're dealing with a new vertex. It must also be called on the last vertex of your mesh. | |
Returns: | nil |
Part of Library: | mesh |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Mesh.AdvanceVertex]Mesh.AdvanceVertex [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
CLIENT | 0000000000000000 | 00000000000000000 | MATERIAL_POINTS CLIENT | 0000000000000001 | 00000000000000001 | MATERIAL_LINES CLIENT | 0000000000000002 | 00000000000000010 | MATERIAL_TRIANGLES CLIENT | 0000000000000003 | 00000000000000011 | MATERIAL_TRIANGLE_STRIP CLIENT | 0000000000000004 | 00000000000000100 | MATERIAL_LINE_STRIP CLIENT | 0000000000000005 | 00000000000000101 | MATERIAL_LINE_LOOP CLIENT | 0000000000000006 | 00000000000000110 | MATERIAL_POLYGON CLIENT | 0000000000000007 | 00000000000000111 | MATERIAL_QUADS
- If you make a call to a mesh function that results in an error, your view may become quite messed up; things will render wrong, the skybox will go berserk, etc. In this case, you'll need to restart Garry's Mod to return to normal.
- It may be easier to use the cam library functions to position, rotate, and scale your mesh, rather than trying to calculate it yourself.