mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:20:05 +00:00
Use GLEW instead of QOpenGLFunctions
This commit is contained in:
parent
4bd749d976
commit
331b2d855f
33 changed files with 788 additions and 959 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue