public void FillRectangleRot(FPoint center, FSize size, Color color, float rotation) { #if DEBUG IncRenderSpriteCount(); #endif internalBatch.Draw( StaticTextures.SinglePixel.Texture, center.ToVec2D(), StaticTextures.SinglePixel.Bounds, color, rotation, StaticTextures.SinglePixel.VecCenter(), size.ToVec2D(), SpriteEffects.None, 0); }
public void FillRectangle(FPoint location, FSize size, Color color) { #if DEBUG IncRenderSpriteCount(); #endif internalBatch.Draw( StaticTextures.SinglePixel.Texture, location.ToVec2D(), StaticTextures.SinglePixel.Bounds, color, 0, Vector2.Zero, size.ToVec2D(), SpriteEffects.None, 0); }