/// <summary> /// Constructor /// </summary> public TTGame() { Instance = this; // XNA related init that needs to be in constructor (or at least before Initialize()) GraphicsMgr = new GraphicsDeviceManager(this); IsFixedTimeStep = false; // handle own fixed timesteps in Update() code Content.RootDirectory = "Content"; #if DEBUG IsProfiling = true; GraphicsMgr.SynchronizeWithVerticalRetrace = false; // FPS: as fast as possible #else IsProfiling = false; GraphicsMgr.SynchronizeWithVerticalRetrace = true; #endif int myWindowWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width; int myWindowHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; GraphicsMgr.PreferredBackBufferWidth = myWindowWidth; GraphicsMgr.PreferredBackBufferHeight = myWindowHeight; GraphicsMgr.IsFullScreen = false; Window.IsBorderless = true; }
static TTFactory() { _game = TTGame.Instance; }