Partager via


IXRCustomEffect::DrawTriangleStrip (Compact 7)

3/12/2014

This method uses the specified rendering data to draw a visual element that has a custom effect applied to it.

Syntax

virtual HRESULT STDMETHODCALLTYPE DrawTriangleStrip(
    XRCustomEffectArguments* pArguments
) = 0;

Parameters

  • pArguments
    [in] Pointer to an XRCustomEffectArguments structure that defines vertices and projection data for the custom effect.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To render a custom effect on a visual element, Silverlight for Windows Embedded calls IXRCustomEffect::DrawTriangleStrip. You must override this method to implement platform-specific rendering, by using the vertices and projection data contained in the XRCustomEffectArguments structure.

When you create an OS design in Silverlight for Windows Embedded, the code located in the %WINCEROOT%\PUBLIC\common\oak\XamlRuntimeEffects folder includes an OpenGL implementation of blur and drop shadow effects, called OpenGLBlur and OpenGLDropShadow, that will work on boards that support OpenGL. This code overrides the DrawTriangleStrip method to render the custom effects using the OpenGL shaders.

For more information about applying custom effects, see IXRCustomEffect.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRCustomEffect