C# 클래스 FlatRedBall.Graphics.EffectCache

Caches effects and effect parameters
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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[]