Ejemplo n.º 1
0
        //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;
        }
Ejemplo n.º 2
0
 public Canvas(Camera2D camera)
 {
     Camera = camera;
 }