WTInternalMetalRenderingProtocol Protocol Reference

Conforms to NSObject
Declared in WTMetalRenderingMode.h

Overview

WTInternalMetalRenderingProtocol is used to handle information exchange between the Wikitude Native SDK and an app that is using internal rendering.

– wikitudeNativeSDKNeedsExternalMetalUpdateHandler: required method

Called during -start:completion: method of the WTWikitudeNativeSDK.

This method is called to retrieve a custom update handler object. The handler is then invoked every frame to update Wikitude external logic.

- (nonnull WTCustomMetalUpdateHandler)wikitudeNativeSDKNeedsExternalMetalUpdateHandler:(WTWikitudeNativeSDK *)wikitudeNativeSDK

Parameters

wikitudeNativeSDK

The WikitudeNative SDK object that needs an external update handler.

Return Value

WTCustomMetalUpdateHandler A custom update handler object that is invoked every frame by the Wikitude Native SDK when Metal rendering is used.

Declared In

WTMetalRenderingMode.h

– wikitudeNativeSDKNeedsExternalMetalDrawHandler: required method

Called during -start:completion: method of the WTWikitudeNativeSDK.

This method is called to retrieve a custom draw handler object. The handler is then invoked every frame to issue Wikitude external draw commands in Metal.

- (nonnull WTCustomMetalDrawHandler)wikitudeNativeSDKNeedsExternalMetalDrawHandler:(WTWikitudeNativeSDK *)wikitudeNativeSDK

Parameters

wikitudeNativeSDK

The Wikitude Native SDK object that needs an external Metal draw handler.

Return Value

WTCustomMetalDrawHandler A custom draw handler object that is invoked every frame by the Wikitude Native SDK when Metal rendering is used.

Declared In

WTMetalRenderingMode.h