more include cleanup (most removing Ogre.h)

This commit is contained in:
Marc Zinnschlag 2012-07-03 15:32:38 +02:00
parent 87667ab57e
commit c85aaafac2
25 changed files with 136 additions and 48 deletions

View file

@ -2,6 +2,8 @@
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <OgreResourceGroupManager.h>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>
#include "../mwbase/world.hpp" #include "../mwbase/world.hpp"

View file

@ -3,6 +3,8 @@
#include <typeinfo> #include <typeinfo>
#include <OgreVector3.h>
#include <components/esm/loadnpc.hpp> #include <components/esm/loadnpc.hpp>
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"

View file

@ -1,7 +1,7 @@
#include "actors.hpp" #include "actors.hpp"
#include <OgreSceneNode.h> #include <OgreSceneNode.h>
#include <OgreSceneManager.h>
using namespace Ogre; using namespace Ogre;

View file

@ -1,5 +1,10 @@
#include "animation.hpp" #include "animation.hpp"
#include <OgreHardwarePixelBuffer.h>
#include <OgreSkeletonInstance.h>
#include <OgreEntity.h>
#include <OgreBone.h>
#include <OgreSubMesh.h>
namespace MWRender{ namespace MWRender{
std::map<std::string, int> Animation::mUniqueIDs; std::map<std::string, int> Animation::mUniqueIDs;

View file

@ -1,4 +1,9 @@
#include "creatureanimation.hpp" #include "creatureanimation.hpp"
#include <OgreEntity.h>
#include <OgreSceneManager.h>
#include <OgreSubEntity.h>
#include "renderconst.hpp" #include "renderconst.hpp"
#include "../mwbase/world.hpp" #include "../mwbase/world.hpp"

View file

@ -6,6 +6,7 @@
#include <OgreSceneManager.h> #include <OgreSceneManager.h>
#include <OgreMaterial.h> #include <OgreMaterial.h>
#include <OgreMaterialManager.h> #include <OgreMaterialManager.h>
#include <OgreManualObject.h>
#include <components/esm/loadstat.hpp> #include <components/esm/loadstat.hpp>
#include <components/esm/loadpgrd.hpp> #include <components/esm/loadpgrd.hpp>

View file

@ -2,6 +2,7 @@
#include <OgreOverlayManager.h> #include <OgreOverlayManager.h>
#include <OgreMaterialManager.h> #include <OgreMaterialManager.h>
#include <OgreHardwarePixelBuffer.h>
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp" #include "../mwbase/world.hpp"

View file

@ -1,5 +1,9 @@
#include "npcanimation.hpp" #include "npcanimation.hpp"
#include <OgreSceneManager.h>
#include <OgreEntity.h>
#include <OgreSubEntity.h>
#include <components/esm_store/store.hpp> #include <components/esm_store/store.hpp>
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"

View file

@ -1,6 +1,11 @@
#include "objects.hpp" #include "objects.hpp"
#include <OgreSceneNode.h> #include <OgreSceneNode.h>
#include <OgreSceneManager.h>
#include <OgreEntity.h>
#include <OgreLight.h>
#include <OgreSubEntity.h>
#include <OgreStaticGeometry.h>
#include <components/nifogre/ogre_nif_loader.hpp> #include <components/nifogre/ogre_nif_loader.hpp>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>

View file

@ -1,6 +1,8 @@
#include "player.hpp" #include "player.hpp"
#include <OgreSceneNode.h>
namespace MWRender namespace MWRender
{ {
Player::Player (Ogre::Camera *camera, Ogre::SceneNode* node) Player::Player (Ogre::Camera *camera, Ogre::SceneNode* node)
@ -24,4 +26,9 @@ namespace MWRender
pitchNode->setOrientation(xr); pitchNode->setOrientation(xr);
yawNode->setOrientation(yr); yawNode->setOrientation(yr);
} }
std::string Player::getHandle() const
{
return mNode->getName();
}
} }

View file

