// SPDX-License-Identifier: LGPL-2.1-only // Copyright (C) 2021 James Hogan #ifndef OSGXR_OPENXR_ACTION_SET #define OSGXR_OPENXR_ACTION_SET 1 #include "Instance.h" #include #include #include namespace osgXR { namespace OpenXR { class ActionSet : public osg::Referenced { public: ActionSet(Instance *instance, const std::string &name, const std::string &localizedName, uint32_t priority); virtual ~ActionSet(); // Error checking inline bool valid() const { return _actionSet != XR_NULL_HANDLE; } inline bool check(XrResult result, const char *actionMsg) const { return _instance->check(result, actionMsg); } // Conversions inline const osg::ref_ptr getInstance() const { return _instance; } inline XrInstance getXrInstance() const { return _instance->getXrInstance(); } inline XrActionSet getXrActionSet() const { return _actionSet; } protected: // Action set data osg::ref_ptr _instance; XrActionSet _actionSet; }; } // osgXR::OpenXR } // osgXR #endif