1 /***********************************************************
2 * Copyright (C) 1997, Be Inc. All rights reserved.
6 * DESCRIPTION: This is the new glut internal header file.
7 * most of the things formerly stored here are now in
8 * their own header files as C++ classes.
9 ***********************************************************/
11 #include <SupportDefs.h>
13 /***********************************************************
15 ***********************************************************/
16 typedef void (*GLUTdisplayCB
) (void);
17 typedef void (*GLUTreshapeCB
) (int, int);
18 typedef void (*GLUTkeyboardCB
) (unsigned char, int, int);
19 typedef void (*GLUTmouseCB
) (int, int, int, int);
20 typedef void (*GLUTmotionCB
) (int, int);
21 typedef void (*GLUTpassiveCB
) (int, int);
22 typedef void (*GLUTentryCB
) (int);
23 typedef void (*GLUTvisibilityCB
) (int);
24 typedef void (*GLUTwindowStatusCB
) (int);
25 typedef void (*GLUTidleCB
) (void);
26 typedef void (*GLUTtimerCB
) (int);
27 typedef void (*GLUTmenuStateCB
) (int); /* DEPRICATED.
29 typedef void (*GLUTmenuStatusCB
) (int, int, int);
30 typedef void (*GLUTselectCB
) (int);
31 typedef void (*GLUTspecialCB
) (int, int, int);
32 typedef void (*GLUTspaceMotionCB
) (int, int, int);
33 typedef void (*GLUTspaceRotateCB
) (int, int, int);
34 typedef void (*GLUTspaceButtonCB
) (int, int);
35 typedef void (*GLUTdialsCB
) (int, int);
36 typedef void (*GLUTbuttonBoxCB
) (int, int);
37 typedef void (*GLUTtabletMotionCB
) (int, int);
38 typedef void (*GLUTtabletButtonCB
) (int, int, int, int);
40 /***********************************************************
41 * Prototypes for glutInit.cpp
42 ***********************************************************/
43 void __glutInitTime(bigtime_t
*beginning
);
46 /***********************************************************
47 * Prototypes for glut_util.c
48 ***********************************************************/
49 void __glutWarning(char *format
,...);
50 void __glutFatalError(char *format
,...);
51 void __glutFatalUsage(char *format
,...);
53 /***********************************************************
54 * Prototypes for glutMenu.cpp
55 ***********************************************************/
56 class GlutMenu
; // avoid including glutMenu.h
57 GlutMenu
*__glutGetMenuByNum(int menunum
);
59 /***********************************************************
60 * Prototypes for glutWindow.cpp
61 ***********************************************************/
62 int __glutConvertDisplayMode(unsigned long *options
);
63 void __glutDefaultReshape(int width
, int height
);
64 class GlutWindow
; // avoid including glutWindow.h in every source file
65 void __glutSetWindow(GlutWindow
* window
);
67 /***********************************************************
68 * Prototypes for glutDstr.cpp
69 ***********************************************************/
70 int __glutConvertDisplayModeFromString(unsigned long *options
);
72 /***********************************************************
73 * Prototypes for glutCursor.cpp
74 ***********************************************************/
75 void __glutSetCursor(int cursor
);