]>
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.
25 typedef struct vert vert_t
;
29 * Initialize a vertex with a point vector, normal, and a color.
32 void vert_init(vert_t
* r
, vec_t v
, vec_t n
, vec_t t
, color_t c
)
42 * Create a new vertex with a point vector.
45 vert_t
vert_new(vec_t v
)
48 vert_init(&r
, v
, VEC_ZERO
, VEC_ZERO
, COLOR_WHITE
);
53 * Create a new vertex from vector components.
56 vert_t
vert_new2(scal_t x
, scal_t y
, scal_t z
)
58 return vert_new(vec_new(x
, y
, z
));
61 #define VERT_ZERO vert_new(VEC_ZERO)
This page took 0.033492 seconds and 4 git commands to generate.