Container for a vertex (position+normal+color) More...
Public Member Functions | |
vertex (const v3 &coordinate=v3(), const v3 &normal=v3(0, 0, 1), const color &c=color(255, 0, 0)) | |
direct constructor | |
Public Attributes | |
v3 | p |
3D position | |
v3 | n |
normal at this position | |
color | c |
color at this position |
Container for a vertex (position+normal+color)
cpe::vertex::vertex | ( | const v3 & | coordinate = v3() , |
const v3 & | normal = v3(0,0,1) , |
||
const color & | c = color(255,0,0) |
||
) |
direct constructor
color at this position
Referenced by cpe::vertex_shader::compute_color().
normal at this position
3D position