Code: Select all
draw2DImage(driver->getTexture("c:\\image.png"), position2di(x, y), SourceRect, 0, SColor(255, 255, 255), true);
then I want to display a png image as a mesh texture.
so i write
Code: Select all
node->setMaterialTexture(0,driver->getTexture("c:\\image.png"));
how can i get the correct png image as a mesh texture?
Thanks