mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
remove extra glew includes
This commit is contained in:
parent
7a344a31c2
commit
ec0dbae3f7
5 changed files with 4 additions and 10 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue