-
Notifications
You must be signed in to change notification settings - Fork 0
/
Simulation.h
45 lines (35 loc) · 864 Bytes
/
Simulation.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
#ifndef SLIMEMOLDSIMULATION_SIMULATION_H
#define SLIMEMOLDSIMULATION_SIMULATION_H
#include <glad/glad.h>
#include <glm/gtc/matrix_transform.hpp>
#include <vector>
#include <random>
#include <algorithm>
#include <sys/random.h>
#include "Window.h"
#include "Settings.h"
#include "Shader.h"
#include "ComputeShader.h"
#include "Texture.h"
#include "Framebuffer.h"
#include "Sprite.h"
#include "AgentSystem.h"
#define NUM_AGENTS 200000
class Simulation {
private:
Window *m_window;
AgentSystem *m_agentSystem;
Settings *m_settings;
Shader *m_shader;
ComputeShader *m_agentShader;
ComputeShader *m_effectShader;
ComputeShader *m_colorShader;
Framebuffer *m_simulationFramebuffer;
Sprite *m_sprite;
public:
Simulation(int width, int height);
~Simulation() = default;
void run();
void clearColor();
};
#endif