Load texture from resource file (.rc)

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ErUs
Posts: 165
Joined: Thu Oct 07, 2004 6:13 pm

Load texture from resource file (.rc)

Post by ErUs »

Is there a painless way to load a texture from a win32 resource file OR compile a texture into the executable. (Using VC2010 express).

I'm writing a little screen saver.
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

Easiest way IMO is to get the texture file, use a hex editor to convert it into a C array, and put that in a file in your code. Then you can point a memory file at the array and you're good to go.
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

blAaarg
Posts: 94
Joined: Tue Mar 02, 2010 9:11 pm
Location: SoCal

Post by blAaarg »

OR compile a texture into the executable.
this might help:
http://irrlicht.sourceforge.net/phpBB2/ ... ght=source
"Computers don't make mistakes! What they do they do on purpose!!"

-Dale Gribble
Post Reply