I wanted to make a simple crosshair. Therefor I drew a small .png and let it display in the middle of the screen - as simple as it can get.
Now i wanted to add transpirancy and am facing now a little problem:
I set the Backgroundcolor of the file to Transparent by using:
Code: Select all
makeColorKeyTexture(this->crosshair, SColor(0,0,0,0));
So I did a little research and found out that I only have to set the last argument to = true.
My request to you is:
I need the easiest way to set the third argument (const core::rect< s32 >) to nothing, because I just don't need it (I presume??)
so my code would look like this:
Code: Select all
Draw2DImage(crosshair, position2d(x, y), NOTHING, 0, SColor(255, 255, 255), true);
regards
Lo_Ord