Skip to content

Commit

Permalink
Small fixes for Asylia.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Feb 17, 2019
1 parent 7066168 commit 00dee4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/gk/core/ApplicationState.hpp
Expand Up @@ -35,10 +35,15 @@ class ApplicationState : public IDrawable, public Transformable {
virtual void onEvent(const SDL_Event &) {}

virtual void update() = 0;
virtual void render() = 0; // FIXME: Temporarily added for Asylia

ApplicationState *parent() { return m_parent; }

void setStateStack(ApplicationStateStack *stateStack) { m_stateStack = stateStack; }

protected:
void draw(gk::RenderTarget &, gk::RenderStates) const override {}

ApplicationState *m_parent = nullptr;

ApplicationStateStack *m_stateStack = nullptr;
Expand Down
1 change: 1 addition & 0 deletions include/gk/core/ApplicationStateStack.hpp
Expand Up @@ -31,6 +31,7 @@ class ApplicationStateStack {
}

void pop();
void clear() { while(!empty()) pop(); }

void clearDeletedStates();

Expand Down

0 comments on commit 00dee4b

Please sign in to comment.