Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
yage::Vertex Struct Reference

#include <vertex.h>

Public Member Functions

 Vertex ()=default
 
 Vertex (const Position &position_, const Colour &colour_, const UV &uv_)
 
void setPosition (float x, float y)
 
void setColour (GLubyte r, GLubyte g, GLubyte b, GLubyte a)
 
void setUv (float u, float v)
 

Public Attributes

Position position
 
Colour colour
 
UV uv
 

Constructor & Destructor Documentation

yage::Vertex::Vertex ( )
default
yage::Vertex::Vertex ( const Position position_,
const Colour colour_,
const UV uv_ 
)
inline

Member Function Documentation

void yage::Vertex::setColour ( GLubyte  r,
GLubyte  g,
GLubyte  b,
GLubyte  a 
)
inline
void yage::Vertex::setPosition ( float  x,
float  y 
)
inline
void yage::Vertex::setUv ( float  u,
float  v 
)
inline

Member Data Documentation

Colour yage::Vertex::colour
Position yage::Vertex::position
UV yage::Vertex::uv

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