C# Class Microsoft.Xna.Framework.Graphics.SpriteEffect

The default effect used by SpriteBatch.
Inheritance: Effect
Datei anzeigen Open project: procfxgen/MGShaderEditor Class Usage Examples

Public Methods

Method Description
Clone ( ) : Effect

Creates a clone of the current SpriteEffect instance.

SpriteEffect ( GraphicsDevice device )

Creates a new SpriteEffect.

Protected Methods

Method Description
OnApply ( ) : bool

Lazily computes derived parameter values immediately before applying the effect.

SpriteEffect ( SpriteEffect cloneSource )

Creates a new SpriteEffect by cloning parameter settings from an existing instance.

Private Methods

Method Description
CacheEffectParameters ( ) : void

Looks up shortcut references to our effect parameters.

Method Details

Clone() public method

Creates a clone of the current SpriteEffect instance.
public Clone ( ) : Effect
return Effect

OnApply() protected method

Lazily computes derived parameter values immediately before applying the effect.
protected OnApply ( ) : bool
return bool

SpriteEffect() public method

Creates a new SpriteEffect.
public SpriteEffect ( GraphicsDevice device )
device GraphicsDevice

SpriteEffect() protected method

Creates a new SpriteEffect by cloning parameter settings from an existing instance.
protected SpriteEffect ( SpriteEffect cloneSource )
cloneSource SpriteEffect