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

View File

@ -1,7 +1,6 @@
#include "png.hpp"
#include <png.h>
#include <GL/glew.h>
#include <iostream>

View File

@ -4,8 +4,6 @@
#include "gl_util.hpp"
#include "maths/UVRegion.hpp"
#include <GL/glew.h>
#include <cmath>

View File

@ -3,7 +3,6 @@
#include "Mesh.hpp"
#include "Texture.hpp"
#include <GL/glew.h>
#include "typedefs.hpp"
#include "maths/UVRegion.hpp"

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");
}

View File

@ -1,6 +1,5 @@
#include "WorldRenderer.hpp"
#include <GL/glew.h>
#include <assert.h>
#include <algorithm>