Namespaced VoxelStringNames

This commit is contained in:
Marc Gilleron 2022-01-09 03:38:39 +00:00
parent 20c85e65a7
commit 59dd544ff3
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -3,6 +3,8 @@
#include <core/string/string_name.h>
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