home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 February / Chip_2001-02_cd1.bin / bonus / demos / CS / exp / SOURCES / GLENGINE / hierarchy.h < prev    next >
C/C++ Source or Header  |  2000-07-29  |  459b  |  24 lines

  1. #ifndef __OGL2_BASIC_HIERARCHY__
  2. #define __OGL2_BASIC_HIERARCHY__
  3.  
  4. #include "entity.h"
  5.  
  6. extern "C++" {
  7.  
  8. class Renderable {
  9. public:
  10.   virtual ~Renderable () {}
  11.   virtual void Render(double time = 0.0) = 0;
  12. };
  13.  
  14. class RenderableEntity : public Renderable, public Entity {};
  15.  
  16. class RenderableEntities : public Renderable, public EntityList<RenderableEntity> {
  17. public:
  18.   virtual void Render(double time = 0.0);
  19. };
  20.  
  21. } // extern "C++"
  22.  
  23. #endif
  24.