CUGL 2.1
Cornell University Game Library
|
#include <CUSpriteVertex.h>
Static Public Member Functions | |
static const GLvoid * | positionOffset () |
static const GLvoid * | colorOffset () |
static const GLvoid * | texcoordOffset () |
static const GLvoid * | gradcoordOffset () |
Public Attributes | |
cugl::Vec2 | position |
GLuint | color |
cugl::Vec2 | texcoord |
cugl::Vec2 | gradcoord |
This class/struct is rendering information for a 2d sprite batch vertex.
The class is intended to be used as a struct. This struct has the basic rendering information required by a SpriteBatch for rendering.
Note that the exact meaning of these attributes can vary depending upon the current drawing mode in the sprite batch. For example, if the color is a gradient, rather than a pure color, then the color attribute holds the texture coordinates (plus additional modulation factors) for that gradient, and not a real color value.
|
inlinestatic |
The memory offset of the vertex color
|
inlinestatic |
The memory offset of the vertex texture coordinate
|
inlinestatic |
The memory offset of the vertex position
|
inlinestatic |
The memory offset of the vertex texture coordinate
GLuint cugl::SpriteVertex2::color |
The vertex color
cugl::Vec2 cugl::SpriteVertex2::gradcoord |
The vertex gradient coordinate
cugl::Vec2 cugl::SpriteVertex2::position |
The vertex position
cugl::Vec2 cugl::SpriteVertex2::texcoord |
The vertex texture coordinate