C# 클래스 FlatRedBall.Graphics.GenericEffect

상속: IEffectFog, IEffectLights, IEffectMatrices, IDisposable
파일 보기 프로젝트 열기: vchelaru/FlatRedBall

공개 메소드들

메소드 설명
BuildEffect ( ) : Effect

Builds the precedence table, determines the effect

Dispose ( ) : void

Destroy this object

EnableDefaultLighting ( ) : void

Needs to be implemented by the IEffectLight child

GenericEffect ( DefaultShaderType type ) : System
GenericEffect ( Effect effectToAssimilate ) : System
GetCurrentTechnique ( bool ShouldSetParameters ) : EffectTechnique

Get the current technique

GetEffect ( bool ShouldSetParameters ) : Effect

Gets the internal effect

GetEffectTechnique ( string TechniqueName, bool ShouldSetParameters ) : EffectTechnique

Returns a technique based on the index provided. Will set the parameters for this effect;

SetCurrentTechnique ( string TechniqueName ) : void

Sets the current technique to the one named.

SetPrecendenceValues ( float basicPrecedence, float dualTexturePrecedence, float environmentPredecence, float skinningPrecedence ) : void
SetTextureAddressModeNoCall ( TextureAddressMode textureAddressMode ) : void

보호된 메소드들

메소드 설명
GenericEffect ( ) : System

Constructor

비공개 메소드들

메소드 설명
DetermineEffect ( bool createNewEffect ) : DefaultShaderType

Determine's which of the four shaders this instance will use

DetermineEffect ( bool createNewEffect, Effect effectToTest ) : DefaultShaderType
GetActiveEffect ( ) : Effect
SetAlphaTestEffectParameters ( ) : void
SetBasicEffectParameters ( ) : void

Set the parameters for Basic Shader

SetCommonParameters ( ) : void

Pass common information to the graphics device

SetDualTextureEffectParameters ( ) : void

Sets the parameters for the dual texture effect

SetEffectParameters ( Effect effect ) : void
SetEnvironmentMapEffectParameters ( ) : void

Sets the parameters for the environment map effect

SetSkinningEffectParameters ( ) : void

Sets the parameters for the skinned effect

메소드 상세

BuildEffect() 공개 메소드

Builds the precedence table, determines the effect
public BuildEffect ( ) : Effect
리턴 Effect

Dispose() 공개 메소드

Destroy this object
public Dispose ( ) : void
리턴 void

EnableDefaultLighting() 공개 메소드

Needs to be implemented by the IEffectLight child
public EnableDefaultLighting ( ) : void
리턴 void

GenericEffect() 보호된 메소드

Constructor
protected GenericEffect ( ) : System
리턴 System

GenericEffect() 공개 메소드

public GenericEffect ( DefaultShaderType type ) : System
type DefaultShaderType
리턴 System

GenericEffect() 공개 메소드

public GenericEffect ( Effect effectToAssimilate ) : System
effectToAssimilate Effect
리턴 System

GetCurrentTechnique() 공개 메소드

Get the current technique
public GetCurrentTechnique ( bool ShouldSetParameters ) : EffectTechnique
ShouldSetParameters bool Should we set the parameters this call
리턴 Microsoft.Xna.Framework.Graphics.EffectTechnique

GetEffect() 공개 메소드

Gets the internal effect
public GetEffect ( bool ShouldSetParameters ) : Effect
ShouldSetParameters bool Should the parameters be set
리턴 Effect

GetEffectTechnique() 공개 메소드

Returns a technique based on the index provided. Will set the parameters for this effect;
public GetEffectTechnique ( string TechniqueName, bool ShouldSetParameters ) : EffectTechnique
TechniqueName string The index into the Technique List
ShouldSetParameters bool Should we set the parameters
리턴 Microsoft.Xna.Framework.Graphics.EffectTechnique

SetCurrentTechnique() 공개 메소드

Sets the current technique to the one named.
public SetCurrentTechnique ( string TechniqueName ) : void
TechniqueName string
리턴 void

SetPrecendenceValues() 공개 메소드

public SetPrecendenceValues ( float basicPrecedence, float dualTexturePrecedence, float environmentPredecence, float skinningPrecedence ) : void
basicPrecedence float
dualTexturePrecedence float
environmentPredecence float
skinningPrecedence float
리턴 void

SetTextureAddressModeNoCall() 공개 메소드

public SetTextureAddressModeNoCall ( TextureAddressMode textureAddressMode ) : void
textureAddressMode TextureAddressMode
리턴 void