YAGE  v0.1.1
Yet Another Game Engine
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

◆ Vertex() [1/2]

yage::Vertex::Vertex ( )
default

◆ Vertex() [2/2]

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

Member Function Documentation

◆ setColor()

void yage::Vertex::setColor ( GLubyte  r,
GLubyte  g,
GLubyte  b,
GLubyte  a 
)
inline

◆ setPosition()

void yage::Vertex::setPosition ( float  x,
float  y 
)
inline

◆ setUv()

void yage::Vertex::setUv ( float  u,
float  v 
)
inline

Member Data Documentation

◆ color

Color yage::Vertex::color

◆ position

Position yage::Vertex::position

◆ uv

UV yage::Vertex::uv

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