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
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void operator()(osg::GraphicsContext* graphicsContext) override;
|
2018-10-25 00:07:01 +01:00
|
|
|
|
2018-10-26 15:18:38 +01:00
|
|
|
private:
|
|
|
|
OpenThreads::Mutex mMutex;
|
|
|
|
};
|
2020-09-19 23:30:34 +01:00
|
|
|
|
|
|
|
bool shouldDebugOpenGL();
|
2018-10-26 15:18:38 +01:00
|
|
|
}
|
2018-10-25 00:07:01 +01:00
|
|
|
#endif
|