116 if (
value.Active && flag)
118 value.Opacity =
Math.
Min(
value.Opacity + (
float)
gameTime.ElapsedGameTime.TotalSeconds * 1f, 1f);
122 value.Opacity =
Math.
Max(
value.Opacity - (
float)
gameTime.ElapsedGameTime.TotalSeconds * 1f, 0f);
204 for (
int i = 0; i < 8; i++)
208 if (this.OnPostDraw !=
null)
216 return _activeFilters.Count != 0;
223 return this.OnPostDraw !=
null;
static readonly BlendState AlphaBlend
static readonly DepthStencilState Default
void Clear(ClearOptions options, Vector4 color, float depth, int stencil)
unsafe void SetRenderTarget(RenderTargetCube renderTarget, CubeMapFace cubeMapFace)
TextureCollection Textures
static readonly RasterizerState CullNone
static readonly SamplerState LinearClamp
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
static bool TryParse(Type enumType, string? value, out object? result)
static ? string GetName(Type enumType, object value)
static byte Min(byte val1, byte val2)
static byte Max(byte val1, byte val2)
void BeginCapture(RenderTarget2D screenTarget1, Color clearColor)
void BindTo(Preferences preferences)
void Update(GameTime gameTime)
void Configuration_OnLoad(Preferences preferences)
LinkedList< Filter > _activeFilters
void Configuration_OnSave(Preferences preferences)
void EndCapture(RenderTarget2D finalTexture, RenderTarget2D screenTarget1, RenderTarget2D screenTarget2, Color clearColor)
override void OnActivate(Filter effect, Vector2 position)
EffectPriority _priorityThreshold
static Microsoft.Xna.Framework.Color ColorOfTheSkies
static SpriteBatch spriteBatch
static SpriteViewMatrix GameViewMatrix
static Matrix Invert(Matrix matrix)