-
Notifications
You must be signed in to change notification settings - Fork 1
/
system.h
53 lines (32 loc) · 854 Bytes
/
system.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
44
45
46
47
48
49
50
51
52
53
//
// Created by Yunzhe on 2017/12/4.
//
#ifndef GPUBASEDRENDERING_PROJECT_SYSTEM_H
#define GPUBASEDRENDERING_PROJECT_SYSTEM_H
// Include related head files
#include "global.h"
#include "utility.h"
#include "Shader.h"
#include "vbobird.h"
// Using namespace std for cout
using namespace std;
extern Shader birdShader;
extern Shader computeShader;
extern int base;
void Idle();
void Redraw();
void Reshape(int width, int height);
void ProcessMouseMoving(int x, int y);
void ProcessFocus(int state);
void ProcessNormalKey(unsigned char k, int x, int y);
void ProcessSpecialKey(int k, int x, int y);
void PrintStatus();
void setupVBO();
void setupShader();
void updateBirdShaderUniform();
void updateComputeShaderUniform();
void setupTexture();
void setupFBO();
void setupVAO();
void init();
#endif //GPUBASEDRENDERING_PROJECT_SYSTEM_H