NativeBindings
Inherits from:
MagicLeapNativeBindings
Public Methods
void MLHandleSessionStateChange
public void MLHandleSessionStateChange(
int oldState,
int newState
)
Parameters
Type | Name | Description |
---|---|---|
int | oldState | |
int | newState |
MLResult.Code MLOpenXRConvertTimespecTimeToXrTime
public MLResult.Code MLOpenXRConvertTimespecTimeToXrTime(
TimeSpec timespec,
out long mlXrTime
)
Parameters
Type | Name | Description |
---|---|---|
TimeSpec | timespec | |
out long | mlXrTime |
MLResult.Code MLOpenXRConvertXrTimeToTimespecTime
public MLResult.Code MLOpenXRConvertXrTimeToTimespecTime(
long mlXrTime,
out TimeSpec timeSpec
)
Parameters
Type | Name | Description |
---|---|---|
long | mlXrTime | |
out TimeSpec | timeSpec |
void MLOpenXRFeatureOnInstanceDestroy
public void MLOpenXRFeatureOnInstanceDestroy(
string featureId,
ulong instance
)
Parameters
Type | Name | Description |
---|---|---|
string | featureId | |
ulong | instance |
float MLOpenXRGetMaxFarClippingPlane
public float MLOpenXRGetMaxFarClippingPlane()
float MLOpenXRGetMinNearClippingPlane
public float MLOpenXRGetMinNearClippingPlane()
float MLOpenXRGetRecommendedFarClippingPlane
public float MLOpenXRGetRecommendedFarClippingPlane()
float MLOpenXRGetRecommendedNearClippingPlane
public float MLOpenXRGetRecommendedNearClippingPlane()
bool MLOpenXRGetUnityPoseForFeature
public bool MLOpenXRGetUnityPoseForFeature(
string featureId,
ulong space,
out Pose pose
)
Parameters
Type | Name | Description |
---|---|---|
string | featureId | |
ulong | space | |
out Pose | pose |
IntPtr MLOpenXRInterceptFunctions
public IntPtr MLOpenXRInterceptFunctions(
IntPtr loaderFunc
)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | loaderFunc |
IntPtr MLOpenXRInterceptFunctionsForFeature
public IntPtr MLOpenXRInterceptFunctionsForFeature(
string featureId,
IntPtr original
)
Parameters
Type | Name | Description |
---|---|---|
string | featureId | |
IntPtr | original |
void MLOpenXROnAppSpaceChange
public void MLOpenXROnAppSpaceChange(
ulong appSpace
)
Parameters
Type | Name | Description |
---|---|---|
ulong | appSpace |
void MLOpenXROnFeatureAppSpaceChange
public void MLOpenXROnFeatureAppSpaceChange(
string featureId,
ulong space
)
Parameters
Type | Name | Description |
---|---|---|
string | featureId | |
ulong | space |
void MLOpenXROnFeatureInstanceCreate
public void MLOpenXROnFeatureInstanceCreate(
string featureId,
ulong instance,
IntPtr xrGetInstanceProcAddr
)
Parameters
Type | Name | Description |
---|---|---|
string | featureId | |
ulong | instance | |
IntPtr | xrGetInstanceProcAddr |
void MLOpenXROnFeatureSessionCreate
public void MLOpenXROnFeatureSessionCreate(
string featureId,
ulong session
)
Parameters
Type | Name | Description |
---|---|---|
string | featureId | |
ulong | session |
bool MLOpenXROnInstanceCreate
public bool MLOpenXROnInstanceCreate(
IntPtr loaderFunc,
ulong instance
)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | loaderFunc | |
ulong | instance |
void MLOpenXROnInstanceDestroy
public void MLOpenXROnInstanceDestroy(
ulong instance
)
Parameters
Type | Name | Description |
---|---|---|
ulong | instance |
void MLOpenXROnSessionCreate
public void MLOpenXROnSessionCreate(
ulong session
)
Parameters
Type | Name | Description |
---|---|---|
ulong | session |
void MLOpenXROnSessionDestroy
public void MLOpenXROnSessionDestroy(
ulong session
)
Parameters
Type | Name | Description |
---|---|---|
ulong | session |