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

Last change on this file since 3044 was 2689, checked in by jeroen, 26 years ago

* empty log message *

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