proj home

Files   Classes   Functions   Hierarchy  

cubedraw.cpp

Go to the documentation of this file.
00001 #include <cubedraw.h>
00002 
00003 
00004 cubedraw::cubedraw(cube const & cb_)
00005   : cb(cb_) {}
00006 
00007 void cubedraw::colorset(cube::colordef const c) const
00008 {
00009   switch(c)
00010   {
00011     case cube::red: glColor3f(1.0,0.0,0.0); break; 
00012     case cube::blue: glColor3f(0.0,0.0,1.0); break; 
00013     case cube::orange: glColor3f(1.0,145./256.,0.0); break;
00014     case cube::green: glColor3f(0.0,1.0,0.0); break;
00015     case cube::yellow: glColor3f(1.0,1.0,0.0); break;
00016     case cube::white: glColor3f(1.0,1.0,1.0); break;
00017   }
00018 }
00019 

Generated on Fri Mar 4 00:49:26 2011 for Chelton Evans Source by  doxygen 1.5.8