| EffectTechniqueBindingGetTechnique Method |
Gets the effect technique that should be used for rendering.
Namespace: DigitalRune.Graphics.EffectsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public EffectTechnique GetTechnique(
Effect effect,
RenderContext context
)
Public Function GetTechnique (
effect As Effect,
context As RenderContext
) As EffectTechnique
public:
EffectTechnique^ GetTechnique(
Effect^ effect,
RenderContext^ context
)
member GetTechnique :
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
This method is called immediately before an object is rendered using
effect. The returned effect technique can set as the as the
CurrentTechnique.
Notes to Inheritors: The method GetTechnique(Effect, RenderContext) calls
OnGetTechnique(Effect, RenderContext), which can be overridden in derived classes.
See Also