Page 1 of 1

Load images

Posted: Thu Jun 02, 2011 12:32 pm
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!

Posted: Thu Jun 02, 2011 1:41 pm
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);