![]() |
CUGL 3.0
Cornell University Game Library
|
#include <CUObjModel.h>
Static Public Member Functions | |
static const GLvoid * | positionOffset () |
static const GLvoid * | normalOffset () |
static const GLvoid * | tangentOffset () |
static const GLvoid * | texcoordOffset () |
Public Attributes | |
cugl::Vec3 | position |
cugl::Vec3 | normal |
cugl::Vec3 | tangent |
cugl::Vec2 | texcoord |
This class is a vertex in an OBJ mesh.
Each vertex must have a position. All other values are optional, and are zero by default. Tangents and normals provide support for optional bump mapping.
|
inlinestatic |
The memory offset of the vertex normal
|
inlinestatic |
The memory offset of the vertex position
|
inlinestatic |
The memory offset of the vertex tangent
|
inlinestatic |
The memory offset of the vertex texture coordinate
cugl::Vec3 cugl::scene3::OBJVertex::normal |
The vertex normal
cugl::Vec3 cugl::scene3::OBJVertex::position |
The vertex position
cugl::Vec3 cugl::scene3::OBJVertex::tangent |
The vertex tangent
cugl::Vec2 cugl::scene3::OBJVertex::texcoord |
The vertex texture coordinate