mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 04:26:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			432 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			432 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
 | 
						|
#define OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
 | 
						|
 | 
						|
#include <osgViewer/ViewerEventHandlers>
 | 
						|
 | 
						|
namespace Debug
 | 
						|
{
 | 
						|
    class EnableGLDebugOperation : public osg::GraphicsOperation
 | 
						|
    {
 | 
						|
    public:
 | 
						|
        EnableGLDebugOperation();
 | 
						|
 | 
						|
        void operator()(osg::GraphicsContext* graphicsContext) override;
 | 
						|
 | 
						|
    private:
 | 
						|
        OpenThreads::Mutex mMutex;
 | 
						|
    };
 | 
						|
 | 
						|
    bool shouldDebugOpenGL();
 | 
						|
}
 | 
						|
#endif
 |