Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_C-api.cpp
| Show First 20 Lines • Show All 955 Lines • ▼ Show 20 Lines | void GHOST_XrDestroyActions(GHOST_XrContextHandle xr_contexthandle, | ||||
| uint32_t count, | uint32_t count, | ||||
| const char *const *action_names) | const char *const *action_names) | ||||
| { | { | ||||
| GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | ||||
| GHOST_XrSession *xr_session = xr_context->getSession(); | GHOST_XrSession *xr_session = xr_context->getSession(); | ||||
| GHOST_XR_CAPI_CALL(xr_session->destroyActions(action_set_name, count, action_names), xr_context); | GHOST_XR_CAPI_CALL(xr_session->destroyActions(action_set_name, count, action_names), xr_context); | ||||
| } | } | ||||
| int GHOST_XrCreateActionSpaces(GHOST_XrContextHandle xr_contexthandle, | |||||
| const char *action_set_name, | |||||
| uint32_t count, | |||||
| const GHOST_XrActionSpaceInfo *infos) | |||||
| { | |||||
| GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | |||||
| GHOST_XrSession *xr_session = xr_context->getSession(); | |||||
| GHOST_XR_CAPI_CALL_RET(xr_session->createActionSpaces(action_set_name, count, infos), | |||||
| xr_context); | |||||
| return 0; | |||||
| } | |||||
| void GHOST_XrDestroyActionSpaces(GHOST_XrContextHandle xr_contexthandle, | |||||
| const char *action_set_name, | |||||
| uint32_t count, | |||||
| const GHOST_XrActionSpaceInfo *infos) | |||||
| { | |||||
| GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | |||||
| GHOST_XrSession *xr_session = xr_context->getSession(); | |||||
| GHOST_XR_CAPI_CALL(xr_session->destroyActionSpaces(action_set_name, count, infos), xr_context); | |||||
| } | |||||
| int GHOST_XrCreateActionBindings(GHOST_XrContextHandle xr_contexthandle, | int GHOST_XrCreateActionBindings(GHOST_XrContextHandle xr_contexthandle, | ||||
| const char *action_set_name, | const char *action_set_name, | ||||
| uint32_t count, | uint32_t count, | ||||
| const GHOST_XrActionProfileInfo *infos) | const GHOST_XrActionProfileInfo *infos) | ||||
| { | { | ||||
| GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | ||||
| GHOST_XrSession *xr_session = xr_context->getSession(); | GHOST_XrSession *xr_session = xr_context->getSession(); | ||||
| GHOST_XR_CAPI_CALL_RET(xr_session->createActionBindings(action_set_name, count, infos), | GHOST_XR_CAPI_CALL_RET(xr_session->createActionBindings(action_set_name, count, infos), | ||||
| xr_context); | xr_context); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| void GHOST_XrDestroyActionBindings(GHOST_XrContextHandle xr_contexthandle, | void GHOST_XrDestroyActionBindings(GHOST_XrContextHandle xr_contexthandle, | ||||
| const char *action_set_name, | const char *action_set_name, | ||||
| uint32_t count, | uint32_t count, | ||||
| const GHOST_XrActionProfileInfo *infos) | const char *const *action_names, | ||||
| const char *const *profile_paths) | |||||
| { | { | ||||
| GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | ||||
| GHOST_XrSession *xr_session = xr_context->getSession(); | GHOST_XrSession *xr_session = xr_context->getSession(); | ||||
| GHOST_XR_CAPI_CALL(xr_session->destroyActionBindings(action_set_name, count, infos), xr_context); | GHOST_XR_CAPI_CALL( | ||||
| xr_session->destroyActionBindings(action_set_name, count, action_names, profile_paths), | |||||
| xr_context); | |||||
| } | } | ||||
| int GHOST_XrAttachActionSets(GHOST_XrContextHandle xr_contexthandle) | int GHOST_XrAttachActionSets(GHOST_XrContextHandle xr_contexthandle) | ||||
| { | { | ||||
| GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | ||||
| GHOST_XrSession *xr_session = xr_context->getSession(); | GHOST_XrSession *xr_session = xr_context->getSession(); | ||||
| GHOST_XR_CAPI_CALL_RET(xr_session->attachActionSets(), xr_context); | GHOST_XR_CAPI_CALL_RET(xr_session->attachActionSets(), xr_context); | ||||
| return 0; | return 0; | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||