C# Class FlatRedBall.Graphics.GenericEffect

Inheritance: IEffectFog, IEffectLights, IEffectMatrices, IDisposable
Afficher le fichier Open project: vchelaru/FlatRedBall

Méthodes publiques

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

Méthodes protégées

Méthode Description
GenericEffect ( ) : System

Constructor

Private Methods

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

Method Details

BuildEffect() public méthode

Builds the precedence table, determines the effect
public BuildEffect ( ) : Effect
Résultat Effect

Dispose() public méthode

Destroy this object
public Dispose ( ) : void
Résultat void

EnableDefaultLighting() public méthode

Needs to be implemented by the IEffectLight child
public EnableDefaultLighting ( ) : void
Résultat void

GenericEffect() protected méthode

Constructor
protected GenericEffect ( ) : System
Résultat System

GenericEffect() public méthode

public GenericEffect ( DefaultShaderType type ) : System
type DefaultShaderType
Résultat System

GenericEffect() public méthode

public GenericEffect ( Effect effectToAssimilate ) : System
effectToAssimilate Effect
Résultat System

GetCurrentTechnique() public méthode

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

GetEffect() public méthode

Gets the internal effect
public GetEffect ( bool ShouldSetParameters ) : Effect
ShouldSetParameters bool Should the parameters be set
Résultat Effect

GetEffectTechnique() public méthode

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

SetCurrentTechnique() public méthode

Sets the current technique to the one named.
public SetCurrentTechnique ( string TechniqueName ) : void
TechniqueName string
Résultat void

SetPrecendenceValues() public méthode

public SetPrecendenceValues ( float basicPrecedence, float dualTexturePrecedence, float environmentPredecence, float skinningPrecedence ) : void
basicPrecedence float
dualTexturePrecedence float
environmentPredecence float
skinningPrecedence float
Résultat void

SetTextureAddressModeNoCall() public méthode

public SetTextureAddressModeNoCall ( TextureAddressMode textureAddressMode ) : void
textureAddressMode TextureAddressMode
Résultat void