Browse Source

Engine: Add scene getter

master
Riyyi 2 years ago
parent
commit
cf0a20e208
  1. 5
      src/inferno/application.h

5
src/inferno/application.h

@ -36,9 +36,10 @@ public:
virtual bool onKeyPress(KeyPressEvent& e);
virtual bool onMousePosition(MousePositionEvent& e);
inline void setStatus(int status) { m_status = status; }
void setStatus(int status) { m_status = status; }
inline Window& window() const { return *m_window; }
Scene& scene() const { return *m_scene; }
Window& window() const { return *m_window; }
static Application& the() { return *s_instance; }

Loading…
Cancel
Save