Untitled 2D game engine pre-alpha
A 2D game engine made with Vulkan in C++
 
Loading...
Searching...
No Matches
game Namespace Reference

Handles game logic. Code can be found in game.cpp. More...

Functions

void SetUpdateFunction (std::function< void()> UpdateFunction)
 
void Run ()
 Starts the main loop.
 

Variables

auto & Execute = Run
 Alias for Run()
 
auto & StartUpdateLoop = Run
 Alias for Run()
 

Detailed Description

Handles game logic. Code can be found in game.cpp.

Function Documentation

◆ Run()

void game::Run ( )

Starts the main loop.

Window has to be initialised

Definition at line 22 of file game.cpp.

◆ SetUpdateFunction()

void game::SetUpdateFunction ( std::function< void()> UpdateFunction)

Definition at line 17 of file game.cpp.

Variable Documentation

◆ Execute

auto& game::Execute = Run
inline

Alias for Run()

Definition at line 21 of file game.h.

◆ StartUpdateLoop

auto& game::StartUpdateLoop = Run
inline

Alias for Run()

Definition at line 23 of file game.h.