Skip to content

569B3112

Marcel Härtel edited this page Aug 19, 2023 · 1 revision

GameControl Methods

Methods

Dispose
(Inherited from GraphicsDeviceControl)
IsMouseInsideControlArea Returns true when the mouse cursor is inside the specific area.
(Inherited from GraphicsDeviceControl)
OnClientSizeChanged
(Inherited from GraphicsDeviceControl)
OnCreateControl
(Inherited from GraphicsDeviceControl)
OnMouseEnter
(Inherited from GraphicsDeviceControl)
OnMouseLeave
(Inherited from GraphicsDeviceControl)
OnMouseWheel
(Inherited from GraphicsDeviceControl)
OnPaint
(Inherited from GraphicsDeviceControl)
OnPaintBackground
(Inherited from GraphicsDeviceControl)
PaintUsingSystemDrawing
(Inherited from GraphicsDeviceControl)
RunFrames Run a specific amount of frames before the game loop falls to sleep again. The bool MouseHoverUpdatesOnly must be set to 'true' before.

Remarks

This could be helpful if some update mechanics are needing longer to update but doesn't need to run continuously afterwards.

RunOneFrame Runs exactly one frame by internally calling 'Invalidate();' one single time. This will run the game loop only once and immediately shows the result.
SetMultiSampleCount Set the "MultiSampleCount" for Multi Sampled AntiAlising (MSAA). The input value will be automatically clamped to the nearest power of two in relation of what the users GraphicsDevice can handle.
(Inherited from GraphicsDeviceControl)

See Also

Reference

GameControl Class
MonoGame.Forms.NET.Controls Namespace

Clone this wiki locally