aboutsummaryrefslogtreecommitdiff
path: root/source/GraphicsTags.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-04-17 20:08:57 -0700
committerrtk0c <[email protected]>2022-04-17 20:08:57 -0700
commit5424a1d5434e3ddd911a504719918c2df027e2fd (patch)
tree6275aab13140d81dcc46c8290e73ac9a8bbb5605 /source/GraphicsTags.hpp
parentafcac59c7d04f4337d6b04ebed8cac7e871ccc50 (diff)
Changeset: 8 Initial work on sprites and texture system
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