home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / src-glut / glutwin32.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-31  |  1.7 KB  |  58 lines

  1. #ifndef __glutwin32_h__
  2. #define __glutwin32_h__
  3.  
  4. /* Copyright (c) Nate Robins, 1997. */
  5.  
  6. /* This program is freely distributable without licensing fees 
  7.    and is provided without guarantee or warrantee expressed or 
  8.    implied. This program is -not- in the public domain. */
  9.  
  10.  
  11. #include "win32_x11.h"
  12. #include "win32_glx.h"
  13.  
  14.  
  15. /* we have to undef some things because Microsoft likes to pollute the
  16.    global namespace. */
  17. #undef TRANSPARENT
  18.  
  19. /* "equivalent" cursors - eventually, the X glyphs should be
  20.    converted to Win32 cursors -- then they will look the same */
  21. #define XC_arrow               IDC_ARROW
  22. #define XC_top_left_arrow      IDC_ARROW
  23. #define XC_hand1               IDC_SIZEALL
  24. #define XC_pirate              IDC_NO
  25. #define XC_question_arrow      IDC_HELP
  26. #define XC_exchange            IDC_NO
  27. #define XC_spraycan            IDC_SIZEALL
  28. #define XC_watch               IDC_WAIT
  29. #define XC_xterm               IDC_IBEAM
  30. #define XC_crosshair           IDC_CROSS
  31. #define XC_sb_v_double_arrow   IDC_SIZENS
  32. #define XC_sb_h_double_arrow   IDC_SIZEWE
  33. #define XC_top_side            IDC_UPARROW
  34. #define XC_bottom_side         IDC_SIZENS
  35. #define XC_left_side           IDC_SIZEWE
  36. #define XC_right_side          IDC_SIZEWE
  37. #define XC_top_left_corner     IDC_SIZENWSE
  38. #define XC_top_right_corner    IDC_SIZENESW
  39. #define XC_bottom_right_corner IDC_SIZENWSE
  40. #define XC_bottom_left_corner  IDC_SIZENESW
  41.  
  42. #define XA_STRING 0
  43.  
  44. /* Function prototypes */
  45. int
  46. gettimeofday(struct timeval* tp, void* tzp);
  47.  
  48. void*
  49. __glutFont(void *font);
  50.  
  51. int
  52. __glutGetTransparentPixel(Display * dpy, XVisualInfo * vinfo);
  53.  
  54. void
  55. __glutAdjustCoords(Window parent, int* x, int* y, int* width, int* height);
  56.  
  57. #endif /* __glutwin32_h__ */
  58.