CUGL 3.0
Cornell University Game Library
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
cugl::scene3::OBJVertex Class Reference

#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
 

Detailed Description

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.

Member Function Documentation

◆ normalOffset()

static const GLvoid * cugl::scene3::OBJVertex::normalOffset ( )
inlinestatic

The memory offset of the vertex normal

◆ positionOffset()

static const GLvoid * cugl::scene3::OBJVertex::positionOffset ( )
inlinestatic

The memory offset of the vertex position

◆ tangentOffset()

static const GLvoid * cugl::scene3::OBJVertex::tangentOffset ( )
inlinestatic

The memory offset of the vertex tangent

◆ texcoordOffset()

static const GLvoid * cugl::scene3::OBJVertex::texcoordOffset ( )
inlinestatic

The memory offset of the vertex texture coordinate

Member Data Documentation

◆ normal

cugl::Vec3 cugl::scene3::OBJVertex::normal

The vertex normal

◆ position

cugl::Vec3 cugl::scene3::OBJVertex::position

The vertex position

◆ tangent

cugl::Vec3 cugl::scene3::OBJVertex::tangent

The vertex tangent

◆ texcoord

cugl::Vec2 cugl::scene3::OBJVertex::texcoord

The vertex texture coordinate


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