Global Class
Definition
Section titled “Definition”Global variables used by the MonoGame host.
public static class GlobalInheritance object
Properties
Section titled “Properties”BlockSadConsoleInput
Section titled “BlockSadConsoleInput”When true, prevents the keyboard and mouse logic from running.
public static bool BlockSadConsoleInput { get; set; }GraphicsDevice
Section titled “GraphicsDevice”The graphics device created by MonoGame.
public static GraphicsDevice GraphicsDevice { get; set; }SharedSpriteBatch
Section titled “SharedSpriteBatch”A sprite batch used by all of SadConsole to render objects.
public static SpriteBatch SharedSpriteBatch { get; set; }RenderOutput
Section titled “RenderOutput”The output texture. After each screen in SadConsole is drawn, they’re then drawn on this output texture to compose the final scene.
public static RenderTarget2D RenderOutput { get; set; }UpdateLoopGameTime
Section titled “UpdateLoopGameTime”Reference to the game timer used in the MonoGame update loop.
public static GameTime UpdateLoopGameTime { get; }RenderLoopGameTime
Section titled “RenderLoopGameTime”Reference to the game timer used in the MonoGame render loop.
public static GameTime RenderLoopGameTime { get; }RecreateRenderOutput
Section titled “RecreateRenderOutput”Regenerates the RenderOutput if the desired size doesn’t match the current size.
public static Global.RecreateRenderOutputDelegate RecreateRenderOutput { get; set; }ResizeGraphicsDeviceManager
Section titled “ResizeGraphicsDeviceManager”Resizes the GraphicsDeviceManager by the specified font size.
public static Global.ResizeGraphicsDeviceManagerDelegate ResizeGraphicsDeviceManager { get; set; }ResetRendering
Section titled “ResetRendering”Resets the RenderOutput target and determines the appropriate RenderRect and SadConsole.Settings.Rendering.RenderScale based on the window or fullscreen state.
public static Action ResetRendering { get; set; }SadConsoleComponent
Section titled “SadConsoleComponent”The game component to control SadConsole updates, input, and rendering.
public static SadConsoleGameComponent SadConsoleComponent { get; set; }GraphicsDeviceManager
Section titled “GraphicsDeviceManager”The graphics device manager created by MonoGame.
public static GraphicsDeviceManager GraphicsDeviceManager { get; set; }Methods
Section titled “Methods”ResetGraphicsDevice()
Section titled “ResetGraphicsDevice()”Sets the GraphicsDevice render target to null, targeting the app window.
public static void ResetGraphicsDevice()ResizeGraphicsDeviceManagerHandler(Point, int, int, int, int)
Section titled “ResizeGraphicsDeviceManagerHandler(Point, int, int, int, int)”Resizes the GraphicsDeviceManager by the specified font size.
public static void ResizeGraphicsDeviceManagerHandler(Point fontSize, int width, int height, int additionalWidth, int additionalHeight)Parameters
Section titled “Parameters”fontSize Microsoft.Xna.Framework.Point
The size of the font to base the final values on.
width int
The count of glyphs along the X-axis.
height int
The count of glyphs along the Y-axis.
additionalWidth int
Additional pixel width to add to the resize.
additionalHeight int
Additional pixel height to add to the resize.
RecreateRenderOutputHandler(int, int)
Section titled “RecreateRenderOutputHandler(int, int)”Regenerates the RenderOutput if the desired size doesn’t match the current size.
public static void RecreateRenderOutputHandler(int width, int height)Parameters
Section titled “Parameters”width int
The width of the render output.
height int
The height of the render output.
ResetRenderingHandler()
Section titled “ResetRenderingHandler()”Resets the RenderOutput target and determines the appropriate RenderRect and SadConsole.Settings.Rendering.RenderScale based on the window or fullscreen state.
public static void ResetRenderingHandler()