C# Class MoodSwingCoreComponents.MSResolution

Show file Open project: verngutz/MoodSwing

Public Methods

Method Description
BeginDraw ( ) : void

Sets the device to use the draw pump Sets correct aspect ratio

FullViewport ( ) : void
GetTransformationMatrix ( ) : Matrix
GetVirtualAspectRatio ( ) : float

Get virtual Mode Aspect Ratio

Init ( GraphicsDeviceManager &device ) : void
ResetViewport ( ) : void
SetResolution ( int new_width, int new_height ) : void
SetResolution ( int new_width, int new_height, bool fullScreen ) : void
SetVirtualResolution ( int Width, int Height ) : void

Private Methods

Method Description
ApplyResolutionSettings ( ) : void
RecreateScaleMatrix ( ) : void

Method Details

BeginDraw() public static method

Sets the device to use the draw pump Sets correct aspect ratio
public static BeginDraw ( ) : void
return void

FullViewport() public static method

public static FullViewport ( ) : void
return void

GetTransformationMatrix() public static method

public static GetTransformationMatrix ( ) : Matrix
return Matrix

GetVirtualAspectRatio() public static method

Get virtual Mode Aspect Ratio
public static GetVirtualAspectRatio ( ) : float
return float

Init() public static method

public static Init ( GraphicsDeviceManager &device ) : void
device GraphicsDeviceManager
return void

ResetViewport() public static method

public static ResetViewport ( ) : void
return void

SetResolution() public static method

public static SetResolution ( int new_width, int new_height ) : void
new_width int
new_height int
return void

SetResolution() public static method

public static SetResolution ( int new_width, int new_height, bool fullScreen ) : void
new_width int
new_height int
fullScreen bool
return void

SetVirtualResolution() public static method

public static SetVirtualResolution ( int Width, int Height ) : void
Width int
Height int
return void