#include <cubedraw.h>


cubedraw::cubedraw(cube const & cb_)
  : cb(cb_) {}

void cubedraw::colorset(cube::colordef const c) const
{
  switch(c)
  {
    case cube::red: glColor3f(1.0,0.0,0.0); break; 
    case cube::blue: glColor3f(0.0,0.0,1.0); break; 
    case cube::orange: glColor3f(1.0,145./256.,0.0); break;
    case cube::green: glColor3f(0.0,1.0,0.0); break;
    case cube::yellow: glColor3f(1.0,1.0,0.0); break;
    case cube::white: glColor3f(1.0,1.0,1.0); break;
  }
}


