cpe::vertex Struct Reference

A vertex structure containing a position, normal, and a color. More...

+ Collaboration diagram for cpe::vertex:

Public Member Functions

 vertex (const vec3 &position, const vec3 &normal, const color &col)
 Direct constructor from a position, normal and color. More...
 

Public Attributes

vec3 p
 the 3D position More...
 
vec3 n
 the normal More...
 
color c
 the color More...
 

Detailed Description

A vertex structure containing a position, normal, and a color.

Constructor & Destructor Documentation

cpe::vertex::vertex ( const vec3 position,
const vec3 normal,
const color col 
)

Direct constructor from a position, normal and color.

Member Data Documentation

color cpe::vertex::c

the color

vec3 cpe::vertex::n

the normal

vec3 cpe::vertex::p

the 3D position


The documentation for this struct was generated from the following files: