Click or drag to resize
DigitalRuneEffectTechniqueBindingOnUpdate Method
Called when the effect technique needs to be selected and Id needs to be set.

Namespace: DigitalRune.Graphics.Effects
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
protected virtual void OnUpdate(
	RenderContext context
)

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