Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
567 B

  1. #ifndef RING_H
  2. #define RING_H
  3. #include "Stone.h"
  4. class Ring {
  5. public:
  6. Ring();
  7. ~Ring();
  8. void erode(float p);
  9. void draw();
  10. void draw_shadow(Point dlight, GLfloat blur = 0.0,
  11. Color color = black, Color diffuse = black);
  12. private:
  13. GLfloat radius, angle;
  14. int nstones;
  15. Stone sarcen;
  16. Stone lintel;
  17. void draw_sarcens();
  18. void draw_lintels();
  19. void draw_sarcens_shadows(Point dlight, GLfloat blur,
  20. Color color, Color diffuse);
  21. void draw_lintels_shadows(Point dlight, GLfloat blur,
  22. Color color, Color diffuse);
  23. };
  24. #endif