I found I had exactly the same problem as mentioned in this thread and with a bit of searching and clarifying I now know what I should be doing. Having come to compile time, I get a very odd error though:
Code: Select all
In file included from engine.cpp:3:
mapserialiser.h:9: error: invalid use of undefined type `struct irr::scene::ISceneUserDataSerializer'
../irrlicht-1.1/include/ISceneManager.h:111: error: forward declaration of `struct irr::scene::ISceneUserDataSerializer'
Code: Select all
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
class MapSerialiser : public ISceneUserDataSerializer{
public:
MapSerialiser(ISceneManager*, IMetaTriangleSelector*, IMetaTriangleSelector*);
virtual IAttributes* createUserData(ISceneNode*);
virtual void OnReadUserData(ISceneNode*, IAttributes*);
private:
ISceneManager* sm;
IMetaTriangleSelector* mp;
IMetaTriangleSelector* mpp;
};
Cheers!