James Proctor
20-09-2009 23:29:57
When ever I try to add Caelum to the Player demo it just crashes the game. I haven't added the update method yet so I don't know if thats causing it to crash but I don't think so.
Here is my code:
CaelumManager.cpp:
#include "Engine/Environment/CaelumManager.h"
CaelumManager::CaelumManager(Ogre::Root* root, Ogre::SceneManager* mgr)
: root(root), mgr(mgr)
{
mCaelumSystem = new Caelum::CaelumSystem(root, mgr, Caelum::CaelumSystem::CAELUM_COMPONENTS_DEFAULT);
}
CaelumManager::~CaelumManager()
{
}
CaelumManager.h:
#include "Caelum.h" //Include Caelum header
using namespace Caelum;
class CaelumManager
{
public:
CaelumSystem* mCaelumSystem;
CaelumManager(Ogre::Root* root, Ogre::SceneManager* mgr);
~CaelumManager();
private:
Ogre::Root* root;
Ogre::SceneManager* mgr;
};
Inside my createScene Method:
Caelum = new CaelumManager(root, sceneMgr);
I don't see anything there that would cause it to crash. Also its not just my own manager that causes it to crash but its any time I try to add Caelum in any way possible it crashes. Just a side note Hydrax also doesn't work when I try adding it to the Player Demo so I would say theres something in the Player Demo causing these plugins not to work.
Here is my code:
CaelumManager.cpp:
#include "Engine/Environment/CaelumManager.h"
CaelumManager::CaelumManager(Ogre::Root* root, Ogre::SceneManager* mgr)
: root(root), mgr(mgr)
{
mCaelumSystem = new Caelum::CaelumSystem(root, mgr, Caelum::CaelumSystem::CAELUM_COMPONENTS_DEFAULT);
}
CaelumManager::~CaelumManager()
{
}
CaelumManager.h:
#include "Caelum.h" //Include Caelum header
using namespace Caelum;
class CaelumManager
{
public:
CaelumSystem* mCaelumSystem;
CaelumManager(Ogre::Root* root, Ogre::SceneManager* mgr);
~CaelumManager();
private:
Ogre::Root* root;
Ogre::SceneManager* mgr;
};
Inside my createScene Method:
Caelum = new CaelumManager(root, sceneMgr);
I don't see anything there that would cause it to crash. Also its not just my own manager that causes it to crash but its any time I try to add Caelum in any way possible it crashes. Just a side note Hydrax also doesn't work when I try adding it to the Player Demo so I would say theres something in the Player Demo causing these plugins not to work.