| EffectTechniqueBindingOnGetTechnique Method |
Called when the effect technique that should be used for rendering should be returned.
Namespace: DigitalRune.Graphics.EffectsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax protected virtual EffectTechnique OnGetTechnique(
Effect effect,
RenderContext context
)
Protected Overridable Function OnGetTechnique (
effect As Effect,
context As RenderContext
) As EffectTechnique
protected:
virtual EffectTechnique^ OnGetTechnique(
Effect^ effect,
RenderContext^ context
)
abstract OnGetTechnique :
effect : Effect *
context : RenderContext -> EffectTechnique
override OnGetTechnique :
effect : Effect *
context : RenderContext -> EffectTechnique
Parameters
- effect
- Type: Effect
The effect. - context
- Type: DigitalRune.GraphicsRenderContext
The render context.
Return Value
Type:
EffectTechniqueThe effect technique that should be used for rendering.
Remarks Notes to Inheritors:
This method can be overridden in derived classes. The base implementation always returns the
first technique found in effect.
See Also