From 3acd929a28c268a52f7799ea3db1ad4a01790fec Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 9 Jun 2022 21:51:58 -0700 Subject: Changeset: 67 Update GraphicsTags.hpp to the new BRUSSEL_ENUM syntax --- source/30-game/GraphicsTags.hpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'source/30-game') 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); -- cgit v1.2.3-70-g09d2