]>
Dogcows Code - chaz/rasterize/blob - vert.h
3 * CS5600 University of Utah
5 * mcgarvey@eng.utah.edu
16 * A vertex is a point, a normal, and a color.
24 typedef struct vert vert_t
;
28 * Initialize a vertex with a point vector, normal, and a color.
31 void vert_init(vert_t
* r
, vec_t v
, vec_t n
, color_t c
)
40 * Create a new vertex with a point vector.
43 vert_t
vert_new(vec_t v
)
46 vert_init(&r
, v
, VEC_ZERO
, COLOR_WHITE
);
51 * Create a new vertex from vector components.
54 vert_t
vert_new2(scal_t x
, scal_t y
, scal_t z
)
56 return vert_new(vec_new(x
, y
, z
));
59 #define VERT_ZERO vert_new(VEC_ZERO)
This page took 0.033137 seconds and 4 git commands to generate.