1 | /* $Id: glutos2.h,v 1.6 2000-05-20 13:48:23 jeroen Exp $ */
|
---|
2 | #ifndef __glutos2_h__
|
---|
3 | #define __glutos2_h__
|
---|
4 |
|
---|
5 | /* Copyright (c) Nate Robins, 1997. */
|
---|
6 |
|
---|
7 | /* This program is freely distributable without licensing fees
|
---|
8 | and is provided without guarantee or warrantee expressed or
|
---|
9 | implied. This program is -not- in the public domain. */
|
---|
10 |
|
---|
11 | #include "os2_x11.h"
|
---|
12 | #include "os2_glx.h"
|
---|
13 | /* KSO: Dirty trick to get around problems with gettimeofday being
|
---|
14 | * defined in the sys\time.h in the toolkit. (at least in CSD2)
|
---|
15 | */
|
---|
16 | #define gettimeofday gettimeofday_os2
|
---|
17 | #include <sys\time.h>
|
---|
18 | #undef gettimeofday
|
---|
19 |
|
---|
20 | /* We have to undef some things because Microsoft likes to pollute the
|
---|
21 | global namespace. */
|
---|
22 | #undef TRANSPARENT
|
---|
23 |
|
---|
24 | /* Win32 "equivalent" cursors - eventually, the X glyphs should be
|
---|
25 | converted to Win32 cursors -- then they will look the same */
|
---|
26 | #define XC_arrow IDC_ARROW
|
---|
27 | #define XC_top_left_arrow IDC_ARROW
|
---|
28 | #define XC_hand1 IDC_SIZEALL
|
---|
29 | #define XC_pirate IDC_NO
|
---|
30 | #define XC_question_arrow IDC_HELP
|
---|
31 | #define XC_exchange IDC_NO
|
---|
32 | #define XC_spraycan IDC_SIZEALL
|
---|
33 | #define XC_watch IDC_WAIT
|
---|
34 | #define XC_xterm IDC_IBEAM
|
---|
35 | #define XC_crosshair IDC_CROSS
|
---|
36 | #define XC_sb_v_double_arrow IDC_SIZENS
|
---|
37 | #define XC_sb_h_double_arrow IDC_SIZEWE
|
---|
38 | #define XC_top_side IDC_UPARROW
|
---|
39 | #define XC_bottom_side IDC_SIZENS
|
---|
40 | #define XC_left_side IDC_SIZEWE
|
---|
41 | #define XC_right_side IDC_SIZEWE
|
---|
42 | #define XC_top_left_corner IDC_SIZENWSE
|
---|
43 | #define XC_top_right_corner IDC_SIZENESW
|
---|
44 | #define XC_bottom_right_corner IDC_SIZENWSE
|
---|
45 | #define XC_bottom_left_corner IDC_SIZENESW
|
---|
46 | #define XA_STRING 0
|
---|
47 |
|
---|
48 | /* Private routines from win32_util.c */
|
---|
49 | extern int gettimeofday(struct timeval* tp, void* tzp);
|
---|
50 | extern void *__glutFont(void *font);
|
---|
51 | extern int __glutGetTransparentPixel(Display *dpy, XVisualInfo *vinfo);
|
---|
52 | extern void __glutAdjustCoords(Window parent, int *x, int *y, int *width, int *height);
|
---|
53 |
|
---|
54 | #endif /* __glutos2_h__ */
|
---|