home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / picture / cube.h < prev    next >
Encoding:
Text File  |  1993-09-23  |  1.0 KB  |  21 lines  |  [TEXT/????]

  1. **************************
  2. *   fast cube.  Not a nested segment.  Faster because you only
  3. *    calculate perspective projection for each line endpoint once.
  4. ******************************************************************/
  5. class    Fast_Cube:public Segment
  6. {
  7. private:
  8.     Coord3            *c[8];
  9.     color            cube_color;
  10.  
  11. public:
  12.     Fast_Cube(void);
  13. //    not implemented:
  14. //    virtual void    set(...);
  15.     virtual void    set_color(color);
  16.     virtual void    draw(Camera*,Projector*,Transformation*);
  17.     virtual void    move(Transformation*);
  18.     virtual            ~Fast_Cube(void);
  19. };
  20.  
  21. # endif