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

Last change on this file since 3086 was 3083, checked in by sandervl, 25 years ago

compile fixes + cleanup

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