|  | 
| Specifying Color 
The current color is an OpenGL state variable 
set_color(RED);
 draw_item(A);
 draw_item(B);
 set_color(GREEN);
 set_color(BLUE);
 draw_item(C);
 
 RGBA Mode: 
void glColor3{b s i f d ub us ui} (TYPEr, TYPEg, TYPEb);
 void glColor4{b s i f d ub us ui} (TYPEr, TYPEg, TYPEb,
TYPEa);
 void glColor3{b s i f d ub us ui}v (const TYPE*v);
 void glColor4{b s i f d ub us ui}v (const TYPE*v);
 
 Color Index ModeNOTE!  There are NO OpenGL
commands to load colormap table values (this is a function of the window
manager).  The GLUT API provides glutSetColor() to interface with
the WM.
 
 |  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   |