Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
EngineState.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
3#pragma once
4
5#include <glm/glm.hpp>
6#include "../core/Types.hpp"
7
8namespace esengine {
9
12 bool owns_webgl_context = false;
13 bool initialized = false;
15 // Off by default: glGetError is a SYNCHRONOUS round-trip to the GPU process,
16 // and the per-frame drain (renderer_flush/renderer_end) pays it on every
17 // frame of every shipped game. Under a slow or contended GPU process those
18 // round-trips starve the renderer's event loop — measured as the editor's
19 // automation surface timing out while `getError` topped the profile. Opt in
20 // via GLDebug.enable(); gl_checkErrors() probes force a check regardless.
24 glm::vec4 clear_color{0.0f, 0.0f, 0.0f, 1.0f};
25 glm::mat4 current_view_projection{1.0f};
26};
27
28} // namespace esengine
Core type definitions and utilities for ESEngine.
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45
glm::mat4 current_view_projection