SilverLining::Vertex Class Reference

A single vertex containing a position, RGBA color, and 3D texture coordinates. More...

#include <Vertex.h>

List of all members.

Public Member Functions

void SetColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 Sets the 4-byte color of the vertex in the manner expected by the underlying Renderer, based on the 0-255 RGBA values provided.
void SetUV (float u, float v)
 Sets the u,v texture coordinates of the vertex in the manner expected by the underlying Renderer, based on the uv coordinates provided.
void SetColor (const Color &c)
 Sets the 4-byte color of the vertex in the manner expected by the underlying Renderer, based on the Color provided.

Detailed Description

A single vertex containing a position, RGBA color, and 3D texture coordinates.


Member Function Documentation

void SilverLining::Vertex::SetColor ( const Color c  ) 

Sets the 4-byte color of the vertex in the manner expected by the underlying Renderer, based on the Color provided.

void SilverLining::Vertex::SetColor ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a 
)

Sets the 4-byte color of the vertex in the manner expected by the underlying Renderer, based on the 0-255 RGBA values provided.

void SilverLining::Vertex::SetUV ( float  u,
float  v 
)

Sets the u,v texture coordinates of the vertex in the manner expected by the underlying Renderer, based on the uv coordinates provided.

The r texture coordinate is set to 0.


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

Generated by  doxygen 1.6.2