getFileSystem from scene manager request

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

getFileSystem from scene manager request

Post by etcaptor »

I thinks that smgr->getFileSystem() will be useful addition to engine
because CSceneManager stores io::IFileSystem* FileSystem; pointer.
If this is restricted only through device in many cases we should passing IrrlichtDevice* pointer like parameter in addition.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Eh? You can pass the pointers where ever you want!?
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Of course :D /but I suppose that 2 addition lines of code are not big problem for Irrlicht team :wink: :lol:. /

Why we should passing device pointer everywhere for access to FileSystem when most classes stores SceneManager pointer?
For example if some user class derivate ISceneNode... we have SceneManager pointer, but not device pointer.

You can try CreateAttribute inside such class and will see why.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Post Reply