Martin Anderssonless info
|visits||member for||1 year, 6 months|
|seen||Aug 10 '12 at 10:11|
|bio||website||martinandersson.com||visits||member for||1 year, 6 months|
|location||Gothenburg, Sweden||seen||Aug 10 '12 at 10:11|
Positioning a sprite in XNA: Use ClientBounds or BackBuffer?
Thanx, although something bugs me. The docs say that the destinationrectangle is "a rectangle specifying, in screen coordinates, where the sprite will be drawn". The word screen is used. At another MSDN-page it is written like so: "Sprites are positioned on the screen by coordinates. The width and height of the screen is the same as the back buffer." The book XNA Game Studio 4.0 Programming do it like you and uses the viewport.