#ifndef CUBEDRAW2D_H
#define CUBEDRAW2D_H

#include <cube.h>
#include <cubedraw.h>
#include <textoverlay.h>

/*!
\brief Draw a flat 2D cube.
*/
class cubedraw2d : public textoverlay
{
  /** Write the ith face. */
  void writeface(uintc i);

  cubedraw cbd;
public:

  /** The side length of a face. */
  double dx;

  /** Initialize the parameters only. */ 
  cubedraw2d(cube const & cb_, doublec dx_);

  /** Write out the OpenGL directly. */
  void draw();
};


#endif


