public void Draw(Texture2D texture, Rectangle area, InteropColor color) { if (_bitmapDictionary.TryGetValue(texture.Path, out var bitmap)) { Session?.DrawImage(bitmap, area.ToRect()); } }
public void DrawString(SpriteFont fpsFont, string fps, Vector2 point, InteropColor color) { Session?.DrawText(fps, point, color.ToColor()); }