2011-10-25 14:06:44 -04:00
|
|
|
#include "debugging.hpp"
|
2010-06-05 20:37:01 +02:00
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
2010-06-06 13:36:45 +02:00
|
|
|
#include "OgreRoot.h"
|
|
|
|
#include "OgreRenderWindow.h"
|
|
|
|
#include "OgreSceneManager.h"
|
|
|
|
#include "OgreViewport.h"
|
|
|
|
#include "OgreCamera.h"
|
|
|
|
#include "OgreTextureManager.h"
|
|
|
|
|
2010-08-25 09:19:15 +02:00
|
|
|
#include "../mwworld/world.hpp" // these includes can be removed once the static-hack is gone
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
#include <components/esm/loadstat.hpp>
|
|
|
|
|
2011-01-08 15:11:37 +01:00
|
|
|
#include "player.hpp"
|
|
|
|
|
2010-06-08 13:53:34 +02:00
|
|
|
using namespace MWRender;
|
2010-06-05 20:37:01 +02:00
|
|
|
using namespace Ogre;
|
|
|
|
|
2011-10-22 00:15:15 -04:00
|
|
|
Debugging::Debugging(OEngine::Physic::PhysicEngine* engine){
|
|
|
|
eng = engine;
|
|
|
|
}
|
|
|
|
|
2011-10-24 13:42:36 -04:00
|
|
|
|
2011-10-22 00:15:15 -04:00
|
|
|
bool Debugging::toggleRenderMode (int mode){
|
|
|
|
switch (mode)
|
|
|
|
{
|
|
|
|
case MWWorld::World::Render_CollisionDebug:
|
2012-03-30 16:02:41 +02:00
|
|
|
return eng->toggleDebugRendering();
|
2011-10-22 00:15:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|