Page 1 of 1

Loading textures from resources.

Posted: Tue Jan 05, 2010 3:08 pm
by 3DModelerMan
Does Irrlicht have a way of loading textures from resources? I want to use the resource compiler to save a little space in my project. And so I need to be able to load the files from compiled resources.
Thanks.

Posted: Tue Jan 05, 2010 3:34 pm
by Mircea Popescu
I know it can either load zips/pk3s

Code: Select all

device->getFileSystem()->addZipFileArchive("filename")
or else it can load precompiled quake levels

Code: Select all

scene::IQ3LevelMesh*) sm->getMesh("filename");

Posted: Wed Jan 06, 2010 2:48 am
by 3DModelerMan
Yeah I knew about those. I mean the resources that MSVC compiles into the program.

Posted: Wed Jan 06, 2010 10:24 am
by hybrid
This is windows specific stuff, you need to do it in your app.

Posted: Wed Jan 06, 2010 11:32 am
by bitplane
I wrote a cross platform Windows RSRC loader just before the 1.6 release, but it still needs a little work to bring it up-to-date with the changes that went in to the release.
You can find some info and links to the project here:
http://bitplane.net/projects/irrlicht/loaders/rsrc/