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.

64 lines
1.5 KiB

  1. #ifndef SCENE_H
  2. #define SCENE_H
  3. #ifndef SCENE_EXTERN
  4. #define SCENE_EXTERN extern
  5. #endif
  6. #include "TimeDate.h"
  7. #include "atmosphe.h"
  8. void scene_init();
  9. void scene_set_time(TimeDate t);
  10. void scene_inc_time(TimeDate t);
  11. void scene_render();
  12. void scene_viewer_center();
  13. /* This rotates about the origin in the world coordinate system */
  14. void scene_viewer_rotate_worldz(GLfloat degrees);
  15. /* This rotates about the z axis */
  16. void scene_viewer_rotatez(GLfloat degrees);
  17. void scene_viewer_rotatex(GLfloat degrees);
  18. /* This translates in y */
  19. void scene_viewer_translate(GLfloat dist);
  20. void scene_position_telescope(GLfloat x, GLfloat y);
  21. void scene_get_position_telescope(GLfloat *x, GLfloat *y);
  22. void scene_get_radius_telescope(GLfloat *r);
  23. void scene_set_weather(Weather w);
  24. const GLint name_background = 0;
  25. const GLint name_ground = 1;
  26. const GLint name_trees = 2;
  27. const GLint name_ring = 3;
  28. const GLint name_ellipse = 4;
  29. const GLint name_telescope = 5;
  30. extern int draw_ground;
  31. extern int draw_trees;
  32. extern int draw_ring;
  33. extern int draw_ellipse;
  34. extern int draw_shadows;
  35. extern int use_lighting;
  36. extern int use_textures;
  37. extern int use_normal_fog;
  38. extern int use_fancy_fog;
  39. extern int use_telescope;
  40. extern int use_antialias;
  41. extern GLfloat fov, aspect;
  42. const char texfile_ground[] = DATADIR "grass.rgb";
  43. const char texfile_trees[] = DATADIR "treewall.rgb";
  44. const char texfile_stones[] = DATADIR "marble.rgb";
  45. const char texfile_telescope[] = DATADIR "cv.rgb";
  46. extern Weather weather;
  47. #undef SCENE_EXTERN
  48. #endif