This is a bit of a newbie question, but if for example,If I want to extend the scene manager, and add a function; do I extend my class (inherit) from CSceneManagerCSceneManager
or ISceneManagerISceneManager
?
Because I'm trying this in MySceneManager.hMySceneManager.h
:
#include <CSceneManager.h>
class RTSSceneManager : public CSceneManager
{
virtual ICameraSceneNode* addCameraSceneNodeRTS(ISceneNode* parent = 0,
const core::vector3df& position = core::vector3df(0,0,0),
const core::vector3df& lookat = core::vector3df(0,0,100),
s32 id=-1, bool makeActive=true) = 0;
};
But it's giving me this error:
fatal error C1083: Cannot open include file: 'CSceneManager.h': No such file or directory
It works if I use ISceneManagerISceneManager
instead of CSceneManagerCSceneManager
, but then won't I have to re implement CSceneManagerCSceneManager
over again?