2018-10-26 14:18:38 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
|
|
|
|
#define OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
|
2018-10-24 23:07:01 +00:00
|
|
|
|
|
|
|
#include <osgViewer/ViewerEventHandlers>
|
|
|
|
|
2018-10-26 14:18:38 +00:00
|
|
|
namespace Debug
|
2018-10-24 23:07:01 +00:00
|
|
|
{
|
2018-10-26 14:18:38 +00:00
|
|
|
class EnableGLDebugOperation : public osg::GraphicsOperation
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
EnableGLDebugOperation();
|
2018-10-24 23:07:01 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void operator()(osg::GraphicsContext* graphicsContext) override;
|
2018-10-24 23:07:01 +00:00
|
|
|
|
2018-10-26 14:18:38 +00:00
|
|
|
private:
|
|
|
|
OpenThreads::Mutex mMutex;
|
|
|
|
};
|
2020-09-19 22:30:34 +00:00
|
|
|
|
|
|
|
bool shouldDebugOpenGL();
|
2018-10-26 14:18:38 +00:00
|
|
|
}
|
2018-10-24 23:07:01 +00:00
|
|
|
#endif
|