I'm searching for a way of getting/computing the unit value for one pixel.
For example, if I want to draw a line of 1000 'Irrlicht-Units', what is the line length in pixels?
Some pseudo code:
Code: Select all
int nLineWithInPixel = 1000/OnePixelUnit();
if (nLineWidth < 4)
{
// do something
}
Is such a function already available or can anybody advise me how to compute this?
Thanks in advance!
Voxel