aboutsummaryrefslogtreecommitdiff
path: root/source/30-game
diff options
context:
space:
mode:
Diffstat (limited to 'source/30-game')
-rw-r--r--source/30-game/GraphicsTags.hpp15
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);