ISceneUserDataSerializer is a struct? (apparently)
Posted: Sat Nov 11, 2006 6:21 pm
Hello (again).
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:
As far as the documentation, the source code, and I know, ISceneUserDataSerializer is definitely not a struct. It's an interface. All I've tried to do is implement this, but it's not happy, and I don't know why. Here's my .h file:
Is something wrong with it, or is the problem elsewhere? Thought I'd put this question here rather than in the other thread because I have a feeling it's a programming error rather than something serious.
Cheers!
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!