Skip to content

9B08EC0F

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

InvalidationService Methods

Methods

AddDefaultComponents Add all default (integrated) GameComponent's to the GameComponentCollection. These are basically a ICamera2D and a FPSCounter components.

Remarks

If you want to add your own ones, call Components.Add(); from your custom MonoGame.Forms.Control.
(Inherited from EditorService)

BeginAntialising Everything between BeginAntialising() and EndAntialising() will be affected by MSAA.
(Inherited from EditorService)
BeginCamera2D Use 'BeginCamera2D' as a replacement of SpriteBatch.Begin(SpriteSortMode, BlendState, SamplerState, DepthStencilState, RasterizerState, Effect, Matrix?).

Remarks

Automatically uses the Matrix of the Camera2D component!
(Inherited from EditorService)

BeginRenderTarget Everything between BeginRenderTarget() and EndRenderTarget() will be drawn to the RenderTarget2D.
(Inherited from EditorService)
CamMove Move the camera by the value defined in the parameter amount.
(Inherited from EditorService)
CamRotate Rotate the camera component.
(Inherited from EditorService)
CamZoom Zoom the camera component.
(Inherited from EditorService)
DisableRenderTargets Disable all custom RenderTarget2D's hold by the EditorService.RenderTargetManager, before they becoming reactivated after 500 milliseconds.
(Inherited from EditorService)
Dispose Disposes the contents of this service.
(Inherited from EditorService)
EndAntialising Everything between BeginAntialising() and EndAntialising() will be affected by MSAA.
(Inherited from EditorService)
EndCamera2D Use this to end the SpriteBatch, previously opened by BeginCamera2D(SpriteSortMode, BlendState, SamplerState, DepthStencilState, RasterizerState, Effect).
(Inherited from EditorService)
EndRenderTarget Everything between BeginRenderTarget() and EndRenderTarget() will be drawn to the RenderTarget2D.
(Inherited from EditorService)
GetCamRotation Get the current camera rotation.
(Inherited from EditorService)
GetCamZoom Get the current camera zoom.
(Inherited from EditorService)
RemoveAllComponents Remove all GameComponent from the GameComponentCollection. This also counts for your own ones!

Remarks

If you only want to remove your own ones, call Components.Remove(); from your custom MonoGame.Forms.Control.
(Inherited from EditorService)

RemoveDefaultComponents Remove all default (integrated) GameComponent's from the GameComponentCollection. These are basically a ICamera2D and a FPSCounter components.

Remarks

If you want to add your own ones, call Components.Add(); from your custom MonoGame.Forms.Control.
(Inherited from EditorService)

ResetCam Resets all or specific values from the camera component to their defaults.
(Inherited from EditorService)
ResourceContentManagerInitialize Initializes a custom ResourceContentManager.
(Inherited from EditorService)

See Also

Reference

InvalidationService Class
MonoGame.Forms.NET.Services Namespace

Clone this wiki locally