mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-18 05:42:40 +00:00
more include cleanup (most removing Ogre.h)
This commit is contained in:
parent
87667ab57e
commit
c85aaafac2
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -1,19 +1,34 @@
|
|||||||
#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 {
|
||||||
|
|
||||||
class SkyManager;
|
class SkyManager;
|
||||||
class RenderingManager;
|
class RenderingManager;
|
||||||
|
|
||||||
/// Water rendering
|
/// Water rendering
|
||||||
class Water : public Ogre::RenderTargetListener, public Ogre::RenderQueueListener
|
class Water : public Ogre::RenderTargetListener, public Ogre::RenderQueueListener
|
||||||
{
|
{
|
||||||
static const int CELL_SIZE = 8192;
|
static const int CELL_SIZE = 8192;
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
@ -466,7 +467,7 @@ public:
|
|||||||
std::vector<std::vector<Ogre::Vector3> > getAdditionalVertices(){
|
std::vector<std::vector<Ogre::Vector3> > getAdditionalVertices(){
|
||||||
return additionalVertices;
|
return additionalVertices;
|
||||||
}
|
}
|
||||||
|
|
||||||
void read(NIFFile *nif)
|
void read(NIFFile *nif)
|
||||||
{
|
{
|
||||||
int morphCount = nif->getInt();
|
int morphCount = nif->getInt();
|
||||||
@ -481,7 +482,7 @@ void read(NIFFile *nif)
|
|||||||
float z = nif->getFloat();
|
float z = nif->getFloat();
|
||||||
initialVertices.push_back(Ogre::Vector3(x, y, z));
|
initialVertices.push_back(Ogre::Vector3(x, y, z));
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i=1; i<morphCount; i++)
|
for(int i=1; i<morphCount; i++)
|
||||||
{
|
{
|
||||||
magic = nif->getInt();
|
magic = nif->getInt();
|
||||||
@ -543,8 +544,8 @@ class NiKeyframeData : public Record
|
|||||||
std::vector<Ogre::Vector3> tbcscale;
|
std::vector<Ogre::Vector3> tbcscale;
|
||||||
int stype;
|
int stype;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void clone(NiKeyframeData c)
|
void clone(NiKeyframeData c)
|
||||||
{
|
{
|
||||||
@ -559,11 +560,11 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
translist1 = c.getTranslist1();
|
translist1 = c.getTranslist1();
|
||||||
translist2 = c.getTranslist2();
|
translist2 = c.getTranslist2();
|
||||||
translist3 = c.getTranslist3();
|
translist3 = c.getTranslist3();
|
||||||
|
|
||||||
transtime = c.gettTime();
|
transtime = c.gettTime();
|
||||||
|
|
||||||
bonename = c.getBonename();
|
bonename = c.getBonename();
|
||||||
|
|
||||||
|
|
||||||
@ -611,7 +612,7 @@ public:
|
|||||||
Ogre::Quaternion quat = Ogre::Quaternion(Ogre::Real(w), Ogre::Real(x), Ogre::Real(y), Ogre::Real(z));
|
Ogre::Quaternion quat = Ogre::Quaternion(Ogre::Real(w), Ogre::Real(x), Ogre::Real(y), Ogre::Real(z));
|
||||||
quats.push_back(quat);
|
quats.push_back(quat);
|
||||||
rottime.push_back(time);
|
rottime.push_back(time);
|
||||||
//if(time == 0.0 || time > 355.5)
|
//if(time == 0.0 || time > 355.5)
|
||||||
// std::cout <<"Time:" << time << "W:" << w <<"X:" << x << "Y:" << y << "Z:" << z << "\n";
|
// std::cout <<"Time:" << time << "W:" << w <<"X:" << x << "Y:" << y << "Z:" << z << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -632,7 +633,7 @@ public:
|
|||||||
quats.push_back(quat);
|
quats.push_back(quat);
|
||||||
rottime.push_back(time);
|
rottime.push_back(time);
|
||||||
tbc.push_back(vec);
|
tbc.push_back(vec);
|
||||||
//if(time == 0.0 || time > 355.5)
|
//if(time == 0.0 || time > 355.5)
|
||||||
// std::cout <<"Time:" << time << "W:" << w <<"X:" << x << "Y:" << y << "Z:" << z << "\n";
|
// std::cout <<"Time:" << time << "W:" << w <<"X:" << x << "Y:" << y << "Z:" << z << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -661,7 +662,7 @@ public:
|
|||||||
|
|
||||||
// Then translation
|
// Then translation
|
||||||
count = nif->getInt();
|
count = nif->getInt();
|
||||||
|
|
||||||
if(count)
|
if(count)
|
||||||
{
|
{
|
||||||
ttype = nif->getInt();
|
ttype = nif->getInt();
|
||||||
@ -700,7 +701,7 @@ public:
|
|||||||
translist2.push_back(trans2);
|
translist2.push_back(trans2);
|
||||||
translist3.push_back(trans3);
|
translist3.push_back(trans3);
|
||||||
}
|
}
|
||||||
|
|
||||||
//nif->getFloatLen(count*10); // trans1 + forward + backward
|
//nif->getFloatLen(count*10); // trans1 + forward + backward
|
||||||
}
|
}
|
||||||
else if(ttype == 3){
|
else if(ttype == 3){
|
||||||
@ -729,12 +730,12 @@ public:
|
|||||||
{
|
{
|
||||||
stype = nif->getInt();
|
stype = nif->getInt();
|
||||||
|
|
||||||
|
|
||||||
for(int i = 0; i < count; i++){
|
for(int i = 0; i < count; i++){
|
||||||
|
|
||||||
|
|
||||||
//int size = 0;
|
//int size = 0;
|
||||||
if(stype >= 1 && stype < 4)
|
if(stype >= 1 && stype < 4)
|
||||||
{
|
{
|
||||||
float time = nif->getFloat();
|
float time = nif->getFloat();
|
||||||
float scale = nif->getFloat();
|
float scale = nif->getFloat();
|
||||||
@ -759,10 +760,10 @@ public:
|
|||||||
|
|
||||||
//size = 5; // 1 + tbc
|
//size = 5; // 1 + tbc
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
stype = 0;
|
stype = 0;
|
||||||
}
|
}
|
||||||
int getRtype(){
|
int getRtype(){
|
||||||
|
@ -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>
|
||||||
|
|
||||||
@ -230,7 +238,7 @@ void NIFLoader::createMaterial(const String &name,
|
|||||||
//tech->setSchemeName("blahblah");
|
//tech->setSchemeName("blahblah");
|
||||||
Pass* pass = tech->createPass();
|
Pass* pass = tech->createPass();
|
||||||
pass->setVertexProgram("Ogre/BasicVertexPrograms/AmbientOneTexture");*/
|
pass->setVertexProgram("Ogre/BasicVertexPrograms/AmbientOneTexture");*/
|
||||||
|
|
||||||
|
|
||||||
// This assigns the texture to this material. If the texture name is
|
// This assigns the texture to this material. If the texture name is
|
||||||
// a file name, and this file exists (in a resource directory), it
|
// a file name, and this file exists (in a resource directory), it
|
||||||
@ -478,7 +486,7 @@ void NIFLoader::createOgreSubMesh(NiTriShape *shape, const String &material, std
|
|||||||
bind->setBinding(nextBuf++, vbuf);
|
bind->setBinding(nextBuf++, vbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Vertex colors
|
// Vertex colors
|
||||||
if (data->colors.length)
|
if (data->colors.length)
|
||||||
{
|
{
|
||||||
@ -795,7 +803,7 @@ void NIFLoader::handleNiTriShape(NiTriShape *shape, int flags, BoundsFinder &bou
|
|||||||
std::list<VertexBoneAssignment> vertexBoneAssignments;
|
std::list<VertexBoneAssignment> vertexBoneAssignments;
|
||||||
|
|
||||||
Nif::NiTriShapeCopy copy = shape->clone();
|
Nif::NiTriShapeCopy copy = shape->clone();
|
||||||
|
|
||||||
if(!shape->controller.empty())
|
if(!shape->controller.empty())
|
||||||
{
|
{
|
||||||
Nif::Controller* cont = shape->controller.getPtr();
|
Nif::Controller* cont = shape->controller.getPtr();
|
||||||
@ -984,7 +992,7 @@ void NIFLoader::handleNiTriShape(NiTriShape *shape, int flags, BoundsFinder &bou
|
|||||||
}
|
}
|
||||||
if(!mSkel.isNull() ){
|
if(!mSkel.isNull() ){
|
||||||
int boneIndex;
|
int boneIndex;
|
||||||
|
|
||||||
boneIndex = mSkel->getNumBones() - 1;
|
boneIndex = mSkel->getNumBones() - 1;
|
||||||
for(int i = 0; i < numVerts; i++){
|
for(int i = 0; i < numVerts; i++){
|
||||||
VertexBoneAssignment vba;
|
VertexBoneAssignment vba;
|
||||||
@ -1388,7 +1396,7 @@ void NIFLoader::loadResource(Resource *resource)
|
|||||||
vba.boneIndex = boneIndex;
|
vba.boneIndex = boneIndex;
|
||||||
vba.vertexIndex = 0;
|
vba.vertexIndex = 0;
|
||||||
vba.weight = 1;
|
vba.weight = 1;
|
||||||
|
|
||||||
|
|
||||||
(*iter)->addBoneAssignment(vba);
|
(*iter)->addBoneAssignment(vba);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
@ -193,7 +190,7 @@ class NIFLoader : Ogre::ManualResourceLoader
|
|||||||
std::vector<Nif::NiTriShapeCopy> mS;
|
std::vector<Nif::NiTriShapeCopy> mS;
|
||||||
std::vector<Ogre::SubMesh*> needBoneAssignments;
|
std::vector<Ogre::SubMesh*> needBoneAssignments;
|
||||||
bool inTheSkeletonTree;
|
bool inTheSkeletonTree;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
|
||||||
|
@ -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"
|
||||||
@ -154,7 +154,7 @@ struct playerMove
|
|||||||
KEYUP
|
KEYUP
|
||||||
};
|
};
|
||||||
|
|
||||||
playercmd() : forwardmove(0), rightmove(0), upmove(0), serverTime(50), ducking(false),
|
playercmd() : forwardmove(0), rightmove(0), upmove(0), serverTime(50), ducking(false),
|
||||||
activating(false), lastActivatingState(false), procActivating(NO_CHANGE),
|
activating(false), lastActivatingState(false), procActivating(NO_CHANGE),
|
||||||
dropping(false), lastDroppingState(false), procDropping(NO_CHANGE)
|
dropping(false), lastDroppingState(false), procDropping(NO_CHANGE)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user