From 6c2abde5c99a236453b795abaa6d7d70105e31f7 Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 26 Dec 2025 14:50:33 +0500 Subject: Just a big Ctrl+H refactoring --- src/game/client/world/voxel_atlas.hh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/game/client/world/voxel_atlas.hh') diff --git a/src/game/client/world/voxel_atlas.hh b/src/game/client/world/voxel_atlas.hh index 70e8a1e..acfcfbd 100644 --- a/src/game/client/world/voxel_atlas.hh +++ b/src/game/client/world/voxel_atlas.hh @@ -1,28 +1,25 @@ #pragma once -namespace world -{ struct AtlasStrip final { std::size_t offset; std::size_t plane; }; -} // namespace world -namespace world::voxel_atlas +namespace voxel_atlas { void create(int width, int height, std::size_t count); void destroy(void); -} // namespace world::voxel_atlas +} // namespace voxel_atlas -namespace world::voxel_atlas +namespace voxel_atlas { std::size_t plane_count(void); GLuint plane_texture(std::size_t plane_id); void generate_mipmaps(void); -} // namespace world::voxel_atlas +} // namespace voxel_atlas -namespace world::voxel_atlas +namespace voxel_atlas { AtlasStrip* find_or_load(const std::vector& paths); AtlasStrip* find(const std::vector& paths); -} // namespace world::voxel_atlas +} // namespace voxel_atlas -- cgit