GL Studio Safety Critical Embedded C++ Runtime Library
|
#include <gls_texture_vertex_array.h>
Classes | |
struct | InitParameters |
Public Member Functions | |
GlsTextureVertexArray (const InitParameters &initParameters) | |
virtual | ~GlsTextureVertexArray () |
void | SetVertex (const GlsUInt32 index, const GlsTextureVertex &v) |
void | OutputVertices (GlsStateManager &gl, const GlsBool doTextureCoordinates, const GlsBool doVertexColors) const |
void | OutputTriangle (GlsStateManager &gl, const GlsUInt32 v1Index, const GlsUInt32 v2Index, const GlsUInt32 v3Index, const GlsBool doTextureCoordinates, const GlsBool doVertexColors) const |
void | OffsetTextureCoordinates (const GlsVector2D &offset) |
Protected Attributes | |
const GlsUInt32 | _numVertices |
GlsTextureVertex *const | _vertices |
This class encapsulates an array of one or more GlsTextureVertex 's.
GlsTextureVertexArray::GlsTextureVertexArray | ( | const InitParameters & | initParameters | ) |
Constructor - create an instance
initParameters | initialization parameters |
|
virtual |
Destructor - shall never be called
void GlsTextureVertexArray::OffsetTextureCoordinates | ( | const GlsVector2D & | offset | ) |
Offset all of texture coordinates in the array by a given 2D vector
offset | 2D offset vector |
void GlsTextureVertexArray::OutputTriangle | ( | GlsStateManager & | gl, |
const GlsUInt32 | v1Index, | ||
const GlsUInt32 | v2Index, | ||
const GlsUInt32 | v3Index, | ||
const GlsBool | doTextureCoordinates, | ||
const GlsBool | doVertexColors | ||
) | const |
Output three vertices in the array to GL
gl | GL state manager to receive verts |
v1Index | index of first vertex to send |
v2Index | index of second vertex to send |
v3Index | index of third vertex to send |
doTextureCoordinates | GLS_TRUE to send texture coordinates with each vert else GLS_FALSE |
doVertexColors | GLS_TRUE to send vertex colors with each vert else GLS_FALSE |
void GlsTextureVertexArray::OutputVertices | ( | GlsStateManager & | gl, |
const GlsBool | doTextureCoordinates, | ||
const GlsBool | doVertexColors | ||
) | const |
Output the vertices in the array to GL
gl | GL state manager to receive verts |
doTextureCoordinates | GLS_TRUE to send texture coordinates with each vert else GLS_FALSE |
doVertexColors | GLS_TRUE to send vertex colors with each vert else GLS_FALSE |
void GlsTextureVertexArray::SetVertex | ( | const GlsUInt32 | index, |
const GlsTextureVertex & | v | ||
) |
Set a vertex in the array
index | index to desired vertex to set |
v | new value for vertex |
|
protected |
number of vertices in vertices array
|
protected |
array of vertices