1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 03:39:55 +00:00
OpenMW/components/debug/gldebug.hpp

22 lines
432 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
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