SilverLining::Vertex(3)

NAME
SilverLining::Vertex -

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

SYNOPSIS

#include <Vertex.h>

Inherits SilverLining::MemObject.

  Public Member Functions
void SILVERLINING_API 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_API 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 SILVERLINING_API 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_API 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_API 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_API 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.

Author

Generated automatically by Doxygen for SilverLining from the source code.