Skip to main content
grammar and punctuation; removed blacklisted engine tag
Source Link
Gnemlock
  • 5.3k
  • 5
  • 28
  • 59

How do I extend Irrlicht'sIrrlichts scene manager?

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?

How do I extend Irrlicht's scene manager?

This is a bit of a newbie question, but if for example, I want to extend the scene manager, and add a function; do I extend my class (inherit) from CSceneManager or ISceneManager?

Because I'm trying this in MySceneManager.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 ISceneManager instead of CSceneManager, but then won't I have to re implement CSceneManager over again?

How do I extend Irrlichts scene manager?

If I want to extend the scene manager, and add a function; do I extend my class from CSceneManager or ISceneManager?

I'm trying this in MySceneManager.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 ISceneManager instead of CSceneManager, but then won't I have to re implement CSceneManager over again?

edited title
Link
user1430
user1430

Irrlicht engine extending classes How do I extend Irrlicht's scene manager?

added 6 characters in body
Source Link
Tetrad
  • 30.1k
  • 12
  • 95
  • 143

This is a bit of a newbie question, but if for example, I want to extend the scene manager, and add a function; do I extend my class (inherit) from CSceneManager or ISceneManager?

Because I'm trying this in MySceneManager.h: #include <CSceneManager.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 ISceneManager instead of CSceneManager, but then won't I have to re implement CSceneManager over again?

This is a bit of a newbie question, but if for example, I want to extend the scene manager, and add a function; do I extend my class (inherit) from CSceneManager or ISceneManager?

Because I'm trying this in MySceneManager.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 ISceneManager instead of CSceneManager, but then won't I have to re implement CSceneManager over again?

This is a bit of a newbie question, but if for example, I want to extend the scene manager, and add a function; do I extend my class (inherit) from CSceneManager or ISceneManager?

Because I'm trying this in MySceneManager.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 ISceneManager instead of CSceneManager, but then won't I have to re implement CSceneManager over again?

Tweeted twitter.com/#!/StackGameDev/status/114593264358785024
Source Link
Loading