summary refs log tree commit diff stats
path: root/src/systems/rendering.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-02-08 12:34:42 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-02-08 12:34:42 -0500
commitcefe66cdbb8786dc455657376e36f0ff8785d5bc (patch)
tree7e90536fad90f2954b3834dc4959f402883c32b3 /src/systems/rendering.h
parentcec0ed92c4035c4421d3cc2448f5423fcbb7f7d4 (diff)
downloadtherapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.tar.gz
therapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.tar.bz2
therapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.zip
Introduced animated sprites
Also restyled a lot of the code.
Diffstat (limited to 'src/systems/rendering.h')
-rw-r--r--src/systems/rendering.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/systems/rendering.h b/src/systems/rendering.h index cec72e2..a53ee64 100644 --- a/src/systems/rendering.h +++ b/src/systems/rendering.h
@@ -6,14 +6,17 @@
6#include "consts.h" 6#include "consts.h"
7 7
8class RenderingSystem : public System { 8class RenderingSystem : public System {
9 public: 9public:
10 RenderingSystem(Game& game)
11 : System(game) {}
12 10
13 void tick(double dt); 11 RenderingSystem(Game& game) : System(game)
12 {
13 }
14 14
15 private: 15 void tick(double dt);
16 Texture texture {GAME_WIDTH, GAME_HEIGHT}; 16
17private:
18
19 Texture texture_ {GAME_WIDTH, GAME_HEIGHT};
17}; 20};
18 21
19#endif /* end of include guard: RENDERING_H_76ABC02A */ 22#endif /* end of include guard: RENDERING_H_76ABC02A */