-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.h
43 lines (34 loc) · 1010 Bytes
/
global.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef GLOBAL_H_
#define GLOBAL_H_
#include <GL/glew.h>
extern const GLuint WINDOWN_BOARDER_GAP;
extern const GLuint SUB_WINDOW_COL, SUB_WINDOW_ROW,
SUB_WINDOW_WIDTH, SUB_WINDOW_HEIGHT;
extern const GLuint MAIN_WINDOW_WIDTH, MAIN_WINDOW_HEIGHT;
struct demo {
const char* texture_filename;
const char* vshader_filename;
const char* fshader_filename;
};
struct point {
GLfloat x;
GLfloat y;
};
typedef struct Window {
GLint window;
GLuint x, y, width, height;
void (*display)();
void (*mouse)(int button, int state, int x, int y);
void (*internalMouse)(int button, int state, int x, int y);
void (*entry)(int state);
int (*init)();
void (*idle)();
void (*reshape)(int width, int height);
void (*special)(int key, int x, int y);
void (*specialUp)(int key, int x, int y);
void (*keyboard)(unsigned char key, int x, int y);
void (*motion)(int x, int y);
void (*free)();
} Window;
void viewEntry(int state);
#endif /* GLOBAL_H_ */