mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 08:56:38 +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
 |