Thrive
render_system.h
1 #pragma once
2 
3 #include "engine/system.h"
4 
5 namespace thrive {
6 
11 class RenderSystem : public System {
12 
13 public:
14 
23  static luabind::scope
24  luaBindings();
25 
29  RenderSystem();
30 
34  ~RenderSystem();
35 
40  void
41  init(
43  ) override;
44 
48  void
49  shutdown() override;
50 
58  void
59  update(
60  int renderTime,
61  int
62  ) override;
63 
64 private:
65 
66  struct Implementation;
67  std::unique_ptr<Implementation> m_impl;
68 };
69 
70 }
void shutdown() override
Shuts down the system.
Definition: render_system.cpp:47
void init(GameState *gameState) override
Initializes the system.
Definition: render_system.cpp:37
RenderSystem()
Constructor.
Definition: render_system.cpp:27
A system handles one specific part of the game.
Definition: system.h:23
void update(int renderTime, int) override
Renders a single frame.
Definition: render_system.cpp:54
~RenderSystem()
Destructor.
Definition: render_system.cpp:33
System for rendering a single frame per update.
Definition: render_system.h:11
Definition: bullet_ogre_conversion.h:6
GameState * gameState() const
Returns the system's game state.
Definition: system.cpp:183
static luabind::scope luaBindings()
Lua bindings.
Definition: render_system.cpp:12
Represents a distinct set of active systems and entities.
Definition: game_state.h:41