diff options
author | rtk0c <[email protected]> | 2022-06-09 21:51:58 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-09 21:51:58 -0700 |
commit | 3acd929a28c268a52f7799ea3db1ad4a01790fec (patch) | |
tree | 0c0bca8033eb5b7ba045693c8d43db6f758dce78 /source | |
parent | 662b3e2508de70037ac6b70cf9be8d8fba89b5d1 (diff) |
Changeset: 67 Update GraphicsTags.hpp to the new BRUSSEL_ENUM syntax
Diffstat (limited to 'source')
-rw-r--r-- | source/30-game/GraphicsTags.hpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source/30-game/GraphicsTags.hpp b/source/30-game/GraphicsTags.hpp index cdf79eb..f9628b2 100644 --- a/source/30-game/GraphicsTags.hpp +++ b/source/30-game/GraphicsTags.hpp @@ -10,6 +10,10 @@ namespace Tags { /// Vertex element semantics, used to identify the meaning of vertex buffer contents enum VertexElementSemantic { + // clang-format off + BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics) + // clang-format on + /// Position, typically VET_Float3 VES_Position, /// Blending weights @@ -34,9 +38,12 @@ enum VertexElementSemantic { VES_Generic, VES_COUNT, }; -BRUSSEL_ENUM(VertexElementSemantic, ToString FromString ExcludeHeuristics); enum VertexElementType { + // clang-format off + BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics) + // clang-format on + VET_Float1, VET_Float2, VET_Float3, @@ -72,7 +79,6 @@ enum VertexElementType { }; constexpr auto VET_NORM_BEGIN = VET_Byte4Norm; constexpr auto VET_NORM_END = VET_Ushort4Norm; -BRUSSEL_ENUM(VertexElementType, ToString FromString ExcludeHeuristics); int SizeOf(VertexElementType type); int VectorLenOf(VertexElementType type); @@ -88,10 +94,13 @@ int SizeOf(IndexType type); GLenum FindGLType(IndexType type); enum TexFilter { + // clang-format off + BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics) + // clang-format on + TF_Linear, TF_Nearest, }; -BRUSSEL_ENUM(TexFilter, ToString FromString ExcludeHeuristics); std::string_view GLTypeToString(GLenum); GLenum GLTypeFromString(std::string_view name); |