C# Class FlatRedBall.Graphics.EffectCache

Caches effects and effect parameters
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Свойство Type Description
EffectParameterNames string[]

Méthodes publiques

Méthode 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

Méthode Description
CacheEffect ( Effect effect ) : void

Adds an effect to the cache

EffectCache ( ) : System

Initializes parameter name strings

Method Details

EffectCache() public méthode

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
Résultat System

GetTechnique() public méthode

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
Résultat Microsoft.Xna.Framework.Graphics.EffectTechnique

UpdateCache() public méthode

Recreates the cache
public UpdateCache ( ) : void
Résultat void

ValidateCache() public méthode

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
Résultat bool

this() public méthode

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
Résultat Microsoft.Xna.Framework.Graphics.EffectParameter

this() public méthode

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

this() public méthode

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

Property Details

EffectParameterNames public_oe static_oe property

public static string[] EffectParameterNames
Résultat string[]