6#include <game-activity/native_app_glue/android_native_app_glue.h>
57 ANativeWindow* androidWindow;
91 double deltaTime = 0.0;
93 double lastTimeRender;
An instance of the engine.
Definition: Engine.hpp:10
void Shutdown()
Shut down the engine.
Definition: Engine.cpp:122
bool Start()
Start the engine based on the Configuration.
Definition: Engine.cpp:19
Utility::Window * GetWindow()
Get the window.
Definition: Engine.cpp:47
void Present()
Swap buffers and wait for next frame.
Definition: Engine.cpp:98
bool ShouldClose() const
Get whether the application should close.
Definition: Engine.cpp:51
void Update()
Update the engine.
Definition: Engine.cpp:55
double GetDeltaTime() const
Get time between frames.
Definition: Engine.cpp:87
void Render()
Render a frame.
Definition: Engine.cpp:91
struct Engine::Configuration configuration
Definition: Window.hpp:14
GraphicsAPI
The supported graphics APIs.
Definition: Renderer.hpp:35
Engine configuration.
Definition: Engine.hpp:54
int width
Window width.
Definition: Engine.hpp:60
bool paused
Whether the hymn is paused.
Definition: Engine.hpp:82
int height
Window height.
Definition: Engine.hpp:63
bool fullscreen
Whether to run in fullscreen mode.
Definition: Engine.hpp:66
Video::Renderer::GraphicsAPI graphicsAPI
Which graphics API to use for rendering.
Definition: Engine.hpp:85
double targetFPS
The target FPS.
Definition: Engine.hpp:76
bool borderless
Whether to run in borderless window mode.
Definition: Engine.hpp:69
bool debug
Whether to run in debug context.
Definition: Engine.hpp:73