From 7d8bca09b3c4bf1418e758bd3bd0d6f85672153e Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 30 May 2022 15:52:19 -0700 Subject: Changeset: 52 Add support for namespaced enums --- source/GraphicsTags.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'source/GraphicsTags.hpp') 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 -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); -- cgit v1.2.3-70-g09d2