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

Last change on this file since 2598 was 2595, checked in by sandervl, 26 years ago

JvdH:Ported SGI GLUT sources + Opengl update

File size: 2.6 KB
Line 
1#ifndef __glutos2_h__
2#define __glutos2_h__
3
4/* Copyright (c) Nate Robins, 1997. */
5
6/* This program is freely distributable without licensing fees
7 and is provided without guarantee or warrantee expressed or
8 implied. This program is -not- in the public domain. */
9
10#include "os2_x11.h"
11#include "os2_glx.h"
12
13/* We have to undef some things because Microsoft likes to pollute the
14 global namespace. */
15#undef TRANSPARENT
16
17/* Win32 "equivalent" cursors - eventually, the X glyphs should be
18 converted to Win32 cursors -- then they will look the same */
19#if defined(__WIN32OS2__)
20#define XC_arrow IDC_ARROWA
21#define XC_top_left_arrow IDC_ARROWA
22#define XC_hand1 IDC_SIZEALLA
23#define XC_pirate IDC_NOA
24#define XC_question_arrow IDC_HELPA
25#define XC_exchange IDC_NOA
26#define XC_spraycan IDC_SIZEALLA
27#define XC_watch IDC_WAITA
28#define XC_xterm IDC_IBEAMA
29#define XC_crosshair IDC_CROSSA
30#define XC_sb_v_double_arrow IDC_SIZENSA
31#define XC_sb_h_double_arrow IDC_SIZEWEA
32#define XC_top_side IDC_UPARROWA
33#define XC_bottom_side IDC_SIZENSA
34#define XC_left_side IDC_SIZEWEA
35#define XC_right_side IDC_SIZEWEA
36#define XC_top_left_corner IDC_SIZENWSEA
37#define XC_top_right_corner IDC_SIZENESWA
38#define XC_bottom_right_corner IDC_SIZENWSEA
39#define XC_bottom_left_corner IDC_SIZENESWA
40#else
41#define XC_arrow IDC_ARROW
42#define XC_top_left_arrow IDC_ARROW
43#define XC_hand1 IDC_SIZEALL
44#define XC_pirate IDC_NO
45#define XC_question_arrow IDC_HELP
46#define XC_exchange IDC_NO
47#define XC_spraycan IDC_SIZEALL
48#define XC_watch IDC_WAIT
49#define XC_xterm IDC_IBEAM
50#define XC_crosshair IDC_CROSS
51#define XC_sb_v_double_arrow IDC_SIZENS
52#define XC_sb_h_double_arrow IDC_SIZEWE
53#define XC_top_side IDC_UPARROW
54#define XC_bottom_side IDC_SIZENS
55#define XC_left_side IDC_SIZEWE
56#define XC_right_side IDC_SIZEWE
57#define XC_top_left_corner IDC_SIZENWSE
58#define XC_top_right_corner IDC_SIZENESW
59#define XC_bottom_right_corner IDC_SIZENWSE
60#define XC_bottom_left_corner IDC_SIZENESW
61#endif
62#define XA_STRING 0
63
64/* Private routines from win32_util.c */
65extern int gettimeofday(struct timeval* tp, void* tzp);
66extern void *__glutFont(void *font);
67extern int __glutGetTransparentPixel(Display *dpy, XVisualInfo *vinfo);
68extern void __glutAdjustCoords(Window parent, int *x, int *y, int *width, int *height);
69
70#endif /* __glutos2_h__ */
Note: See TracBrowser for help on using the repository browser.