mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
26 lines
846 B
C++
26 lines
846 B
C++
#pragma once
|
|
|
|
#include <QOpenGLFunctions_3_3_Core>
|
|
|
|
#define SCWX_GL_CHECK_ERROR() \
|
|
{ \
|
|
GLenum err; \
|
|
while ((err = p->gl_.glGetError()) != GL_NO_ERROR) \
|
|
{ \
|
|
BOOST_LOG_TRIVIAL(warning) << logPrefix_ << "GL Error: " << err \
|
|
<< ", " __FILE__ << ":" << __LINE__; \
|
|
} \
|
|
}
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace gl
|
|
{
|
|
|
|
using OpenGLFunctions = QOpenGLFunctions_3_3_Core;
|
|
|
|
}
|
|
} // namespace qt
|
|
} // namespace scwx
|