@ -1,12 +1,12 @@
#ifndef GAME_MWRENDER_PLAYER_H #ifndef GAME_MWRENDER_PLAYER_H
#define GAME_MWRENDER_PLAYER_H #define GAME_MWRENDER_PLAYER_H
#include <iostream> #include <string>
#include <Ogre.h>
namespace Ogre namespace Ogre
{ {
class Camera; class Camera;
class SceneNode;
} }
namespace MWRender namespace MWRender
@ -26,7 +26,7 @@ namespace MWRender
/// Set where the player is looking at. Uses Morrowind (euler) angles /// Set where the player is looking at. Uses Morrowind (euler) angles
void setRot(float x, float y, float z); void setRot(float x, float y, float z);
std::string getHandle() const { return mNode->getName(); } std::string getHandle() const;
Ogre::SceneNode* getNode() {return mNode;} Ogre::SceneNode* getNode() {return mNode;}
}; };
} }

View file

@ -2,12 +2,17 @@
#include <cassert> #include <cassert>
#include "OgreRoot.h" #include <OgreRoot.h>
#include "OgreRenderWindow.h" #include <OgreRenderWindow.h>
#include "OgreSceneManager.h" #include <OgreSceneManager.h>
#include "OgreViewport.h" #include <OgreViewport.h>
#include "OgreCamera.h" #include <OgreCamera.h>
#include "OgreTextureManager.h" #include <OgreTextureManager.h>
#include <OgreCompositorManager.h>
#include <OgreCompositorChain.h>
#include <OgreCompositionTargetPass.h>
#include <OgreCompositionPass.h>
#include <OgreHardwarePixelBuffer.h>
#include <components/esm/loadstat.hpp> #include <components/esm/loadstat.hpp>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>

View file

@ -5,6 +5,7 @@
#include <OgreHighLevelGpuProgramManager.h> #include <OgreHighLevelGpuProgramManager.h>
#include <OgreHighLevelGpuProgram.h> #include <OgreHighLevelGpuProgram.h>
#include <OgreGpuProgramParams.h> #include <OgreGpuProgramParams.h>
#include <OgreShadowCameraSetupPSSM.h>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>

View file

@ -4,9 +4,16 @@
#include <OgreRenderWindow.h> #include <OgreRenderWindow.h>
#include <OgreSceneNode.h> #include <OgreSceneNode.h>
#include <OgreMesh.h> #include <OgreMesh.h>
#include <OgreSubMesh.h>
#include <OgreSceneManager.h> #include <OgreSceneManager.h>
#include <OgreHardwareVertexBuffer.h> #include <OgreHardwareVertexBuffer.h>
#include <OgreHighLevelGpuProgramManager.h> #include <OgreHighLevelGpuProgramManager.h>
#include <OgreBillboardSet.h>
#include <OgreEntity.h>
#include <OgreSubEntity.h>
#include <OgreOverlay.h>
#include <OgreOverlayManager.h>
#include <OgreOverlayContainer.h>
#include <components/nifogre/ogre_nif_loader.hpp> #include <components/nifogre/ogre_nif_loader.hpp>

View file

@ -2,6 +2,7 @@
#include <OgreTerrain.h> #include <OgreTerrain.h>
#include <OgreTerrainGroup.h> #include <OgreTerrainGroup.h>
#include <OgreHardwarePixelBuffer.h>
#include <components/esm_store/store.hpp> #include <components/esm_store/store.hpp>

View file

@ -1,5 +1,14 @@
#include "water.hpp" #include "water.hpp"
#include <OgreRenderTarget.h>
#include <OgreEntity.h>
#include <OgreMeshManager.h>
#include <OgreHardwarePixelBuffer.h>
#include <OgreCompositorManager.h>
#include <OgreCompositorInstance.h>
#include <OgreCompositorChain.h>
#include <OgreRoot.h>
#include "sky.hpp" #include "sky.hpp"
#include "renderingmanager.hpp" #include "renderingmanager.hpp"
#include "compositors.hpp" #include "compositors.hpp"

View file

