Exemple #1
0
 public void Draw2()
 {
     if (existe)
     {
         Rectangle destRect = Camera.ComputePixelRectangle(mPosition, mSize);
         Game1.sSpriteBatch.Draw(mImage, destRect, Color.White);
     }
 }
Exemple #2
0
        /// <summary>
        /// Draw the primitive
        /// </summary>
        public void Draw()
        {
            // Defines location and size of the texture
            //Rectangle destRect = new Rectangle((int)mPosition.X, (int)mPosition.Y, (int)mSize.X, (int)mSize.Y);
            Rectangle destRect = Camera.ComputePixelRectangle(mPosition, mSize);

            Game1.sSpriteBatch.Draw(mImage, destRect, Color.White);
        }