// SPDX-License-Identifier: LGPL-2.1-only // Copyright (C) 2021 James Hogan #ifndef OSGXR_XRREALIZEOPERATION #define OSGXR_XRREALIZEOPERATION 1 #include #include namespace osgXR { class XRState; class XRRealizeOperation : public osg::GraphicsOperation { public: explicit XRRealizeOperation(osg::ref_ptr state, osgViewer::View *view); void operator () (osg::GraphicsContext *gc) override; bool realized() const { return _realized; } protected: OpenThreads::Mutex _mutex; osg::ref_ptr _state; osgViewer::View *_view; bool _realized; }; } // osgXR #endif