diff options
author | rtk0c <[email protected]> | 2022-05-30 15:52:19 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-30 15:52:19 -0700 |
commit | 7d8bca09b3c4bf1418e758bd3bd0d6f85672153e (patch) | |
tree | f6e411e1ec949187889d268f2993e38cddb74d53 /source/GraphicsTags.hpp | |
parent | ce9559e8c2b69d46cff064241bd9a04c014af44f (diff) |
Changeset: 52 Add support for namespaced enums
Diffstat (limited to 'source/GraphicsTags.hpp')
-rw-r--r-- | source/GraphicsTags.hpp | 11 |
1 files changed, 3 insertions, 8 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); |