//public static Form DragAndDropForm = new Form(); public static void Initialize(GraphicsDeviceManager GDM, ContentManager CM, SpriteBatch SB, GameWindow GW, Camera2D camera, Game game) { ConfigurePipelineMG(); graphics = GDM; Content = CM; GraphicsDevice = GDM.GraphicsDevice; spriteBatch = SB; GameWindow = GW; Camera = camera; Game = game; //DragAndDropForm.StartPosition = FormStartPosition.Manual; ////Recalculate these two upon any change to the game screen //DragAndDropForm.Location = new System.Drawing.Point(GameWindow.Position.X, GameWindow.Position.Y); //DragAndDropForm.Size = new System.Drawing.Size(graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight); //DragAndDropForm.TransparencyKey = System.Drawing.Color.Red; //DragAndDropForm.BackColor = System.Drawing.Color.Red; //DragAndDropForm.Show(); //DragAndDropForm.Visible = false; }
public Canvas(Camera2D camera) { Camera = camera; }