Class Global
Global variables used by the MonoGame host.
Inherited Members
Namespace: SadConsole.Host
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public static class Global
Properties
BlockSadConsoleInput
When true, prevents the keyboard and mouse logic from running.
Declaration
public static bool BlockSadConsoleInput { get; set; }
Property Value
Type | Description |
---|---|
bool |
GraphicsDevice
The graphics device created by MonoGame.
Declaration
public static GraphicsDevice GraphicsDevice { get; set; }
Property Value
Type | Description |
---|---|
GraphicsDevice |
GraphicsDeviceManager
The graphics device manager created by MonoGame.
Declaration
public static GraphicsDeviceManager GraphicsDeviceManager { get; set; }
Property Value
Type | Description |
---|---|
GraphicsDeviceManager |
RenderLoopGameTime
Reference to the game timer used in the MonoGame render loop.
Declaration
public static GameTime RenderLoopGameTime { get; }
Property Value
Type | Description |
---|---|
GameTime |
RenderOutput
The output texture. After each screen in SadConsole is drawn, they're then drawn on this output texture to compose the final scene.
Declaration
public static RenderTarget2D RenderOutput { get; set; }
Property Value
Type | Description |
---|---|
RenderTarget2D |
SharedSpriteBatch
A sprite batch used by all of SadConsole to render objects.
Declaration
public static SpriteBatch SharedSpriteBatch { get; set; }
Property Value
Type | Description |
---|---|
SpriteBatch |
UpdateLoopGameTime
Reference to the game timer used in the MonoGame update loop.
Declaration
public static GameTime UpdateLoopGameTime { get; }
Property Value
Type | Description |
---|---|
GameTime |
Methods
ResetGraphicsDevice()
Sets the GraphicsDevice render target to null, targeting the app window.
Declaration
public static void ResetGraphicsDevice()