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.

73 lines
1.9 KiB

  1. #define HALFTONE 1
  2. #define PI 3.1415926536
  3. /* resolution of movement */
  4. #define RES 30
  5. /* stuff for making body */
  6. #define SIN30 (0.5)
  7. #define COS30 (0.866025404)
  8. #define SIN60 (0.866025404)
  9. #define COS60 (0.5)
  10. #define SIN15 (0.258819045)
  11. #define COS15 (0.965925826)
  12. #define COS45 (0.707106781)
  13. #define SIN45 (0.707106781)
  14. #define A2 0.088388348 /* (1.0/ (8.0 * sqrt(2.0))) */
  15. #define R2 0.125 /* (sqrt(2 * A2 * A2)) */
  16. #define A1 0.411611652 /* (0.5 - A2) */
  17. #define R1 0.420994836 /* (sqrt(A1 * A1 + A2 * A2)) */
  18. #define REACH 1.6
  19. /* Eclipse 8 bit color stuff */
  20. #define ECLIPSE8_GRID 2
  21. #define ECLIPSE8_GRAY 1
  22. #define ECLIPSE8_NCOLORS 10
  23. #define ECLIPSE8_SKYBLUE 3
  24. extern GLuint screen,viewit,shadow,body,hip[6],thigh[6],shin[6],kneeball[6];
  25. extern GLuint body_shadow,hip_shadow,thigh_shadow,shin_shadow,kneeball_shadow;
  26. extern GLfloat degrees (float a);
  27. extern float dot (float vec1[3], float vec2[3]);
  28. extern float integer (float x);
  29. extern float frac (float x);
  30. extern float fabso (float x);
  31. extern void getpolycolor (int p, float pts[][3]);
  32. extern void getlightvector (void);
  33. extern void createobjects (void);
  34. extern float phi,theta;
  35. extern float cx,cy,cz;
  36. extern GLfloat ctheta,cphi;
  37. extern GLfloat b1[4][3];
  38. extern GLfloat b2[4][3];
  39. extern GLfloat b3[4][3];
  40. extern GLfloat b4[4][3];
  41. extern GLfloat b5[4][3];
  42. extern GLfloat b6[4][3];
  43. extern GLfloat h1[4][3];
  44. extern GLfloat h2[4][3];
  45. extern GLfloat h3[3][3];
  46. extern GLfloat t1[4][3];
  47. extern GLfloat t2[3][3];
  48. extern GLfloat t3[3][3];
  49. extern GLfloat t4[3][3];
  50. extern GLfloat t5[3][3];
  51. extern GLfloat t6[3][3];
  52. extern GLfloat t7[3][3];
  53. extern GLfloat t8[4][3];
  54. extern GLfloat s1[4][3];
  55. extern GLfloat s2[4][3];
  56. extern GLfloat s3[4][3];
  57. extern GLfloat s4[4][3];
  58. extern GLfloat s5[4][3];
  59. extern GLfloat k1[4][3];
  60. extern void doViewit (void);
  61. extern void rotate60 (char c, int n, GLfloat a[][3]);
  62. extern void gl_IdentifyMatrix (GLfloat mat[16]);
  63. extern GLboolean lit (int p, float pts[][3]);