Creating a custom image

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
pippy
Posts: 49
Joined: Sun Jul 08, 2007 11:31 pm

Creating a custom image

Post by pippy »

I have a large map of a custom class, and I want to make a 'map preview'.

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);

}
Which is a no-brainer, but how would I set the individual pixels?

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?
Post Reply