mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-11-03 19:10:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			765 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			765 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <QOpenGLFunctions_3_3_Core>
 | 
						|
 | 
						|
#define SCWX_GL_CHECK_ERROR()                                                  \
 | 
						|
   {                                                                           \
 | 
						|
      GLenum err;                                                              \
 | 
						|
      while ((err = gl.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
 |