-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathScreen.h
48 lines (34 loc) · 936 Bytes
/
Screen.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
//
// Created by Alexandra Zaharia on 19/12/18.
//
#ifndef PARTICLES_SCREEN_H
#define PARTICLES_SCREEN_H
#include <SDL.h>
#include "SimulatorSettings.h"
namespace particlesim {
class Screen {
public:
const static int SCREEN_WIDTH = 1370;
const static int SCREEN_HEIGHT = 720;
const static int SIMULATOR_WIDTH = 800;
const static int SIMULATOR_HEIGHT = 700;
const static int SIMULATOR_POS_X = 10;
const static int SIMULATOR_POS_Y = 10;
constexpr static char *const SIMULATOR_NAME = (char*) "Particle simulator";
private:
SDL_Window* m_window;
SDL_GLContext m_gl_context;
public:
Screen();
SDL_Window* getWindow() { return m_window; }
SDL_GLContext getGLContext() { return m_gl_context; }
bool init();
void newFrame();
void showSimulator();
void showAbout();
void boxBlur();
bool shouldWindowClose();
void close();
};
}
#endif //PARTICLES_SCREEN_H