CUGL
Cornell University Game Library
Static Public Member Functions | Public Attributes | List of all members
cugl::Vertex2 Class Reference

#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
 

Detailed Description

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.

Member Function Documentation

static const GLvoid* cugl::Vertex2::colorOffset ( )
inlinestatic

The memory offset of the vertex color

static const GLvoid* cugl::Vertex2::positionOffset ( )
inlinestatic

The memory offset of the vertex position

static const GLvoid* cugl::Vertex2::texcoordOffset ( )
inlinestatic

The memory offset of the vertex texture coordinate

Member Data Documentation

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


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