YAGE  v0.1.1
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
yage::Vertex Struct Reference

#include <vertex.h>

Public Member Functions

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

Public Attributes

Position position
 
Color color
 
UV uv
 

Constructor & Destructor Documentation

yage::Vertex::Vertex ( )
default
yage::Vertex::Vertex ( const Position position_,
const Color color_,
const UV uv_ 
)
inline

Member Function Documentation

void yage::Vertex::setColor ( 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

Color yage::Vertex::color
Position yage::Vertex::position
UV yage::Vertex::uv

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