-
Notifications
You must be signed in to change notification settings - Fork 27
A414AB4E
Marcel Härtel edited this page Aug 27, 2023
·
2 revisions
Use 'BeginCamera2D' as a replacement of SpriteBatch.Begin(SpriteSortMode, BlendState, SamplerState, DepthStencilState, RasterizerState, Effect, Matrix?).
Automatically uses the Matrix of the Camera2D component!
Namespace: MonoGame.Forms.NET.Services
Assembly: MonoGame.Forms.NET (in MonoGame.Forms.NET.dll) Version: 3.2.0
C#
public void BeginCamera2D(
SpriteSortMode sortMode = SpriteSortMode.Deferred,
BlendState? blendState = null,
SamplerState? samplerState = null,
DepthStencilState? depthStencilState = null,
RasterizerState? rasterizerState = null,
Effect? effect = null
)
- SpriteSortMode (Optional)
- Defines sprite sort rendering options.
- BlendState (Optional)
- The blend state.
- SamplerState (Optional)
- The sampler state.
- DepthStencilState (Optional)
- The depth stencil state.
- RasterizerState (Optional)
- The rasterizer state.
- Effect (Optional)
- The effect.
-
Welcome to MonoGame.Forms!
- MonoGame.Forms.NET Namespace
- MonoGame.Forms.NET.Components Namespace
- MonoGame.Forms.NET.Components.Interfaces Namespace
-
MonoGame.Forms.NET.Controls Namespace
- GameControl Class
- GraphicsDeviceControl Class
- GraphicsDeviceControl.MouseWheelDownwardsEvent Delegate
- GraphicsDeviceControl.MouseWheelUpwardsEvent Delegate
- InvalidationControl Class
- MonoGameControl Class
-
MonoGame.Forms.NET.Services Namespace
-
EditorService Class
- EditorService Constructor
-
EditorService Properties
- BackgroundColor Property
- Camera Property
- Content Property
- Font Property
- FontHeight Property
- FPSCounter Property
- GetAbsoluteMousePosition Property
- GetCurrentMultiSampleCount Property
- GetRelativeMousePosition Property
- GetRenderTargetManager Property
- GraphicsDevice Property
- Pixel Property
- ResourceContent Property
- spriteBatch Property
- SwapChainRenderTarget Property
-
EditorService Methods
- AddDefaultComponents Method
- BeginAntialising Method
- BeginCamera2D Method
- BeginRenderTarget Method
- CamMove Method
- CamRotate Method
- CamZoom Method
- DisableRenderTargets Method
- Dispose Method
- EndAntialising Method
- EndCamera2D Method
- EndRenderTarget Method
- GetCamRotation Method
- GetCamZoom Method
- RemoveAllComponents Method
- RemoveDefaultComponents Method
- ResetCam Method
- ResourceContentManagerInitialize Method
- EditorService Events
- EditorService.RenderTargetManager Class
- EditorService.RenderTargetManager.RenderTarget2DHelper Class
- InvalidationService Class
- MonoGameService Class
-
EditorService Class