I've got two stupid questions:
1)
I've been staring at the Irrlicht sources and I couldn't find the answer:
How scenenodes get included on the lists of the scene manager?
I mean, the scene meanager does need to have a list of the scenenodes to render, right?
I've checked the add_ commands and the constructors of some of the scene nodes, but I still don't know. And after being created, it gets dropped.
2)
Say I've got 3 interfaces:
IClassBase, IClassA, IClassB
And 3 classes:
CClassBase, CClassA, CClassB
What I'd like to do is:
Code: Select all
class IClassBase
{
virtual void baseFunction() = 0;
}
class IClassA : IClassBase
{
virtual void additionalFunctionA() = 0;
}
class IClassB : IClassBase
{
virtual void additionalFunctionB() = 0;
}
class CClassBase : IClassBase
{
void baseFunction() { do something; }
void otherFunc1() { something; }
void otherFunc2() { something; }
}
class CClassA : CClassBase, IClassA
{
void additionalFunctionA() { do something; }
}
class CClassB : CClassBase, IClassB
{
void additionalFunctionB() { do something; }
}
Code: Select all
IClassBase base;
base.baseFunction();
IClassA a;
a.baseFunction();
a.additionalFunctionA();
IClassB b;
b.baseFunction();
b.additionalFunctionB();
Any tips?
Thanks in advance!
PI