1 #ifndef __render_color_h
2 #define __render_color_h
6 #define RrColor3f(c) glColor3f((c)->r, (c)->g, (c)->b)
7 #define RrColor4f(c) glColor4f((c)->r, (c)->g, (c)->b, (c)->a)
9 #define RrColorAvg(avg, c1, c2) \
11 ((c1)->r + (c2)->r) / 2.0, \
12 ((c1)->g + (c2)->g) / 2.0, \
13 ((c1)->b + (c2)->b) / 2.0, \
14 ((c1)->a + (c2)->a) / 2.0)