Class to store vertex state information. More...
#include <vertex.h>
Public Member Functions | |
Vertex () | |
Constructor. NB Almost no default values set. | |
Vertex (const Vertex &v) | |
Copy constructor. | |
Vertex (const XYZ &p) | |
Construct from position only. | |
const XYZ & | position () const |
Accessor. | |
const XYZ & | normal () const |
Accessor. | |
const ByteRGBA & | colour (uint c) const |
Accessor. | |
void | position (const XYZ &p) |
Accessor. | |
void | normal (const XYZ &n) |
Accessor. | |
void | colour (uint c, const ByteRGBA &col) |
Accessor. | |
void | colour (uint c, const FloatRGBA &col) |
Accessor. | |
Class to store vertex state information.
There is no direct access to members. Should probably be a protected member class of TriangleMesh. sizeof(Vertex) should ideally be 3*4+3*4+2*4=32