opengl.h 743 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef OPENGL__H
  2. #define OPENGL__H
  3. #include <GL/glut.h>
  4. #include <GL/gl.h>
  5. #include <GL/glu.h>
  6. #include <stdlib.h>
  7. #include <a2ri/io.h>
  8. #include <a2ri/graph.h>
  9. #define WIDTH 640
  10. #define HEIGHT 480
  11. #define GLUT_WHEEL_MOUSE_UP 0x0003
  12. #define GLUT_WHEEL_MOUSE_DOWN 0x0004
  13. #define NB_VAL 15
  14. double hist [NB_VAL][6];
  15. #define R_INC 5
  16. #define T_INC 1
  17. double rx, ry, rz;
  18. double tx, ty, tz;
  19. void init(int argc, char **argv);
  20. void transform(int i);
  21. void display_triangles();
  22. void display();
  23. void exitFunc();
  24. void mouse(int button, int state, int x, int y);
  25. void motion(int x, int y);
  26. void keyboard(unsigned char key, int x, int y);
  27. void idleFunc();
  28. int go(int argc, char **argv, vf_model *m, double epais);
  29. #endif