From 5424a1d5434e3ddd911a504719918c2df027e2fd Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 17 Apr 2022 20:08:57 -0700 Subject: Changeset: 8 Initial work on sprites and texture system --- source/GraphicsTags.hpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'source/GraphicsTags.hpp') diff --git a/source/GraphicsTags.hpp b/source/GraphicsTags.hpp index 465c57d..34c0885 100644 --- a/source/GraphicsTags.hpp +++ b/source/GraphicsTags.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include @@ -17,10 +18,12 @@ enum VertexElementSemantic { VES_Normal, /// Colour, typically VET_Ubyte4 VES_Color1, - /// Secondary colour. Generally free for custom data. Means specular with OpenGL FFP. VES_Color2, + VES_Color3, /// Texture coordinates, typically VET_Float2 - VES_Texture_coordinates, + VES_TexCoords1, + VES_TexCoords2, + VES_TexCoords3, /// Binormal (Y axis if normal is Z) VES_Binormal, /// Tangent (X axis if normal is Z) @@ -71,6 +74,8 @@ enum VertexElementType { }; int SizeOf(VertexElementType type); +int VectorLenOf(VertexElementType type); +GLenum FindGLType(VertexElementType type); bool IsNormalized(VertexElementType type); enum IndexType { @@ -79,7 +84,15 @@ enum IndexType { }; 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::max(); } // namespace Tags -- cgit v1.2.3-70-g09d2