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)
 

Public Attributes

vec3 p
 
vec3 n
 
color c
 

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 
)

Member Data Documentation

color cpe::vertex::c

Referenced by cpe::apply_shading().

vec3 cpe::vertex::n

Referenced by cpe::apply_shading().

vec3 cpe::vertex::p

Referenced by cpe::apply_shading().


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