#ifndef CUBEDRAW_H
#define CUBEDRAW_H

#include <GL/glut.h>

#include <cube.h>
#include <gobj.h>

/*!
\brief Interface for generic cube drawing class.
*/
class cubedraw : public gobj
{
public:

  /** The cube being draw. */
  cube const & cb;
 
  /** Derived classes draw this cube. */ 
  cubedraw(cube const & cb_);

  /** Write glColor3f associated with the color. */
  void colorset(cube::colordef const c) const;

  void colorset(uintc index) const
    { colorset(cb.xi[index]); }

  void draw() {}
};

#endif


