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