DefaultGraphicsBlit¶
Warning
This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the IGraphicsBlit service via dependency injection to access this functionality.
Information documented here may not be up to date.
-
class
DefaultGraphicsBlit
: System.Object, IGraphicsBlit A default implementation of T:Protogame.IGraphicsBlit.
-
public void
BlitMRT
(IRenderContext renderContext, Texture2D source, Microsoft.Xna.Framework.Graphics.RenderTarget2D[] destinations, Protogame.IEffect shader, Protogame.IEffectParameterSet effectParameterSet, BlendState blendState, System.Nullable<Vector2> offset, System.Nullable<Vector2> size) Parameters: - renderContext (Protogame.IRenderContext) –
- source (Microsoft.Xna.Framework.Graphics.Texture2D) –
- destinations (Microsoft.Xna.Framework.Graphics.RenderTarget2D[]) –
- shader (Protogame.IEffect) –
- effectParameterSet (Protogame.IEffectParameterSet) –
- blendState (Microsoft.Xna.Framework.Graphics.BlendState) –
- offset (System.Nullable<Vector2>) –
- size (System.Nullable<Vector2>) –
-
public void
Blit
(IRenderContext renderContext, Texture2D source, RenderTarget2D destination, Protogame.IEffect shader, Protogame.IEffectParameterSet effectParameterSet, BlendState blendState, System.Nullable<Vector2> offset, System.Nullable<Vector2> size) Parameters: - renderContext (Protogame.IRenderContext) –
- source (Microsoft.Xna.Framework.Graphics.Texture2D) –
- destination (Microsoft.Xna.Framework.Graphics.RenderTarget2D) –
- shader (Protogame.IEffect) –
- effectParameterSet (Protogame.IEffectParameterSet) –
- blendState (Microsoft.Xna.Framework.Graphics.BlendState) –
- offset (System.Nullable<Vector2>) –
- size (System.Nullable<Vector2>) –
-
public void