Esempio n. 1
0
 public static void DrawRect(this SpriteBatch spriteBatch, GraphicsDevice graphicsDevice, Rectangle rectangle, Color color)
 => DrawRect(spriteBatch, rectangle, Texture2DFactory.CreateSolid(graphicsDevice, rectangle.Right - rectangle.Left, rectangle.Bottom - rectangle.Top, color));
Esempio n. 2
0
 public static void DrawLine(this SpriteBatch spriteBatch, GraphicsDevice graphicsDevice, Vector2 start,
                             int length, float angle, Color color, int thickness, float layerDepth, Vector2 origin)
 => DrawRect(spriteBatch, start, thickness, length,
             Texture2DFactory.CreateSolid(graphicsDevice, thickness, length, color), Color.White, angle, origin,
             Vector2.One, SpriteEffects.None, layerDepth);
Esempio n. 3
0
 public static void DrawRect(this SpriteBatch spriteBatch, GraphicsDevice graphicsDevice, Vector2 position, int width, int height, Color color)
 => DrawRect(spriteBatch, position, width, height, Texture2DFactory.CreateSolid(graphicsDevice, width, height, color));