From 6cd00aacfa22fed6a54a9b812f6b069ad16feec0 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 29 Jun 2025 22:24:42 +0500 Subject: Move game sources into src subdirectory --- src/game/client/voxel_atlas.hh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/game/client/voxel_atlas.hh (limited to 'src/game/client/voxel_atlas.hh') diff --git a/src/game/client/voxel_atlas.hh b/src/game/client/voxel_atlas.hh new file mode 100644 index 0000000..67036ca --- /dev/null +++ b/src/game/client/voxel_atlas.hh @@ -0,0 +1,29 @@ +#ifndef CLIENT_VOXEL_ATLAS_HH +#define CLIENT_VOXEL_ATLAS_HH 1 +#pragma once + +struct AtlasStrip final { + std::size_t offset; + std::size_t plane; +}; + +namespace voxel_atlas +{ +void create(int width, int height, std::size_t count); +void destroy(void); +} // namespace voxel_atlas + +namespace voxel_atlas +{ +std::size_t plane_count(void); +GLuint plane_texture(std::size_t plane_id); +void generate_mipmaps(void); +} // namespace voxel_atlas + +namespace voxel_atlas +{ +AtlasStrip* find_or_load(const std::vector& paths); +AtlasStrip* find(const std::vector& paths); +} // namespace voxel_atlas + +#endif /* CLIENT_VOXEL_ATLAS_HH */ -- cgit