Beispiel #1
0
 Vector2 VToScreenV2(IntVector v)
 {
     return(new Vector2(
                v.X / 1024f * graphics.PreferredBackBufferWidth,
                v.Y / 1024f * graphics.PreferredBackBufferHeight));
 }
Beispiel #2
0
        void DrawPoint(IntVector point, Color color, float width = 10)
        {
            var pos = VToScreenV2(point);

            DrawPoint(pos, color, width);
        }