PDA

View Full Version : How to clearImage(TRANSPARENT) ?



ShUr1k3n
December 6th, 2006, 15:02
Hi guys,

how can i clear an Image with full transparency pixels?

The function is:

void clearImage(Color color, Image* image)
{
int i;
int size = image->textureWidth * image->textureHeight;
Color* data = image->data;
for (i = 0; i < size; i++, data++) *data = color;

}


i also try to use this -> 0xff000000 as a 1st parameter (color). But no luck at all. Just a full black "layer".

Any suggestion?

Mr.Denny
December 6th, 2006, 15:14
This shouldn`t be in the news forum im afraid.

Try here.....

http://www.dcemu.co.uk/vbulletin/forumdisplay.php?f=80

:)

yaustar
December 6th, 2006, 19:01
Are you rendering the models in the correct order? (Reverse painters algorithm). Are the blending modes on?