Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/post/src/tk/private.h
3203 views
1
#include <X11/Xlib.h>
2
#include <X11/Xutil.h>
3
#include <GL/glx.h>
4
5
#if defined(__cplusplus) || defined(c_plusplus)
6
#define class c_class
7
#endif
8
9
10
typedef struct _WINDOW_REC {
11
int x, y, w, h;
12
GLenum type;
13
Window wMain, wOverlay;
14
XVisualInfo *vInfoMain, *vInfoOverlay;
15
Colormap cMapMain, cMapOverlay;
16
GLXContext cMain, cOverlay;
17
int cMapAllocated; /*** [email protected]: some cMapMain's better not freed ***/
18
} WINDOW_REC;
19
20
21
extern Display *xDisplay;
22
extern int xScreen;
23
extern Window wRoot;
24
extern WINDOW_REC w;
25
extern Atom deleteWindowAtom;
26
27
extern void (*ExposeFunc)(int, int);
28
extern void (*ReshapeFunc)(int, int);
29
extern void (*DisplayFunc)(void);
30
extern GLenum (*KeyDownFunc)(int, GLenum);
31
extern GLenum (*MouseDownFunc)(int, int, GLenum);
32
extern GLenum (*MouseUpFunc)(int, int, GLenum);
33
extern GLenum (*MouseMoveFunc)(int, int, GLenum);
34
extern void (*IdleFunc)(void);
35
36
extern GLenum drawAllowFlag;
37
38
extern int cursorNum;
39
40
41