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