openmw/components/debug/gldebug.hpp

20 lines
400 B
C++
Raw Normal View History

2018-10-26 15:18:38 +01:00
#ifndef OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
#define OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
2018-10-25 00:07:01 +01:00
#include <osgViewer/ViewerEventHandlers>
2018-10-26 15:18:38 +01:00
namespace Debug
2018-10-25 00:07:01 +01:00
{
2018-10-26 15:18:38 +01:00
class EnableGLDebugOperation : public osg::GraphicsOperation
{
public:
EnableGLDebugOperation();
2018-10-25 00:07:01 +01:00
2018-10-26 15:18:38 +01:00
virtual void operator()(osg::GraphicsContext* graphicsContext);
2018-10-25 00:07:01 +01:00
2018-10-26 15:18:38 +01:00
private:
OpenThreads::Mutex mMutex;
};
}
2018-10-25 00:07:01 +01:00
#endif