Property | Type | Description | |
---|---|---|---|
ClearFrameColor | Color | ||
ConsoleRenderStack | |||
MonoGameInstance | |||
Random | |||
UnlimitedFPS | bool |
Method | Description | |
---|---|---|
Draw ( GameTime gameTime ) : void | ||
Initialize ( GraphicsDevice device, string font, int consoleWidth, int consoleHeight ) : |
Initializes SadConsole with only a GraphicsDevice.
|
|
Initialize ( GraphicsDeviceManager deviceManager, string font, int consoleWidth, int consoleHeight ) : |
Prepares the engine for use. This must be the first method you call on the engine when you provide your own GraphicsDeviceManager.
|
|
Initialize ( string font, int consoleWidth, int consoleHeight, Action |
Prepares the engine for use. This must be the first method you call on the engine, then call Run to start SadConsole.
|
|
ResetRendering ( ) : void |
Resets the render target and render rect to the size of the WindowWidth and WindowHeight.
|
|
RestoreRenderTarget ( ) : void |
Only call this if you steal away the render target during the render process.
|
|
Run ( ) : void | ||
ToggleFullScreen ( ) : void |
Toggles between fullscreen. This safely restores the original window size.
|
|
Update ( GameTime gameTime, bool windowIsActive ) : void |
Method | Description | |
---|---|---|
InitializeCompleted ( ) : void |
public static Draw ( GameTime gameTime ) : void | ||
gameTime | GameTime | |
return | void |
public static Initialize ( GraphicsDevice device, string font, int consoleWidth, int consoleHeight ) : |
||
device | GraphicsDevice | |
font | string | The font to load as the |
consoleWidth | int | The width of the default root console (and game window). |
consoleHeight | int | The height of the default root console (and game window). |
return |
public static Initialize ( GraphicsDeviceManager deviceManager, string font, int consoleWidth, int consoleHeight ) : |
||
deviceManager | GraphicsDeviceManager | The graphics device manager from MonoGame. |
font | string | The font to load as the |
consoleWidth | int | The width of the default root console (and game window). |
consoleHeight | int | The height of the default root console (and game window). |
return |
public static Initialize ( string font, int consoleWidth, int consoleHeight, Action |
||
font | string | The font to load as the |
consoleWidth | int | The width of the default root console (and game window). |
consoleHeight | int | The height of the default root console (and game window). |
ctorCallback | Action |
Optional callback from the MonoGame Game class constructor. |
return | void |
public static Update ( GameTime gameTime, bool windowIsActive ) : void | ||
gameTime | GameTime | |
windowIsActive | bool | |
return | void |
public static ConsoleList,SadConsole.Consoles ConsoleRenderStack | ||
return |
public static SadConsoleGame,SadConsole MonoGameInstance | ||
return |