mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
make MlemGame.cs use some more sensible defaults
This commit is contained in:
parent
3f36093957
commit
64749c31ce
1 changed files with 5 additions and 4 deletions
|
@ -21,15 +21,16 @@ namespace MLEM.Startup {
|
||||||
public TimeCallback OnUpdate;
|
public TimeCallback OnUpdate;
|
||||||
public TimeCallback OnDraw;
|
public TimeCallback OnDraw;
|
||||||
|
|
||||||
public MlemGame(int windowWidth = 1280, int windowHeight = 720, bool vsync = false, bool allowResizing = true, string contentDir = "Content") {
|
public MlemGame(int windowWidth = 1280, int windowHeight = 720) {
|
||||||
instance = this;
|
instance = this;
|
||||||
|
|
||||||
this.GraphicsDeviceManager = new GraphicsDeviceManager(this) {
|
this.GraphicsDeviceManager = new GraphicsDeviceManager(this) {
|
||||||
PreferredBackBufferWidth = windowWidth,
|
PreferredBackBufferWidth = windowWidth,
|
||||||
PreferredBackBufferHeight = windowHeight,
|
PreferredBackBufferHeight = windowHeight,
|
||||||
SynchronizeWithVerticalRetrace = vsync
|
HardwareModeSwitch = false
|
||||||
};
|
};
|
||||||
this.Content.RootDirectory = contentDir;
|
this.Window.AllowUserResizing = true;
|
||||||
this.Window.AllowUserResizing = allowResizing;
|
this.Content.RootDirectory = "Content";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadContent() {
|
protected override void LoadContent() {
|
||||||
|
|
Loading…
Reference in a new issue