![]() |
CUGL 1.2
Cornell University Game Library
|
#include <CUVertex.h>
Static Public Member Functions | |
| static const GLvoid * | positionOffset () |
| static const GLvoid * | colorOffset () |
| static const GLvoid * | texcoordOffset () |
Public Attributes | |
| cugl::Vec2 | position |
| cugl::Color4 | color |
| cugl::Vec2 | texcoord |
This class/struct represents the rendering information for a 2d vertex.
The class is intended to be used as a struct. The static methods are to compute the offset for VBO access.
|
inlinestatic |
The memory offset of the vertex color
|
inlinestatic |
The memory offset of the vertex position
|
inlinestatic |
The memory offset of the vertex texture coordinate
| cugl::Color4 cugl::Vertex2::color |
The vertex color
| cugl::Vec2 cugl::Vertex2::position |
The vertex position
| cugl::Vec2 cugl::Vertex2::texcoord |
The vertex texture coordinate
1.8.10