-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglut_1000.h
More file actions
98 lines (79 loc) · 3.07 KB
/
glut_1000.h
File metadata and controls
98 lines (79 loc) · 3.07 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef GLUT_1000_H
#define GLUT_1000_H
#include <chrono>
#include "GL/glew.h"
#if defined (ACE_WIN32) || defined (ACE_WIN64)
#include "gl/GL.h"
#else
#include "GL/gl.h"
#endif // ACE_WIN32 || ACE_WIN64
#include "common_gl_shader.h"
#include "common_gl_texture.h"
//#include "engine_common.h"
// GLUT routines
void engine_glut_1000_reshape (int, int);
void engine_glut_1000_key (unsigned char, int, int);
void engine_glut_1000_key_up (unsigned char, int, int);
void engine_glut_1000_key_special (int, int, int);
void engine_glut_1000_key_special_up (int, int, int);
void engine_glut_1000_menu (int);
void engine_glut_1000_mouse_button (int, int, int, int);
void engine_glut_1000_mouse_move (int, int);
void engine_glut_1000_timer (int);
void engine_glut_1000_draw (void);
void engine_glut_1000_idle (void);
void engine_glut_1000_visible (int);
struct Engine_OpenGL_GLUT_1000_CBData
{
// shader
Common_GL_Shader shader1;
Common_GL_Shader shader2;
Common_GL_Shader shader3;
Common_GL_Shader shader4;
Common_GL_Shader shader5;
GLint S1resolutionLoc;
GLint S1channel3Loc;
GLint S2resolutionLoc;
GLint S2channel0Loc;
GLint S2channel3Loc;
GLint S3resolutionLoc;
GLint S3channel1Loc;
GLint S4resolutionLoc;
GLint S4timeLoc;
GLint S4frameLoc;
GLint S4mouseLoc;
GLint S4keysLoc;
GLint S4channel2Loc;
GLint S4channel3Loc;
GLint S5resolutionLoc;
GLint S5channel3Loc;
Common_GL_Texture textureS1;
Common_GL_Texture textureS2;
Common_GL_Texture textureS3;
Common_GL_Texture textureS4;
GLuint FBO1;
GLuint FBO2;
GLuint FBO3;
GLuint FBO4;
GLuint VAO;
GLuint VBO;
// time
#if defined (ACE_WIN32) || defined (ACE_WIN64)
std::chrono::steady_clock::time_point tp1;
#elif defined (ACE_LINUX)
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> tp1;
#else
#error missing implementation, aborting
#endif // ACE_WIN32 || ACE_WIN64 || ACE_LINUX
// menu
bool wireframe;
// mouse / keyboard
int mouseX;
int mouseY;
bool mouseLMBPressed;
bool isSpaceKeyPressed;
bool isDKeyPressed;
bool isRKeyPressed;
bool isTKeyPressed;
};
#endif // GLUT_1000_H