public class Effect extends GraphicsResource
Modifier and Type | Field and Description |
---|---|
EffectTechnique |
CurrentTechnique
Gets or sets the active technique.
|
_parent, Disposing, Name, Tag
Modifier | Constructor and Description |
---|---|
protected |
Effect(Effect cloneSource)
Creates an instance of this object.
|
|
Effect(GraphicsDevice graphicsDevice,
byte[] byteCode)
Creates an instance of this object.
|
Modifier and Type | Method and Description |
---|---|
Effect |
Clone()
Copies data from an existing object to this object.
|
protected void |
Dispose(boolean disposing)
Releases the unmanaged resources used by the Effect and optionally releases the managed resources.
|
EffectParameterCollection |
getParameters()
Gets a collection of parameters used for this effect.
|
EffectTechniqueCollection |
getTechniques()
Gets a collection of techniques that are defined for this effect.
|
protected void |
OnApply()
Applies the effect state just prior to rendering the effect.
|
Dispose, finalize, getGraphicsDevice, IsDisposed, raise_disposing, toString
public EffectTechnique CurrentTechnique
protected Effect(Effect cloneSource)
cloneSource
- An object to copy.public Effect(GraphicsDevice graphicsDevice, byte[] byteCode)
graphicsDevice
- The device.byteCode
- The effect code.public EffectParameterCollection getParameters()
public EffectTechniqueCollection getTechniques()
protected void Dispose(boolean disposing)
Dispose
in class GraphicsResource
protected void OnApply()
public Effect Clone()