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.

36 lines
720 B

  1. #ifndef ELLIPSE_H
  2. #define ELLIPSE_H
  3. #include "Stone.h"
  4. const int nsarcens = 8;
  5. const int nlintels = 4;
  6. class EllipseSt {
  7. public:
  8. EllipseSt();
  9. ~EllipseSt() {};
  10. void erode(float p);
  11. void draw();
  12. void draw_shadow(Point dlight, GLfloat blur = 0.0,
  13. Color color = black, Color diffuse = black);
  14. private:
  15. GLfloat r1, r2;
  16. Stone sarcens[nsarcens], lintels[nlintels];
  17. void copy_zero();
  18. void draw_sarcens();
  19. void draw_lintels();
  20. void draw_sarcens_shadows(Point dlight, GLfloat blur,
  21. Color color, Color diffuse);
  22. void draw_lintels_shadows(Point dlight, GLfloat blur,
  23. Color color, Color diffuse);
  24. };
  25. #endif