WindowsGame1.Sprite.Draw C# (CSharp) 메소드

Draw() 공개 메소드

public Draw ( SpriteBatch theSpriteBatch ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void
        public void Draw(SpriteBatch theSpriteBatch)
        {
            theSpriteBatch.Draw(tex, pos,
                new Rectangle(0, 0, tex.Width, tex.Height),
                Color.White, 0.0f, Vector2.Zero, Scale, SpriteEffects.None, 0);
        }

Usage Example

예제 #1
0
파일: SpriteTest.cs 프로젝트: aslone/Team18
 public void DrawTest()
 {
     Sprite target = new Sprite(); // TODO: Initialize to an appropriate value
     SpriteBatch theSpriteBatch = null; // TODO: Initialize to an appropriate value
     target.Draw(theSpriteBatch);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }