예제 #1
0
        public Game1()
            : base()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            G = new MainClasses.GlobalValues();
            Init = new MainClasses.Initialize(G);
            LoadCont = new MainClasses.LoadContent(G);
            Updating = new MainClasses.Update(G);
            Drawing = new MainClasses.Draw(G);

            //OpenTK.GameWindow abc=OpenTK.GameWindow;
            //Type type = typeof(OpenTKGameWindow);
            //System.Reflection.FieldInfo field = type.GetField("window", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);

            //   abc=field.GetValue(this.Game) as OpenTK.GameWindow;

            //graphics.PreferredBackBufferWidth = 1900;
            //graphics.PreferredBackBufferHeight = 1000;
            graphics.IsFullScreen = true;
            graphics.ApplyChanges();

            //Sets position of the window
        }
예제 #2
0
 public LoadContent(GlobalValues G)
 {
     // TODO: Complete member initialization
     this.G = G;
 }
예제 #3
0
 public Update(GlobalValues G)
 {
     // TODO: Complete member initialization
     this.G = G;
 }