BARE2D
BARE2D::Vertex Class Reference

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
 

Detailed Description

Just holds vertex data for convenience.

Definition at line 39 of file Vertex.hpp.

Member Function Documentation

◆ setColour()

void BARE2D::Vertex::setColour ( GLubyte  r,
GLubyte  g,
GLubyte  b,
GLubyte  a 
)
inline

Sets the colour.

Parameters
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.

◆ setPosition()

void BARE2D::Vertex::setPosition ( float  x,
float  y,
float  z 
)
inline

Literally just sets the position. Convenient.

Parameters
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:

◆ setUV()

void BARE2D::Vertex::setUV ( float  u,
float  v 
)
inline

Sets the UV coords/dimensions.

Parameters
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:

Field Documentation

◆ colour

Colour BARE2D::Vertex::colour

Definition at line 42 of file Vertex.hpp.

Referenced by BARE2D::Glyph::Glyph(), and setColour().

◆ position

Position BARE2D::Vertex::position

Definition at line 40 of file Vertex.hpp.

Referenced by setPosition().

◆ uv

UV BARE2D::Vertex::uv

Definition at line 44 of file Vertex.hpp.

Referenced by setUV().


The documentation for this class was generated from the following file: