| EffectTechniqueBindingOnUpdate Method |
Called when the effect technique needs to be selected and
Id needs to be set.
Namespace: DigitalRune.Graphics.EffectsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax protected virtual void OnUpdate(
RenderContext context
)
Protected Overridable Sub OnUpdate (
context As RenderContext
)
protected:
virtual void OnUpdate(
RenderContext^ context
)
abstract OnUpdate :
context : RenderContext -> unit
override OnUpdate :
context : RenderContext -> unit
Parameters
- context
- Type: DigitalRune.GraphicsRenderContext
The render context.
Remarks Notes to Inheritors:
This method can be overridden in derived classes. OnUpdate(RenderContext) needs to select the
effect technique that should be used for rendering and internally store the value. In
addition, the property Id, which is used for state sorting, needs to be
updated.
The base implementation always chooses the first technique found in the effect.
Id is set to 0.
See Also