|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <triangles.h>
Public Member Functions | |
| void | Add (Vector3 a, Vector3 b, Vector3 c, Color color) |
| int | size () const |
| Mesh | Upload () const |
| Hands them to the GPU, as a mesh for LoadModelFromMesh. | |
Triangles that share no corners, so that each has its face's normal, and the light shades each face flat, like a low-poly model.
Definition at line 16 of file triangles.h.
| void nanommo::Triangles::Add | ( | Vector3 | a, |
| Vector3 | b, | ||
| Vector3 | c, | ||
| Color | color ) |
Definition at line 27 of file triangles.cc.
|
inline |
Definition at line 20 of file triangles.h.
| Mesh nanommo::Triangles::Upload | ( | ) | const |
Hands them to the GPU, as a mesh for LoadModelFromMesh.
Definition at line 36 of file triangles.cc.