-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorld.h
51 lines (41 loc) · 1.04 KB
/
World.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
#ifndef WORLD_CLASS_H
#define WORLD_CLASS_H
//#include <GLFW/glfw3.h>
#include "Circle.h"
#include "Camera.h"
#include "Rectangle.h"
#include "Primitives.h"
#include "DoublePendulum.h"
/**
* Notes:
* 1. The origin is at the center of the window
* 2. Positive X is along right direction
* 3. Negative X is along left direction
* 4. Positive Y is along up direction
* 5. Negative Y is along down direction
*/
class World {
private:
Camera* camera;
Shader* shaderProgram;
Shader* selectShader;
Shader* shader1;
Shader* shader2;
Shader* shader3;
Primitives* primitives;
GLFWwindow& window;
DoublePendulum *pendulum;
std::vector<Circle*> trail;
public:
bool ShouldPlayWorld = true;
bool shouldUpdate = false;
World( GLFWwindow& window, int windowWidth, int windowHeight );
void Start();
void Update();
void Destroy();
bool IsDead();
void Restart();
void Initiate();
virtual ~World();
};
#endif