|visits||member for||2 years, 6 months|
|seen||Feb 5 at 19:31|
|bio||website||martinandersson.com||visits||member for||2 years, 6 months|
|location||Gothenburg, Sweden||seen||Feb 5 at 19:31|
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.