mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Finish gldebug location move
This commit is contained in:
parent
d42c976852
commit
ac18983f37
@ -11,9 +11,9 @@
|
||||
#include <SDL.h>
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
#include <components/debug/gldebug.hpp>
|
||||
|
||||
#include <components/misc/rng.hpp>
|
||||
#include <components/misc/gldebug.hpp>
|
||||
|
||||
#include <components/vfs/manager.hpp>
|
||||
#include <components/vfs/registerarchives.hpp>
|
||||
@ -427,7 +427,7 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
|
||||
camera->setGraphicsContext(graphicsWindow);
|
||||
camera->setViewport(0, 0, width, height);
|
||||
|
||||
mViewer->setRealizeOperation(new EnableGLDebugOperation());
|
||||
mViewer->setRealizeOperation(new Debug::EnableGLDebugOperation());
|
||||
|
||||
mViewer->realize();
|
||||
|
||||
|
@ -86,11 +86,11 @@ add_component_dir (esmterrain
|
||||
)
|
||||
|
||||
add_component_dir (misc
|
||||
constants utf8stream stringops resourcehelpers rng messageformatparser weakcache gldebug
|
||||
constants utf8stream stringops resourcehelpers rng messageformatparser weakcache
|
||||
)
|
||||
|
||||
add_component_dir (debug
|
||||
debugging debuglog
|
||||
debugging debuglog gldebug
|
||||
)
|
||||
|
||||
IF(NOT WIN32 AND NOT APPLE)
|
||||
|
@ -1,16 +1,19 @@
|
||||
#ifndef OPENMW_COMPONENTS_MISC_GLDEBUG_H
|
||||
#define OPENMW_COMPONENTS_MISC_GLDEBUG_H
|
||||
#ifndef OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
|
||||
#define OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
|
||||
|
||||
#include <osgViewer/ViewerEventHandlers>
|
||||
|
||||
class EnableGLDebugOperation : public osg::GraphicsOperation
|
||||
namespace Debug
|
||||
{
|
||||
public:
|
||||
EnableGLDebugOperation();
|
||||
class EnableGLDebugOperation : public osg::GraphicsOperation
|
||||
{
|
||||
public:
|
||||
EnableGLDebugOperation();
|
||||
|
||||
virtual void operator()(osg::GraphicsContext* graphicsContext);
|
||||
virtual void operator()(osg::GraphicsContext* graphicsContext);
|
||||
|
||||
private:
|
||||
OpenThreads::Mutex mMutex;
|
||||
};
|
||||
private:
|
||||
OpenThreads::Mutex mMutex;
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user