SHOW:
|
|
- or go back to the newest paste.
| 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | <CodeSnippets | |
| 3 | xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| 4 | <CodeSnippet Format="1.0.0"> | |
| 5 | <Header> | |
| 6 | - | <Title>Sprite Batch</Title> |
| 6 | + | <Title>Overload draw</Title> |
| 7 | <Author>John Steel</Author> | |
| 8 | - | <Description>Inserts the default draw override stuff using the 6th draw overload.</Description> |
| 8 | + | <Description>Just a simple draw overload example.</Description> |
| 9 | - | <Shortcut>sb-d6</Shortcut> |
| 9 | + | <Shortcut>overdraw</Shortcut> |
| 10 | </Header> | |
| 11 | <Snippet> | |
| 12 | - | <Declarations> |
| 12 | + | |
| 13 | - | <Literal> |
| 13 | + | |
| 14 | - | <ID>sb</ID> |
| 14 | + | |
| 15 | - | <ToolTip>The spritebatch variable name.</ToolTip> |
| 15 | + | spritebatch.Begin(); |
| 16 | - | <Default>spritebatch</Default> |
| 16 | + | spritebatch.Draw(); |
| 17 | - | </Literal> |
| 17 | + | spritebatch.End(); |
| 18 | - | <Object> |
| 18 | + | |
| 19 | - | <ID>texture</ID> |
| 19 | + | |
| 20 | - | <Type>Microsoft.Xna.Framework.Graphics.Texture2D</Type> |
| 20 | + | |
| 21 | - | <ToolTip>texture: The texture.</ToolTip> |
| 21 | + | |
| 22 | - | <Default>texture</Default> |
| 22 | + | |
| 23 | - | </Object> |
| 23 | + | |
| 24 | - | <Object> |
| 24 | + |