Skip to main content
Version: 14 Oct 2024

NativeBindings

Inherits from:
MagicLeapNativeBindings

Public Methods

void ClearCallbacks

public static void ClearCallbacks()

void MLUnityGraphicsClearCallbacks

public void MLUnityGraphicsClearCallbacks()

ulong MLUnityGraphicsGetHandle

public ulong MLUnityGraphicsGetHandle()

void MLUnityGraphicsRegisterCallbacks

public void MLUnityGraphicsRegisterCallbacks(
ref MLUnityGraphicsCallbacks callbacks
)

Parameters

TypeNameDescription
ref MLUnityGraphicsCallbackscallbacks

delegate void OnBeginRenderFrameNativeDelegate

public delegate void OnBeginRenderFrameNativeDelegate(
IntPtr context,
long predictedDisplayTime
)

Parameters

TypeNameDescription
IntPtrcontext
longpredictedDisplayTime

delegate void OnPreBeginRenderFrameNativeDelegate

public delegate void OnPreBeginRenderFrameNativeDelegate(
IntPtr context,
ref MLGraphicsFrameParamsEx frameParams
)

Parameters

TypeNameDescription
IntPtrcontext
ref MLGraphicsFrameParamsExframeParams

Public Enums

EnvironmentBlendMode

EnumeratorValueDescription
Additive0
AlphaBlend1

ProjectionType

EnumeratorValueDescription
SignedZ0
ReversedInfiniteZ1
UnsignedZ2