diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/GraphicsTags.hpp | 11 | ||||
-rw-r--r-- | source/main.cpp | 5 |
2 files changed, 3 insertions, 13 deletions
diff --git a/source/GraphicsTags.hpp b/source/GraphicsTags.hpp index 09e62bf..f83b99c 100644 --- a/source/GraphicsTags.hpp +++ b/source/GraphicsTags.hpp @@ -7,14 +7,6 @@ #include <MacrosCodegen.hpp> -enum TestEnum { - TE_Position, - TE_Color, - TE_TexCoord, - TE_COUNT, -}; -BRUSSEL_ENUM(TestEnum, ToString FromString ExcludeHeuristics); - namespace Tags { /// Vertex element semantics, used to identify the meaning of vertex buffer contents enum VertexElementSemantic { @@ -42,6 +34,7 @@ enum VertexElementSemantic { VES_Generic, VES_COUNT, }; +BRUSSEL_ENUM(VertexElementSemantic, ToString FromString ExcludeHeuristics); std::string_view NameOf(VertexElementSemantic semantic); VertexElementSemantic FindVertexElementSemantic(std::string_view name); @@ -82,6 +75,8 @@ enum VertexElementType { VET_Ushort4Norm, VET_NORM_END = VET_Ushort4Norm, }; +// TODO this enum isn't continuous, not supported yet +// BRUSSEL_ENUM(VertexElementType, ToString FromString ExcludeHeuristics); int SizeOf(VertexElementType type); int VectorLenOf(VertexElementType type); diff --git a/source/main.cpp b/source/main.cpp index 353746b..c49fc0b 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -3,11 +3,9 @@ #include "AppConfig.hpp" #include "CommonVertexIndex.hpp" #include "EditorGuizmo.hpp" -#include "GraphicsTags.hpp" #include "Ires.hpp" #include "Level.hpp" #include "Material.hpp" -#include "Metadata.hpp" #include "Shader.hpp" #define GLFW_INCLUDE_NONE @@ -104,9 +102,6 @@ fs::path GetEnvVar(const char* name, const char* backup) { int main(int argc, char* argv[]) { using namespace Tags; - auto str = Metadata::EnumToString(TE_Color); - printf("%.*s", PRINTF_STRING_VIEW(str)); - constexpr auto kImGuiBackend = "imgui-backend"; constexpr auto kGameDataDir = "game-data-directory"; constexpr auto kGameAssetDir = "game-asset-directory"; |