aboutsummaryrefslogtreecommitdiff
path: root/source/GraphicsTags.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/GraphicsTags.hpp')
-rw-r--r--source/GraphicsTags.hpp17
1 files changed, 15 insertions, 2 deletions
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 <glad/glad.h>
+#include <limits>
#include <string>
#include <string_view>
@@ -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<GLuint>::max();
} // namespace Tags