summaryrefslogtreecommitdiffstats
path: root/src/game/client/globals.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-11 15:14:26 +0500
committeruntodesu <kirill@untode.su>2025-12-11 15:14:26 +0500
commitf40d09cb8f712e87691af4912f3630d92d692779 (patch)
tree7ac3a4168ff722689372fd489c6f94d0a2546e8f /src/game/client/globals.cc
parent8bcbd2729388edc63c82d77d314b583af1447c49 (diff)
downloadvoxelius-f40d09cb8f712e87691af4912f3630d92d692779.tar.bz2
voxelius-f40d09cb8f712e87691af4912f3630d92d692779.zip
Shuffle stuff around
- Use the new and improved hierarchy I figured out when making Prospero chat - Re-add NSIS scripts, again from Prospero - Update most build and utility scripts with their most recent versions
Diffstat (limited to 'src/game/client/globals.cc')
-rw-r--r--src/game/client/globals.cc47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/game/client/globals.cc b/src/game/client/globals.cc
new file mode 100644
index 0000000..1932675
--- /dev/null
+++ b/src/game/client/globals.cc
@@ -0,0 +1,47 @@
+#include "client/pch.hh"
+
+#include "client/globals.hh"
+
+#include "core/io/config_map.hh"
+
+#include "client/gui/gui_screen.hh"
+
+io::ConfigMap globals::client_config;
+
+GLFWwindow* globals::window;
+
+float globals::window_frametime;
+float globals::window_frametime_avg;
+std::uint64_t globals::window_frametime_us;
+std::uint64_t globals::window_framecount;
+
+std::uint64_t globals::fixed_accumulator;
+
+int globals::width;
+int globals::height;
+float globals::aspect;
+
+GLuint globals::world_fbo;
+GLuint globals::world_fbo_color;
+GLuint globals::world_fbo_depth;
+
+std::size_t globals::num_drawcalls;
+std::size_t globals::num_triangles;
+
+ENetHost* globals::client_host;
+
+world::Dimension* globals::dimension = nullptr;
+entt::entity globals::player;
+
+ImFont* globals::font_unscii16;
+ImFont* globals::font_unscii8;
+
+config::KeyBind* globals::gui_keybind_ptr = nullptr;
+config::GamepadAxis* globals::gui_gamepad_axis_ptr = nullptr;
+config::GamepadButton* globals::gui_gamepad_button_ptr = nullptr;
+
+unsigned int globals::gui_scale = 0U;
+unsigned int globals::gui_screen = GUI_SCREEN_NONE;
+
+ALCdevice* globals::sound_dev;
+ALCcontext* globals::sound_ctx;