Untitled 2D game engine pre-alpha
A 2D game engine made with Vulkan in C++
 
Loading...
Searching...
No Matches
game.h
Go to the documentation of this file.
1
4
5#pragma once
6#include <opinionated_type_names.h>
8
9#include <functional>
10
12namespace game
13{
14 void SetUpdateFunction(std::function<void()> UpdateFunction);
15
19 void Run();
21 inline auto& Execute = Run;
23 inline auto& StartUpdateLoop = Run;
24}
Constants and types used within the engine.
Handles game logic. Code can be found in game.cpp.
Definition game.cpp:16
auto & Execute
Alias for Run()
Definition game.h:21
void Run()
Starts the main loop.
Definition game.cpp:22
auto & StartUpdateLoop
Alias for Run()
Definition game.h:23