source: trunk/src/opengl/glut/glutos2.h@ 3090

Last change on this file since 3090 was 3088, checked in by bird, 25 years ago

Fix to ignore gettimeofday defined in sys\time.h from the Warp Toolkit (CSD2).

File size: 2.9 KB
Line 
1/* $Id: glutos2.h,v 1.4 2000-03-11 17:24:28 bird 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#include <misc.h>
14/* KSO: Dirty trick to get around problems with gettimeofday being
15 * defined in the sys\time.h in the toolkit. (at least in CSD2)
16 */
17#define gettimeofday gettimeofday_os2
18#include <sys\time.h>
19#undef gettimeofday
20
21/* We have to undef some things because Microsoft likes to pollute the
22 global namespace. */
23#undef TRANSPARENT
24
25/* Win32 "equivalent" cursors - eventually, the X glyphs should be
26 converted to Win32 cursors -- then they will look the same */
27#if defined(__WIN32OS2__)
28#define XC_arrow IDC_ARROWA
29#define XC_top_left_arrow IDC_ARROWA
30#define XC_hand1 IDC_SIZEALLA
31#define XC_pirate IDC_NOA
32#define XC_question_arrow IDC_HELPA
33#define XC_exchange IDC_NOA
34#define XC_spraycan IDC_SIZEALLA
35#define XC_watch IDC_WAITA
36#define XC_xterm IDC_IBEAMA
37#define XC_crosshair IDC_CROSSA
38#define XC_sb_v_double_arrow IDC_SIZENSA
39#define XC_sb_h_double_arrow IDC_SIZEWEA
40#define XC_top_side IDC_UPARROWA
41#define XC_bottom_side IDC_SIZENSA
42#define XC_left_side IDC_SIZEWEA
43#define XC_right_side IDC_SIZEWEA
44#define XC_top_left_corner IDC_SIZENWSEA
45#define XC_top_right_corner IDC_SIZENESWA
46#define XC_bottom_right_corner IDC_SIZENWSEA
47#define XC_bottom_left_corner IDC_SIZENESWA
48#else
49#define XC_arrow IDC_ARROW
50#define XC_top_left_arrow IDC_ARROW
51#define XC_hand1 IDC_SIZEALL
52#define XC_pirate IDC_NO
53#define XC_question_arrow IDC_HELP
54#define XC_exchange IDC_NO
55#define XC_spraycan IDC_SIZEALL
56#define XC_watch IDC_WAIT
57#define XC_xterm IDC_IBEAM
58#define XC_crosshair IDC_CROSS
59#define XC_sb_v_double_arrow IDC_SIZENS
60#define XC_sb_h_double_arrow IDC_SIZEWE
61#define XC_top_side IDC_UPARROW
62#define XC_bottom_side IDC_SIZENS
63#define XC_left_side IDC_SIZEWE
64#define XC_right_side IDC_SIZEWE
65#define XC_top_left_corner IDC_SIZENWSE
66#define XC_top_right_corner IDC_SIZENESW
67#define XC_bottom_right_corner IDC_SIZENWSE
68#define XC_bottom_left_corner IDC_SIZENESW
69#endif
70#define XA_STRING 0
71
72/* Private routines from win32_util.c */
73extern int gettimeofday(struct timeval* tp, void* tzp);
74extern void *__glutFont(void *font);
75extern int __glutGetTransparentPixel(Display *dpy, XVisualInfo *vinfo);
76extern void __glutAdjustCoords(Window parent, int *x, int *y, int *width, int *height);
77
78#endif /* __glutos2_h__ */
Note: See TracBrowser for help on using the repository browser.