diff options
| author | untodesu <kirill@untode.su> | 2025-06-25 00:44:36 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-06-25 00:44:36 +0500 |
| commit | 88c01588aa0830e219eaa62588839e4d1e2883ce (patch) | |
| tree | 602bb27dd3399aab4aae8c19630e3b7a8dac824b /game/client/metrics.cc | |
| parent | 99cf6cca8dbbc1e563c10cf0167432d3d8af9783 (diff) | |
| download | voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.tar.bz2 voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.zip | |
Clang-format the entire source code
Diffstat (limited to 'game/client/metrics.cc')
| -rw-r--r-- | game/client/metrics.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/game/client/metrics.cc b/game/client/metrics.cc index 143efe5..3d3c2b4 100644 --- a/game/client/metrics.cc +++ b/game/client/metrics.cc @@ -1,4 +1,5 @@ #include "client/pch.hh" + #include "client/metrics.hh" #include "core/feature.hh" @@ -64,18 +65,18 @@ void metrics::layout(void) position.y += y_step; // Draw OpenGL version string - auto r_version_line = fmt::format("GL_VERSION: {}", reinterpret_cast<const char *>(r_version.c_str())); + auto r_version_line = fmt::format("GL_VERSION: {}", reinterpret_cast<const char*>(r_version.c_str())); imdraw_ext::text_shadow(r_version_line, position, text_color, shadow_color, globals::font_debug, draw_list); position.y += y_step; // Draw OpenGL renderer string - auto r_renderer_line = fmt::format("GL_RENDERER: {}", reinterpret_cast<const char *>(r_renderer.c_str())); + auto r_renderer_line = fmt::format("GL_RENDERER: {}", reinterpret_cast<const char*>(r_renderer.c_str())); imdraw_ext::text_shadow(r_renderer_line, position, text_color, shadow_color, globals::font_debug, draw_list); position.y += 1.5f * y_step; - const auto &head = globals::dimension->entities.get<HeadComponent>(globals::player); - const auto &transform = globals::dimension->entities.get<TransformComponent>(globals::player); - const auto &velocity = globals::dimension->entities.get<VelocityComponent>(globals::player); + const auto& head = globals::dimension->entities.get<HeadComponent>(globals::player); + const auto& transform = globals::dimension->entities.get<TransformComponent>(globals::player); + const auto& velocity = globals::dimension->entities.get<VelocityComponent>(globals::player); // Draw player voxel position auto voxel_position = coord::to_voxel(transform.chunk, transform.local); @@ -84,9 +85,8 @@ void metrics::layout(void) position.y += y_step; // Draw player world position - auto world_line = fmt::format("world: [{} {} {}] [{:.03f} {:.03f} {:.03f}]", - transform.chunk.x, transform.chunk.y, transform.chunk.z, - transform.local.x, transform.local.y, transform.local.z); + auto world_line = fmt::format( + "world: [{} {} {}] [{:.03f} {:.03f} {:.03f}]", transform.chunk.x, transform.chunk.y, transform.chunk.z, transform.local.x, transform.local.y, transform.local.z); imdraw_ext::text_shadow(world_line, position, text_color, shadow_color, globals::font_debug, draw_list); position.y += y_step; |
