]>
Dogcows Code - chaz/rasterize/blob - vert.h
232a0cf7d8a78b87a91f549239c1834dc1a65765
3 * CS5600 University of Utah
5 * mcgarvey@eng.utah.edu
16 * A vertex is a point and its associated color.
23 typedef struct vert vert_t
;
27 * Initialize a vertex with a point vector and a color.
30 void vert_init(vert_t
* r
, vec_t v
, color_t c
)
38 * Create a new vertex with a point vector and a color.
41 vert_t
vert_new(vec_t v
, color_t c
)
49 * Create a new vertex from vector components and a color.
52 vert_t
vert_new2(scal_t x
, scal_t y
, scal_t z
, color_t c
)
54 vec_t v
= vec_new(x
, y
, z
);
55 return vert_new(v
, c
);
58 #define VERT_ZERO vert_new(VEC_ZERO, COLOR_CLEAR)
This page took 0.038465 seconds and 4 git commands to generate.