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.

68 lines
1.2 KiB

  1. #include <GL/gl.h>
  2. /* screen == monitor */
  3. #define YOUR_SCREEN_MAXX 1023
  4. #define YOUR_SCREEN_MAXY 766
  5. #define YOUR_WINDOW_PADX 8
  6. #define YOUR_WINDOW_PADY 32
  7. #define MOUSEX 266
  8. #define MOUSEY 267
  9. typedef unsigned short Colorindex;
  10. typedef unsigned short Device;
  11. typedef GLfloat Coord;
  12. typedef GLint Icoord;
  13. extern void
  14. getorigin (long *x, long *y);
  15. /* no origin redoing is done */
  16. extern void
  17. gl_sincos (GLfloat ang, float *sine, float *cosine);
  18. /* ang is in tenths of degrees */
  19. extern long
  20. getvaluator (Device dev);
  21. /* gl4: origin in bottom right
  22. * tk: assumes origin in top left
  23. */
  24. extern void
  25. glGetMatrix (GLfloat mat[]);
  26. #define maxDEPTH 4294967295.0
  27. #define lsetdepth(ln, lf) \
  28. glDepthRange ( ln / maxDEPTH, lf / maxDEPTH)
  29. extern void
  30. mapcolor (Colorindex index, short r, short g, short b);
  31. extern void
  32. polf2i (long n, Icoord parray[][2]);
  33. extern void
  34. polf2 (long n, Coord parray[][2]);
  35. extern void
  36. polfi (long n, Icoord parray[][3]);
  37. extern void
  38. polf (long n, Coord parray[][3]);
  39. extern void
  40. poly2i (long n, Icoord parray[][2]);
  41. extern void
  42. poly2 (long n, Coord parray[][2]);
  43. extern void
  44. polyi (long n, Icoord parray[][3]);
  45. extern void
  46. poly (long n, Coord parray[][3]);