C# Class FlatRedBall.Graphics.EffectCache

Caches effects and effect parameters
Exibir arquivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
EffectParameterNames string[]

Public Methods

Method Description
EffectCache ( Effect effect, bool cacheShared ) : System

Caches an effect's parameters

GetTechnique ( Effect effect, string techniqueName ) : EffectTechnique

Gets the specified technique from the specified effect, or null if no technique by that name exists

UpdateCache ( ) : void

Recreates the cache

ValidateCache ( bool updateNow ) : bool

Validates the cached model/effect to make sure it hasn't changed

this ( Effect effect, string parameterName ) : EffectParameter

Gets a parameter in a specified effect

this ( EffectParameterNamesEnum name ) : List

Retrieves all parameters of one of the standard types

this ( string name ) : List

Gets a list of parameters of the specified name

Private Methods

Method Description
CacheEffect ( Effect effect ) : void

Adds an effect to the cache

EffectCache ( ) : System

Initializes parameter name strings

Method Details

EffectCache() public method

Caches an effect's parameters
public EffectCache ( Effect effect, bool cacheShared ) : System
effect Microsoft.Xna.Framework.Graphics.Effect The effect to cache
cacheShared bool Whether or not shared parameters should be cached
return System

GetTechnique() public method

Gets the specified technique from the specified effect, or null if no technique by that name exists
public GetTechnique ( Effect effect, string techniqueName ) : EffectTechnique
effect Microsoft.Xna.Framework.Graphics.Effect The effect
techniqueName string The name of the technique
return Microsoft.Xna.Framework.Graphics.EffectTechnique

UpdateCache() public method

Recreates the cache
public UpdateCache ( ) : void
return void

ValidateCache() public method

Validates the cached model/effect to make sure it hasn't changed
public ValidateCache ( bool updateNow ) : bool
updateNow bool Whether or not the cache should be updated if found invalid
return bool

this() public method

Gets a parameter in a specified effect
public this ( Effect effect, string parameterName ) : EffectParameter
effect Microsoft.Xna.Framework.Graphics.Effect The effect
parameterName string The parameter name
return Microsoft.Xna.Framework.Graphics.EffectParameter

this() public method

Retrieves all parameters of one of the standard types
public this ( EffectParameterNamesEnum name ) : List
name EffectParameterNamesEnum The name of the parameter
return List

this() public method

Gets a list of parameters of the specified name
public this ( string name ) : List
name string The name of the parameters to retrieve
return List

Property Details

EffectParameterNames public_oe static_oe property

public static string[] EffectParameterNames
return string[]