Method | Description | |
---|---|---|
Initialize ( GraphicsDeviceManager graphics, int deviceWidth, int deviceHeight, int virtualWidth, int virtualHeight, bool fullscreen ) : void |
Intialize the resolution independance
|
|
SetGameResolution ( int width, int height ) : void | ||
SetResolution ( int width, int height, bool fullscreen ) : void |
Change the resolution after initialization
|
Method | Description | |
---|---|---|
ApplyChanges ( ) : void | ||
CalculateViewport ( ) : void | ||
Invalidate ( ) : void |
public static Initialize ( GraphicsDeviceManager graphics, int deviceWidth, int deviceHeight, int virtualWidth, int virtualHeight, bool fullscreen ) : void | ||
graphics | GraphicsDeviceManager | |
deviceWidth | int | |
deviceHeight | int | |
virtualWidth | int | |
virtualHeight | int | |
fullscreen | bool | |
return | void |
public static SetGameResolution ( int width, int height ) : void | ||
width | int | |
height | int | |
return | void |
public static SetResolution ( int width, int height, bool fullscreen ) : void | ||
width | int | |
height | int | |
fullscreen | bool | |
return | void |