Hi all,
Im creating a sprite 2DGames and i've got an issue when i want to draw sprite hit.
Drawing sprite batch are well working (using IwGxDrawRectScreenSpace), but when i add color on hit ( to red color flash it when hit) Nothing happend .....
My code look like :
CIwColour* cols = IW_GX_ALLOC(CIwColour, 4);
memset(cols, 0x10, sizeof(CIwColour) * 4);
IwGxLightingOff();
IwGxDrawRectScreenSpace(&screenPos,&m_Size,&srcrectXY,&srcrectWH,cols);
The color look like alwayse set to 0xFF...... dit i miss something??
Regards
Sylvain aka chicou












Hi again,
i found myself my mistake....
My material was :
m_Material->SetModulateMode(CIwMaterial::MODULATE_NONE);
i change it to :
m_Material->SetModulateMode(CIwMaterial::MODULATE_RGB);
and all rock'n'roll now..