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

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

* empty log message *

File size: 2.0 KB
Line 
1/* $Id: glutos2.h,v 1.5 2000-03-11 21:52:50 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/* 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#define XC_arrow IDC_ARROW
28#define XC_top_left_arrow IDC_ARROW
29#define XC_hand1 IDC_SIZEALL
30#define XC_pirate IDC_NO
31#define XC_question_arrow IDC_HELP
32#define XC_exchange IDC_NO
33#define XC_spraycan IDC_SIZEALL
34#define XC_watch IDC_WAIT
35#define XC_xterm IDC_IBEAM
36#define XC_crosshair IDC_CROSS
37#define XC_sb_v_double_arrow IDC_SIZENS
38#define XC_sb_h_double_arrow IDC_SIZEWE
39#define XC_top_side IDC_UPARROW
40#define XC_bottom_side IDC_SIZENS
41#define XC_left_side IDC_SIZEWE
42#define XC_right_side IDC_SIZEWE
43#define XC_top_left_corner IDC_SIZENWSE
44#define XC_top_right_corner IDC_SIZENESW
45#define XC_bottom_right_corner IDC_SIZENWSE
46#define XC_bottom_left_corner IDC_SIZENESW
47#define XA_STRING 0
48
49/* Private routines from win32_util.c */
50extern int gettimeofday(struct timeval* tp, void* tzp);
51extern void *__glutFont(void *font);
52extern int __glutGetTransparentPixel(Display *dpy, XVisualInfo *vinfo);
53extern void __glutAdjustCoords(Window parent, int *x, int *y, int *width, int *height);
54
55#endif /* __glutos2_h__ */
Note: See TracBrowser for help on using the repository browser.