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

Наследование: IEffectFog, IEffectLights, IEffectMatrices, IDisposable
Показать файл Открыть проект

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

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