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++.
Loading...
Searching...
No Matches
asw::scene Namespace Reference

Classes

class  Scene
 Base class for game scenes. More...
 
class  SceneManager
 Forward declaration of the SceneManager class. More...
 

Variables

constexpr auto DEFAULT_TIMESTEP = std::chrono::milliseconds(8)
 Default time step for the game loop.
 
constexpr auto 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.
 

Variable Documentation

◆ DEFAULT_TIMESTEP

auto asw::scene::DEFAULT_TIMESTEP = std::chrono::milliseconds(8)
constexpr

Default time step for the game loop.

Definition at line 31 of file scene.h.

◆ MAX_FRAME_TIME

auto asw::scene::MAX_FRAME_TIME = std::chrono::milliseconds(250)
constexpr

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.

Definition at line 36 of file scene.h.