/// <summary>Requests to draw the given path at the given atlas location.</summary> public static void RequestDraw(AtlasLocation location, VectorPath path, float offsetX, float offsetY, float drawHeight) { DrawingTexture drawing = new DrawingTexture(); drawing.Location = location; drawing.Path = path; drawing.OffsetX = offsetX; drawing.OffsetY = offsetY; if (Camera == null) { Camera = new TextureCamera(CPUCopyMode); // Apply scale: Scale = drawHeight * Camera.WorldPerPixel.x; } if (Camera.IsDrawing || !Camera.TryFit(drawing)) { // Add to global pending queue: drawing.NextDrawing = Pending; Pending = drawing; } }