Effect Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Used to set and query effects, and to choose techniques.
Inheritance Hierarchy
System.Object
Microsoft.Xna.Framework.Graphics.Effect
Microsoft.Xna.Framework.Graphics.AlphaTestEffect
Microsoft.Xna.Framework.Graphics.BasicEffect
Microsoft.Xna.Framework.Graphics.DualTextureEffect
Microsoft.Xna.Framework.Graphics.EnvironmentMapEffect
Microsoft.Xna.Framework.Graphics.SkinnedEffect
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)
Syntax
'Declaration
Public Class Effect
public class Effect
The Effect type exposes the following members.
Properties
Name | Description | |
---|---|---|
CurrentTechnique | Gets or sets the active technique. | |
IsDisposed | Gets a value that indicates whether the object is disposed. | |
Techniques | Gets a collection of techniques that are defined for this effect. |
Top
Methods
Name | Description | |
---|---|---|
Dispose() | Immediately releases the unmanaged resources used by this object. | |
Dispose(Boolean) | Releases the unmanaged resources used by the Effect and optionally releases the managed resources. | |
Finalize | Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. (Overrides Object.Finalize().) |
Top
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.