C# Класс FlatRedBall.Graphics.EffectCache

Caches effects and effect parameters
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
EffectParameterNames string[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CacheEffect ( Effect effect ) : void

Adds an effect to the cache

EffectCache ( ) : System

Initializes parameter name strings

Описание методов

EffectCache() публичный Метод

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
Результат System

GetTechnique() публичный Метод

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
Результат Microsoft.Xna.Framework.Graphics.EffectTechnique

UpdateCache() публичный Метод

Recreates the cache
public UpdateCache ( ) : void
Результат void

ValidateCache() публичный Метод

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
Результат bool

this() публичный Метод

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
Результат Microsoft.Xna.Framework.Graphics.EffectParameter

this() публичный Метод

Retrieves all parameters of one of the standard types
public this ( EffectParameterNamesEnum name ) : List
name EffectParameterNamesEnum The name of the parameter
Результат List

this() публичный Метод

Gets a list of parameters of the specified name
public this ( string name ) : List
name string The name of the parameters to retrieve
Результат List

Описание свойств

EffectParameterNames публичное статическое свойство

public static string[] EffectParameterNames
Результат string[]