From 59dd544ff316745c28a147425616da7065f15949 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 9 Jan 2022 03:38:39 +0000 Subject: [PATCH] Namespaced VoxelStringNames --- constants/voxel_string_names.cpp | 4 ++++ constants/voxel_string_names.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/constants/voxel_string_names.cpp b/constants/voxel_string_names.cpp index cfb4ebc7..827570bb 100644 --- a/constants/voxel_string_names.cpp +++ b/constants/voxel_string_names.cpp @@ -1,5 +1,7 @@ #include "voxel_string_names.h" +namespace zylann::voxel { + VoxelStringNames *VoxelStringNames::g_singleton; void VoxelStringNames::create_singleton() { @@ -31,3 +33,5 @@ VoxelStringNames::VoxelStringNames() { u_block_local_transform = StaticCString::create("u_block_local_transform"); u_lod_fade = StaticCString::create("u_lod_fade"); } + +} // namespace zylann::voxel diff --git a/constants/voxel_string_names.h b/constants/voxel_string_names.h index e4cfeb74..965c5439 100644 --- a/constants/voxel_string_names.h +++ b/constants/voxel_string_names.h @@ -3,6 +3,8 @@ #include +namespace zylann::voxel { + class VoxelStringNames { private: static VoxelStringNames *g_singleton; @@ -35,4 +37,6 @@ public: StringName u_lod_fade; }; +} // namespace zylann::voxel + #endif // VOXEL_STRING_NAMES_H