| 1 | // SPDX-License-Identifier: LGPL-2.1-only |
| 2 | // Copyright (C) 2022 James Hogan <[email protected]> |
| 3 | |
| 4 | #ifndef OSGXR_XRUPDATEOPERATION |
| 5 | #define OSGXR_XRUPDATEOPERATION 1 |
| 6 | |
| 7 | #include <osg/ref_ptr> |
| 8 | #include <osg/OperationThread> |
| 9 | |
| 10 | namespace osgXR { |
| 11 | |
| 12 | class XRState; |
| 13 | |
| 14 | class XRUpdateOperation : public osg::Operation |
| 15 | { |
| 16 | public: |
| 17 | |
| 18 | explicit XRUpdateOperation(osg::ref_ptr<XRState> state); |
| 19 | |
| 20 | void operator () (osg::Object *ojb) override; |
| 21 | |
| 22 | protected: |
| 23 | |
| 24 | osg::ref_ptr<XRState> _state; |
| 25 | }; |
| 26 | |
| 27 | } // osgXR |
| 28 | |
| 29 | #endif |