← API Reference Class

asge::game::details::IGame abstract

The non-template surface Application drives: per-frame update/render plus system events.

#include <Game.hpp>

Inherited by asge::game::Game< TStateId >.

Inheritance

classDiagram
    class N2["asge::game::Game"]
    class N1["asge::game::details::IGame"]
    N1 <|-- N2
    click N2 href "classasge_1_1game_1_1Game.html"
    click N1 href "classasge_1_1game_1_1details_1_1IGame.html"

Public Member Functions

#virtual ~IGame()=default
#virtual void Update(float inDeltaTime, input::InputState const &inInput)=0

Advances the game by one frame.

#virtual void Render(video::IRenderer &inRenderer)=0

Draws the current frame.

#virtual void OnSystemEvent(event::SystemEvent const &inSysEvent)=0

Called for every system event Application's loop pumps.

#virtual bool QuitRequested() const noexcept=0

True once a state has requested a clean shutdown via TransitionKind::Quit.