Just holds vertex data for convenience. More...
#include <Vertex.hpp>
Collaboration diagram for BARE2D::Vertex:Public Member Functions | |
| void | setPosition (float x, float y, float z) |
| Literally just sets the position. Convenient. More... | |
| void | setColour (GLubyte r, GLubyte g, GLubyte b, GLubyte a) |
| Sets the colour. More... | |
| void | setUV (float u, float v) |
| Sets the UV coords/dimensions. More... | |
Data Fields | |
| Position | position |
| Colour | colour |
| UV | uv |
Just holds vertex data for convenience.
Definition at line 39 of file Vertex.hpp.
|
inline |
Sets the colour.
| r | |
| g | |
| b | |
| a |
Definition at line 65 of file Vertex.hpp.
References BARE2D::Colour::a, BARE2D::Colour::b, colour, BARE2D::Colour::g, and BARE2D::Colour::r.
|
inline |
Literally just sets the position. Convenient.
| x | |
| y | |
| z |
Definition at line 52 of file Vertex.hpp.
References position, BARE2D::Position::x, BARE2D::Position::y, and BARE2D::Position::z.
Referenced by BARE2D::Glyph::Glyph().
Here is the caller graph for this function:
|
inline |
Sets the UV coords/dimensions.
| u | |
| v |
Definition at line 77 of file Vertex.hpp.
References BARE2D::UV::u, uv, and BARE2D::UV::v.
Referenced by BARE2D::Glyph::Glyph().
Here is the caller graph for this function:| Colour BARE2D::Vertex::colour |
Definition at line 42 of file Vertex.hpp.
Referenced by BARE2D::Glyph::Glyph(), and setColour().
| Position BARE2D::Vertex::position |
Definition at line 40 of file Vertex.hpp.
Referenced by setPosition().
| UV BARE2D::Vertex::uv |
Definition at line 44 of file Vertex.hpp.
Referenced by setUV().