tModLoader v2024.05
A mod to make and play Terraria mods
Filter Class Reference

Inherits GameEffect.

Public Member Functions

 Filter (ScreenShaderData shader, EffectPriority priority=EffectPriority.VeryLow)
 
override void Activate (Vector2 position, params object[] args)
 
void Apply ()
 
override void Deactivate (params object[] args)
 
ScreenShaderData GetShader ()
 
bool IsActive ()
 
bool IsInUse ()
 
override bool IsVisible ()
 
void Update (GameTime gameTime)
 
- Public Member Functions inherited from GameEffect
abstract void Activate (Vector2 position, params object[] args)
 
abstract void Deactivate (params object[] args)
 
abstract bool IsVisible ()
 
void Load ()
 
virtual void OnLoad ()
 

Public Attributes

bool Active
 
bool IsHidden
 
- Public Attributes inherited from GameEffect
float Opacity
 

Additional Inherited Members

- Protected Attributes inherited from GameEffect
bool _isLoaded
 
EffectPriority _priority
 
- Properties inherited from GameEffect
bool IsLoaded [get]
 
EffectPriority Priority [get]
 

Member Function Documentation

◆ Activate()

override void Filter.Activate ( Vector2  position,
params object[]  args 
)
virtual

Implements GameEffect.

◆ Deactivate()

override void Filter.Deactivate ( params object[]  args)
virtual

Implements GameEffect.

◆ IsVisible()

override bool Filter.IsVisible ( )
virtual

Implements GameEffect.