-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGLManager.h
51 lines (32 loc) · 987 Bytes
/
GLManager.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
/**
* Classe que gere as configuracoes do OpenGL
*/
#ifndef _glmanager_h
#define _glmanager_h
#include "Vertex.h"
namespace GLManager {
/** inicia o openGL */
void init(int *argc, char **argv);
/** chamada no final de init */
void game_init();
void initCallbacks();
void initGameMode();
/** funcao de resize da janela */
void reshapeFunc(int w, int h);
/** funcao de render */
void render(void);
void resetMaterials(void);
/** funcao de update dos dados */
void update(int val);
/** converte metros para a unidade de OpenGL, conforme */
float distance(float meters);
float meters(float distance);
/** Gera um vertice aleatorio em cima do terreno */
Vertex* randomVertex();
void updateFrames(int val);
void allowTowerFire(int id);
void allowPlayerJump(int id);
void end_game_test();
float convertFromKmH(float kmH);
};
#endif