Blender  V3.3
Public Member Functions | List of all members
GHOST_XrAction Class Reference

#include <GHOST_XrAction.h>

Public Member Functions

 GHOST_XrAction ()=delete
 
GHOST_XrAction
 GHOST_XrAction (XrInstance instance, XrActionSet action_set, const GHOST_XrActionInfo &info)
 
 ~GHOST_XrAction ()
 
bool createBinding (XrInstance instance, XrSession session, const GHOST_XrActionProfileInfo &info)
 
void destroyBinding (const char *profile_path)
 
void updateState (XrSession session, const char *action_name, XrSpace reference_space, const XrTime &predicted_display_time)
 
void applyHapticFeedback (XrSession session, const char *action_name, const char *subaction_path, const int64_t &duration, const float &frequency, const float &amplitude)
 
void stopHapticFeedback (XrSession session, const char *action_name, const char *subaction_path)
 
voidgetCustomdata ()
 
void getBindings (std::map< XrPath, std::vector< XrActionSuggestedBinding >> &r_bindings) const
 

Detailed Description

Definition at line 75 of file GHOST_XrAction.h.

Constructor & Destructor Documentation

◆ GHOST_XrAction() [1/2]

GHOST_XrAction::GHOST_XrAction ( )
delete

◆ GHOST_XrAction() [2/2]

GHOST_XrAction::GHOST_XrAction ( XrInstance  instance,
XrActionSet  action_set,
const GHOST_XrActionInfo &  info 
)

Definition at line 184 of file GHOST_XrAction.cpp.

References CHECK_XR, data, and instance.

◆ ~GHOST_XrAction()

GHOST_XrAction::~GHOST_XrAction ( )

Definition at line 236 of file GHOST_XrAction.cpp.

References CHECK_XR_ASSERT.

Member Function Documentation

◆ applyHapticFeedback()

void GHOST_XrAction::applyHapticFeedback ( XrSession  session,
const char *  action_name,
const char *  subaction_path,
const int64_t duration,
const float frequency,
const float amplitude 
)

Definition at line 366 of file GHOST_XrAction.cpp.

References CHECK_XR, and data.

Referenced by GHOST_XrSession::applyHapticAction().

◆ createBinding()

bool GHOST_XrAction::createBinding ( XrInstance  instance,
XrSession  session,
const GHOST_XrActionProfileInfo &  info 
)

Definition at line 243 of file GHOST_XrAction.cpp.

References instance.

Referenced by GHOST_XrSession::createActionBindings().

◆ destroyBinding()

void GHOST_XrAction::destroyBinding ( const char *  profile_path)

Definition at line 258 of file GHOST_XrAction.cpp.

Referenced by GHOST_XrSession::destroyActionBindings().

◆ getBindings()

void GHOST_XrAction::getBindings ( std::map< XrPath, std::vector< XrActionSuggestedBinding >> &  r_bindings) const

Definition at line 433 of file GHOST_XrAction.cpp.

◆ getCustomdata()

void * GHOST_XrAction::getCustomdata ( )

Definition at line 425 of file GHOST_XrAction.cpp.

Referenced by GHOST_XrSession::getActionCustomdata().

◆ stopHapticFeedback()

void GHOST_XrAction::stopHapticFeedback ( XrSession  session,
const char *  action_name,
const char *  subaction_path 
)

Definition at line 401 of file GHOST_XrAction.cpp.

References CHECK_XR, and data.

Referenced by GHOST_XrSession::stopHapticAction().

◆ updateState()

void GHOST_XrAction::updateState ( XrSession  session,
const char *  action_name,
XrSpace  reference_space,
const XrTime &  predicted_display_time 
)

The documentation for this class was generated from the following files: