remove extra glew includes

This commit is contained in:
MihailRis
2025-04-26 23:27:45 +03:00
parent 7a344a31c2
commit ec0dbae3f7
5 changed files with 4 additions and 10 deletions
+4 -5
View File
@@ -12,20 +12,19 @@ struct VertexAttribute {
bool normalized = false;
ubyte count = 0;
[[nodiscard]] uint32_t size() const {
switch (type) {
case GL_FLOAT:
return count * sizeof(float);
return count * sizeof(GLfloat);
case GL_UNSIGNED_INT:
case GL_INT:
return count * sizeof(uint32_t);
return count * sizeof(GLint);
case GL_UNSIGNED_SHORT:
case GL_SHORT:
return count * sizeof(uint16_t);
return count * sizeof(GLshort);
case GL_UNSIGNED_BYTE:
case GL_BYTE:
return count * sizeof(uint8_t);
return count * sizeof(GLbyte);
default:
throw std::runtime_error("VertexAttribute type is not supported");
}