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>
7
#include "
constants_and_types.h
"
8
9
#include <functional>
10
12
namespace
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.h
Constants and types used within the engine.
game
Handles game logic. Code can be found in game.cpp.
Definition
game.cpp:16
game::Execute
auto & Execute
Alias for Run()
Definition
game.h:21
game::Run
void Run()
Starts the main loop.
Definition
game.cpp:22
game::StartUpdateLoop
auto & StartUpdateLoop
Alias for Run()
Definition
game.h:23
Engine
game.h
Generated by
1.13.2