Esempio n. 1
0
        static public void DrawBoxFrame(Rectangle rectangle, Color colorBorder, Color colorFill, int frameSize)
        {
            spriteBatch.Draw(EngineContent.GetTextureByName("white"), rectangle, colorBorder);
            Rectangle rect = new Rectangle(rectangle.X + frameSize, rectangle.Y + frameSize,
                                           rectangle.Width - frameSize * 2, rectangle.Height - frameSize * 2);

            spriteBatch.Draw(EngineContent.GetTextureByName("white"), rect, colorFill);
        }
Esempio n. 2
0
 static public void DrawSprite(Rectangle rectangle, Color color)
 {
     spriteBatch.Draw(EngineContent.GetTextureByName("white"), rectangle, color);
 }
Esempio n. 3
0
 static public void DrawAlphaSprite(Rectangle rectangle, Color color, byte transparency)
 {
     color.A = transparency;
     spriteBatch.Draw(EngineContent.GetTextureByName("white"), rectangle, color);
 }