mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
22 lines
432 B
C++
22 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
|