summaryrefslogtreecommitdiff
path: root/src/glut/os2/glutos2.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-06-13 21:49:46 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-06-13 21:49:46 +0000
commit225517aff0afc3270fab277d1c9ac2864053820c (patch)
treefa00e2b162788b4fe2ebb9254baf6526997c9903 /src/glut/os2/glutos2.h
parent8fa507592b7bdb087c9eb32ed2322cb805b724ec (diff)
GLUT for OS/2 (Evgeny Kotsuba)
Diffstat (limited to 'src/glut/os2/glutos2.h')
-rw-r--r--src/glut/os2/glutos2.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/glut/os2/glutos2.h b/src/glut/os2/glutos2.h
new file mode 100644
index 0000000000..533a78011e
--- /dev/null
+++ b/src/glut/os2/glutos2.h
@@ -0,0 +1,36 @@
+#ifndef __glutos2_h__
+#define __glutos2_h__
+
+
+/* Win32 "equivalent" cursors - eventually, the X glyphs should be
+ converted to Win32 cursors -- then they will look the same */
+#define XC_arrow IDC_ARROW
+#define XC_top_left_arrow IDC_ARROW
+#define XC_hand1 IDC_SIZEALL
+#define XC_pirate IDC_NO
+#define XC_question_arrow IDC_HELP
+#define XC_exchange IDC_NO
+#define XC_spraycan IDC_SIZEALL
+#define XC_watch IDC_WAIT
+#define XC_xterm IDC_IBEAM
+#define XC_crosshair IDC_CROSS
+#define XC_sb_v_double_arrow IDC_SIZENS
+#define XC_sb_h_double_arrow IDC_SIZEWE
+#define XC_top_side IDC_UPARROW
+#define XC_bottom_side IDC_SIZENS
+#define XC_left_side IDC_SIZEWE
+#define XC_right_side IDC_SIZEWE
+#define XC_top_left_corner IDC_SIZENWSE
+#define XC_top_right_corner IDC_SIZENESW
+#define XC_bottom_right_corner IDC_SIZENWSE
+#define XC_bottom_left_corner IDC_SIZENESW
+
+#define XA_STRING 0
+
+/* Private routines from win32_util.c */
+extern int gettimeofday(struct timeval* tp, void* tzp);
+//extern void *__glutFont(void *font);
+extern int __glutGetTransparentPixel(Display *dpy, XVisualInfo *vinfo);
+extern void __glutAdjustCoords(Window parent, int *x, int *y, int *width, int *height);
+
+#endif /* __glutos2_h__ */