JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
WorkFactory.hpp
Go to the documentation of this file.
1// Copyright 2024 Jan Niklas Hasse <jhasse@bixense.com>
2// For conditions of distribution and use, see copyright notice in LICENSE.txt
4#pragma once
5
6#include "work.hpp"
7
8namespace jngl {
9
10class WorkFactory : public jngl::Work {
11public:
13
14private:
15 void step() override;
16 void draw() const override;
17 void onLoad() override;
18
21};
22
23} // namespace jngl
void draw() const override
Draw the game state.
void step() override
Advance the game logic.
void onLoad() override
Gets called when the Work is activated by the main loop.
Active state of the game, e.g. a menu or the game itself.
Definition work.hpp:13
JNGL's main namespace.