// Drawable object ------------------------------------------------------------- #ifndef __DRAWABLE_H__ #define __DRAWABLE_H__ #include "color.h" #include "point.h" #ifdef __APPLE__ #include #else #include #endif class Drawable : public Point { public: Drawable(const double pX = 0.0, const double pY = 0.0, const double pZ = 0.0) : Point(pX, pY, pZ) { set_color(random_color()); } virtual ~Drawable() {}; virtual void draw() = 0; virtual void render() = 0; void set_color(GLfloat pColor[3]) { color[0] = pColor[0]; color[1] = pColor[1]; color[2] = pColor[2]; } GLfloat color[3]; }; #endif // vim: set sts=4 sw=4 ts=8 ft=cpp: --------------------------------------------