DefaultRenderTargetBackBufferUtilitiesΒΆ
Warning
This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the IRenderTargetBackBufferUtilities service via dependency injection to access this functionality.
Information documented here may not be up to date.
-
class
DefaultRenderTargetBackBufferUtilities
: System.Object, IRenderTargetBackBufferUtilities The default implementation of an T:Protogame.IRenderTargetBackBufferUtilities.
-
public RenderTarget2D
UpdateRenderTarget
(RenderTarget2D renderTarget, IGameContext gameContext) Parameters: - renderTarget (Microsoft.Xna.Framework.Graphics.RenderTarget2D) –
- gameContext (Protogame.IGameContext) –
-
public RenderTarget2D
UpdateCustomRenderTarget
(RenderTarget2D renderTarget, IGameContext gameContext, System.Nullable<SurfaceFormat> surfaceFormat, System.Nullable<DepthFormat> depthFormat, System.Nullable<Int32> multiSampleCount) Parameters: - renderTarget (Microsoft.Xna.Framework.Graphics.RenderTarget2D) –
- gameContext (Protogame.IGameContext) –
- surfaceFormat (System.Nullable<SurfaceFormat>) –
- depthFormat (System.Nullable<DepthFormat>) –
- multiSampleCount (System.Nullable<Int32>) –
-
public bool
IsRenderTargetOutOfDate
(RenderTarget2D renderTarget, IGameContext gameContext) Parameters: - renderTarget (Microsoft.Xna.Framework.Graphics.RenderTarget2D) –
- gameContext (Protogame.IGameContext) –
-
public bool
IsCustomRenderTargetOutOfDate
(RenderTarget2D renderTarget, IGameContext gameContext, System.Nullable<SurfaceFormat> surfaceFormat, System.Nullable<DepthFormat> depthFormat, System.Nullable<Int32> multiSampleCount) Parameters: - renderTarget (Microsoft.Xna.Framework.Graphics.RenderTarget2D) –
- gameContext (Protogame.IGameContext) –
- surfaceFormat (System.Nullable<SurfaceFormat>) –
- depthFormat (System.Nullable<DepthFormat>) –
- multiSampleCount (System.Nullable<Int32>) –
-
public RenderTarget2D