|
ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
|
Scene manager. More...
#include <algorithm>#include <chrono>#include <iostream>#include <memory>#include <ranges>#include <unordered_map>#include <vector>#include "./core.h"#include "./display.h"#include "./game.h"Go to the source code of this file.
Classes | |
| class | asw::scene::Scene< T > |
| Base class for game scenes. More... | |
| class | asw::scene::SceneManager< T > |
| Forward declaration of the SceneManager class. More... | |
Namespaces | |
| namespace | asw |
| namespace | asw::scene |
Variables | |
| constexpr auto | asw::scene::DEFAULT_TIMESTEP = std::chrono::milliseconds(8) |
| Default time step for the game loop. | |
| constexpr auto | asw::scene::MAX_FRAME_TIME = std::chrono::milliseconds(250) |
| Longest frame time simulated at once. Longer frames (a breakpoint, a hidden browser tab) are cut short so the loop does not try to catch up on hundreds of updates. | |