@ -1,12 +1,27 @@
#ifndef GAME_MWRENDER_WATER_H #ifndef GAME_MWRENDER_WATER_H
#define GAME_MWRENDER_WATER_H #define GAME_MWRENDER_WATER_H
#include <Ogre.h> #include <OgrePlane.h>
#include <OgreRenderQueue.h>
#include <OgreRenderQueueListener.h>
#include <OgreRenderTargetListener.h>
#include <OgreMaterial.h>
#include <OgreTexture.h>
#include <components/esm/loadcell.hpp> #include <components/esm/loadcell.hpp>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>
#include "renderconst.hpp" #include "renderconst.hpp"
namespace Ogre
{
class Camera;
class SceneManager;
class SceneNode;
class Entity;
class Vector3;
struct RenderTargetEvent;
};
namespace MWRender { namespace MWRender {

View file

@ -1,6 +1,8 @@
#include "refdata.hpp" #include "refdata.hpp"
#include <OgreSceneNode.h>
#include "customdata.hpp" #include "customdata.hpp"
#include "cellstore.hpp" #include "cellstore.hpp"

View file

@ -3,12 +3,15 @@
#include <string> #include <string>
#include <Ogre.h>
#include <components/esm/defs.hpp> #include <components/esm/defs.hpp>
#include "../mwscript/locals.hpp" #include "../mwscript/locals.hpp"
namespace Ogre
{
class SceneNode;
}
namespace ESM namespace ESM
{ {
class Script; class Script;

View file

@ -25,8 +25,9 @@
#define _NIF_DATA_H_ #define _NIF_DATA_H_
#include "controlled.hpp" #include "controlled.hpp"
#include <iostream>
#include <Ogre.h> #include <OgreQuaternion.h>
#include <OgreVector3.h>
namespace Nif namespace Nif
{ {

View file

@ -25,6 +25,14 @@
#include "ogre_nif_loader.hpp" #include "ogre_nif_loader.hpp"
#include <OgreMaterialManager.h>
#include <OgreMeshManager.h>
#include <OgreHardwareBufferManager.h>
#include <OgreSkeletonManager.h>
#include <OgreTechnique.h>
#include <OgreSubMesh.h>
#include <OgreRoot.h>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>
#include <components/nifoverrides/nifoverrides.hpp> #include <components/nifoverrides/nifoverrides.hpp>

View file

@ -26,12 +26,10 @@
#include <OgreResource.h> #include <OgreResource.h>
#include <OgreMesh.h> #include <OgreMesh.h>
#include <assert.h>
#include <cassert>
#include <string> #include <string>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <Ogre.h>
#include <stdio.h>
#include <iostream>
#include <libs/mangle/vfs/servers/ogre_vfs.hpp> #include <libs/mangle/vfs/servers/ogre_vfs.hpp>
#include "../nif/nif_file.hpp" #include "../nif/nif_file.hpp"
@ -45,7 +43,6 @@
#include <vector> #include <vector>
#include <list> #include <list>
// For warning messages // For warning messages
#include <iostream>
#include <limits> #include <limits>
using namespace boost::algorithm; using namespace boost::algorithm;

View file

@ -17,6 +17,10 @@
#include "BtOgreGP.h" #include "BtOgreGP.h"
#include "BtOgreExtras.h" #include "BtOgreExtras.h"
#include <OgreEntity.h>
#include <OgreSubMesh.h>
#include <OgreSubEntity.h>
using namespace Ogre; using namespace Ogre;
namespace BtOgre { namespace BtOgre {

View file

@ -19,7 +19,10 @@
#include "btBulletDynamicsCommon.h" #include "btBulletDynamicsCommon.h"
#include "BtOgreExtras.h" #include "BtOgreExtras.h"
#include "Ogre.h"
#include <OgreMatrix4.h>
#include <OgreMesh.h>
#include <OgreVector3.h>
namespace BtOgre { namespace BtOgre {

View file

@ -6,12 +6,12 @@ which was released under the GNU GPL (v2) in 2005.
Quake 3 Arena is copyright (C) 1999-2005 Id Software, Inc. Quake 3 Arena is copyright (C) 1999-2005 Id Software, Inc.
*/ */
#include <Ogre.h>
#include <OgreMath.h> #include <OgreMath.h>
#include <float.h> #include <float.h>
#include "trace.h" #include "trace.h"
#include "physic.hpp" #include "physic.hpp"
#include <OgreVector3.h>
//#include "GameMath.h" //#include "GameMath.h"
//#include "GameTime.h" //#include "GameTime.h"