Use GLEW instead of QOpenGLFunctions

This commit is contained in:
Dan Paulat 2025-07-07 22:44:01 -05:00
parent 4bd749d976
commit 331b2d855f
33 changed files with 788 additions and 959 deletions

View file

@ -1,25 +1,12 @@
#pragma once
#include <QOpenGLFunctions_3_3_Core>
#include <GL/glew.h>
#define SCWX_GL_CHECK_ERROR() \
{ \
GLenum err; \
while ((err = gl.glGetError()) != GL_NO_ERROR) \
while ((err = glGetError()) != GL_NO_ERROR) \
{ \
logger_->error("GL Error: {}, {}: {}", err, __FILE__, __LINE__); \
} \
}
namespace scwx
{
namespace qt
{
namespace gl
{
using OpenGLFunctions = QOpenGLFunctions_3_3_Core;
}
} // namespace qt
} // namespace scwx