opengl.h 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/vector.h>
  9. #include <a2ri/triangulation.h>
  10. #include <a2ri/topology.h>
  11. #define WIDTH 400
  12. #define HEIGHT 300
  13. #define GLUT_WHEEL_MOUSE_UP 0x0003
  14. #define GLUT_WHEEL_MOUSE_DOWN 0x0004
  15. #define GLUT_CENTER_BUTTON 0x0001
  16. #define COUL_TRIANGLE 0.9,0.9,0.9
  17. #define COUL_ARETE 0.0,0.0,0.0
  18. #define COUL_POINT 1.0,0.0,0.0
  19. #define COUL_MAT_OBJ 0.8f, 0.8f, 0.75f
  20. #define COUL_LUMIERE 0.1f ,0.1f, 0.1f
  21. #define COUL_LUMIERE_AMBIENT 1.0f, 1.0f, 1.0f
  22. #define COUL_LUMIERE_DIFFUSE 1.0f, 1.0f, 1.0f
  23. #define COUL_LUMIERE_SPECULAR 1.0f, 1.0f, 1.0f
  24. #define VERTICES 0
  25. #define WIREFRAME 1
  26. #define SOLID 2
  27. double angle,angle2;
  28. double tx, ty, zoom;
  29. int initx,inity,rotation,translation;
  30. double ratioecran;
  31. int go(int argc, char **argv, vf_model *b, double radius, char *ficsave);
  32. #endif