So far I have
Code: Select all
void Map::createMapPreview(){
char chmapPreview[20];
mapPreview = driver->addTexture(core::dimension2d<s32> (256,256),
chmapPreview, video::ECF_A1R5G5B5);
}
I noticed Iimage has a setPixel() function, so would I convert the texture a Iimage, set the map preview, and convert it back, or is there another way?