Ejemplo n.º 1
0
 static GameBase()
 {
     _Instance = null;
     EnableDepthBuffer = false;
     ShowFpsType = ShowFpsTypeEnum.f000028;
     _IsFullScreen = false;
     f000057 = true;
 }
Ejemplo n.º 2
0
 public GameBase()
 {
     if (_Instance == null)
     {
         _Instance = this;
     }
     this.gdm = new GraphicsDeviceManager(this);
     this.gdm.PreferredBackBufferWidth = 0x550;//1360
     this.gdm.PreferredBackBufferHeight = 0x300;//768
     this.m000003();
     base.IsFixedTimeStep = false;
     this.f00005b = new List<c000031>();
     if (!_IsFullScreen)
     {
         this.gdm.ToggleFullScreen();
     }
     SystemEvents.SessionEnding += new SessionEndingEventHandler(this.m00006d);
     if (EnableDepthBuffer)
     {
         this.gdm.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(this.m00006c);
     }
 }