次の方法で共有


Effect Members

The following tables list the members exposed by the Effect type.

Public Constructors

Name Description
Public Method Effect Overloaded. Initializes a new instance of this class.

Public Properties

Name Description
Public Property Creator Gets the name of the effect creator.
Public Property CurrentTechnique Gets or sets the active technique.
Public Property EffectPool Gets an EffectPool representing the pool of shared parameters.
Public Property Functions Gets a collection of functions that can render the effect.
Public Property GraphicsDevice Gets the graphics device that created the effect.
Public Property IsDisposed Gets a value that indicates whether the object is disposed.
Public Property Parameters Gets a collection of parameters used for this effect.
Public Property Techniques Gets a collection of techniques that are defined for this effect.

Public Methods

Name Description
Public Method Begin Overloaded. Begins application of the active technique.
Public Method Clone Creates a clone of an effect.
Public Method CommitChanges Propagates the state change that occurs inside of an active pass to the device before rendering.
Public Method Static CompileEffectFromFile Overloaded. Compiles an effect from a file or stream containing the effect source code.
Public Method Static CompileEffectFromSource Compiles an effect from a string containing the effect source code.
Public Method Disassemble Overloaded. Disassembles an effect.
Public Method Dispose Overloaded. Immediately releases the unmanaged resources used by this object.
Public Method End Ends the application of the current technique.
Public Method Equals Overloaded. Gets a value that indicates whether the current instance is equal to a specified object.
Public Method GetHashCode Gets the hash code for this instance.
Public Method GetType (Inherited from Object.)
Public Method Static op_Equality Compares two objects to determine whether they are the same.
Public Method Static op_Inequality Compares two objects to determine whether they are different.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString Retrieves a string representation of this object.

Protected Methods

Name Description
Protected Method Finalize Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method raise_Disposing Raises the Disposing event when called from within a derived class.
Protected Method raise_Lost Raises an Lost event when called from within a derived class.
Protected Method raise_Reset Raises an Reset event when called from within a derived class.

Public Events

Name Description
Public Event Disposing Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime (CLR).
Public Event Lost Occurs when an object is lost, normally just before a device is reset.
Public Event Reset Occurs after the device is reset.

See Also

Reference

Effect Class
Microsoft.Xna.Framework.Graphics Namespace