|visits||member for||2 years, 10 months|
|seen||Jan 6 at 8:56|
|bio||website||martinandersson.com||visits||member for||2 years, 10 months|
|location||Gothenburg, Sweden||seen||Jan 6 at 8:56|
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.