Hello Benjamin,
thanks for your quick anwser.
Well, I didnt get it.
I thought the DE uses two spaces. The one is used for rendering on screen (with pixel coordinates)
The other is used for example for calculating collision (in relative size to screen between 0 and 1. 1,1 is 100% and means the right bottom corner).
Thats what I d like to use in my current wp7 project too, to be easily able to switch in future to DE (and for perfomance reason too ;-) )
but I am confused what I have to use to calculate from screenspace (0.2f,0.2f) to pixelspace (800*0.2f, 480*0.2f) ??
Thanks in advance
Edit: you said, preferedbackbuffer is my pixelspace. So I calculate (0.2f * PreferredBackBufferWidth, 0.2f * PreferredBackBufferHeight) right?
What about rounding differences due to integer float?
Thanks
Edited by user Thursday, January 12, 2012 3:43:07 PM(UTC)
| Reason: Not specified