-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheden.hpp
46 lines (35 loc) · 1.13 KB
/
eden.hpp
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 EDEN_HPP
#define EDEN_HPP
#include "scene.hpp"
#include <iostream>
#include <SDL/SDL.h>
class Eden{
private:
std ::string name; //c_str
int width;
int height;
Scene scene;
SDL_Surface* m_buffer;
SDL_Event m_event;
SDL_PixelFormat* format;
bool m_running;
public:
Eden();
Eden(std::string _name, int _width, int _height);
~Eden();
void init();
void run();
void clear();
//inline => #define dans .cpp
inline std::string getName(){ return name; }
inline void setName(std::string _name){ name = _name; }
inline int getWidth() { return width; }
inline void setWidth(int _width) { width = _width; }
inline int getHeight() { return height; }
inline void setHeight(int _height) { height = _height; }
inline Scene getScene() { return scene; }
inline void setScene(Scene _scene) { scene = _scene; }
inline SDL_PixelFormat* getFormat() { return this->format; }
inline SDL_Surface* getSurface() { return m_buffer; }
};
#endif // EDEN_HPP