diff options
author | rtk0c <[email protected]> | 2022-05-30 17:03:20 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-30 17:03:20 -0700 |
commit | e66286ebe30afc9acc4531fc2bea29b7fb924f93 (patch) | |
tree | fa6b76554c3eb88bc8f088fbab68e20c40118ca7 /source/GraphicsTags.hpp | |
parent | 366ef5a5450c6e0e680c924c3454943a9ae9814d (diff) |
Changeset: 56 Buildsystem cleanup: change to layered structure for different targets
Diffstat (limited to 'source/GraphicsTags.hpp')
-rw-r--r-- | source/GraphicsTags.hpp | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/source/GraphicsTags.hpp b/source/GraphicsTags.hpp deleted file mode 100644 index f83b99c..0000000 --- a/source/GraphicsTags.hpp +++ /dev/null @@ -1,105 +0,0 @@ -#pragma once - -#include <glad/glad.h> -#include <limits> -#include <string> -#include <string_view> - -#include <MacrosCodegen.hpp> - -namespace Tags { -/// Vertex element semantics, used to identify the meaning of vertex buffer contents -enum VertexElementSemantic { - /// Position, typically VET_Float3 - VES_Position, - /// Blending weights - VES_BlendWeights, - /// Blending indices - VES_BlendIndices, - /// Normal, typically VET_Float3 - VES_Normal, - /// Colour, typically VET_Ubyte4 - VES_Color1, - VES_Color2, - VES_Color3, - /// Texture coordinates, typically VET_Float2 - VES_TexCoords1, - VES_TexCoords2, - VES_TexCoords3, - /// Binormal (Y axis if normal is Z) - VES_Binormal, - /// Tangent (X axis if normal is Z) - VES_Tangent, - /// Default semantic - VES_Generic, - VES_COUNT, -}; -BRUSSEL_ENUM(VertexElementSemantic, ToString FromString ExcludeHeuristics); - -std::string_view NameOf(VertexElementSemantic semantic); -VertexElementSemantic FindVertexElementSemantic(std::string_view name); - -enum VertexElementType { - VET_Float1, - VET_Float2, - VET_Float3, - VET_Float4, - - VET_Short2, - VET_Short4, - VET_Ubyte4, - - // the following are not universally supported on all hardware: - VET_Double1, - VET_Double2, - VET_Double3, - VET_Double4, - VET_Ushort2, - VET_Ushort4, - VET_Int1, - VET_Int2, - VET_Int3, - VET_Int4, - VET_Uint1, - VET_Uint2, - VET_Uint3, - VET_Uint4, - VET_Byte4, /// signed bytes - - VET_NORM_BEGIN, - VET_Byte4Norm = VET_NORM_BEGIN, /// signed bytes (normalized to -1..1) - VET_Ubyte4Norm, /// unsigned bytes (normalized to 0..1) - VET_Short2Norm, /// signed shorts (normalized to -1..1) - VET_Short4Norm, - VET_Ushort2Norm, /// unsigned shorts (normalized to 0..1) - 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); -GLenum FindGLType(VertexElementType type); -bool IsNormalized(VertexElementType type); - -enum IndexType { - IT_16Bit, - IT_32Bit, -}; - -int SizeOf(IndexType type); -GLenum FindGLType(IndexType type); - -enum TexFilter { - TF_Linear, - TF_Nearest, -}; - -std::string_view NameOfGLType(GLenum); -GLenum FindGLType(std::string_view name); - -constexpr GLuint kInvalidLocation = std::numeric_limits<GLuint>::max(); -} // namespace Tags - -#include <generated/GraphicsTags.gh.inl> |