-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathStellarSolverVisualizer.h
More file actions
51 lines (34 loc) · 1000 Bytes
/
StellarSolverVisualizer.h
File metadata and controls
51 lines (34 loc) · 1000 Bytes
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 __STELLARSOLVERVISUALIZER_H__
#define __STELLARSOLVERVISUALIZER_H__
#include <iostream>
#include "SimulationParameters.h"
#include "BarnesHutParticleSystem.h"
#define GLEW_STATIC
#include <GL/glew.h>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
class StellarSolverVisualizer
{
private:
int numOfBodies;
BarnesHutParticleSystem *particles;
SimulationParameters parameters;
sf::ContextSettings *settings;
sf::Window *window;
GLuint vao;
GLuint vbo;
GLuint vertexShader;
GLuint fragmentShader;
GLuint shaderProgram;
void displayDeviceProperties();
public:
StellarSolverVisualizer(const SimulationParameters p, const int numBodies);
StellarSolverVisualizer(const StellarSolverVisualizer &visualizer);
StellarSolverVisualizer& operator=(const StellarSolverVisualizer &visualizer);
~StellarSolverVisualizer();
void runSimulation();
};
#endif