Load images

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
xiaOK
Posts: 6
Joined: Wed Dec 22, 2010 8:34 pm

Load images

Post by xiaOK »

I have gone thorough the tutorials about load a image, but i don't have any idea how to get the "texture" image. Could anyone show me how to load a image,starting with a "normal" image?

Thanks!
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

If i get you right, than "normal" image is software image (IImage) and "texture" image is hardware image (ITexture).

Code: Select all

IImage* image = videoDriver->createImageFromFile("image.png");
ITexture* texture = videoDriver->addTexture("tex1", image);
Post Reply