I'm trying to create in C# my own scene node, as in the not-.NET example 03 (CustomSceneNode).
The C++ example is this:
Code: Select all
class CSampleSceneNode : public scene::ISceneNode
{
/* .. */
public:
CSampleSceneNode(scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id)
: scene::ISceneNode(parent, mgr, id)
/* .. */
}
Code: Select all
public class CSampleSceneNode : ISceneNode
{
/* .. */
public CSampleSceneNode(ISceneNode parent) : base(parent)
/* .. */
}
Code: Select all
public ISceneNode(irr.scene.ISceneNode* realSceneNode);
How can I derive such a class?