Skip to main content

Timeline for Position vs Destination Rectangle

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
Feb 19, 2017 at 11:25 comment added Felsir In the overload that takes both vector2 and rectangle, the rectangle is the source rectangle. It means the sprite will be draw only using that section from the Texture.
Feb 19, 2017 at 10:55 vote accept Alexandre Laframboise
Feb 19, 2017 at 10:55 comment added Alexandre Laframboise Thanks for the info. I noticed that the 8th overload in SpriteBatch.Draw() includes both a Vector2 and a DestinationRectangle for the same purpose--to display the position. Does that mean I must set either one of them to null?
Feb 19, 2017 at 9:17 history answered Felsir CC BY-SA 3.0