Debian Codegraph @

3rdparty/osgXR/src/XRRealizeOperation.h

raw symbols SCIP
1 // SPDX-License-Identifier: LGPL-2.1-only
2 // Copyright (C) 2021 James Hogan <[email protected]>
3
4 #ifndef OSGXR_XRREALIZEOPERATION
5 #define OSGXR_XRREALIZEOPERATION 1
6
7 #include <osg/ref_ptr>
8 #include <osgViewer/View>
9
10 namespace osgXR {
11
12 class XRState;
13
14 class XRRealizeOperation : public osg::GraphicsOperation
15 {
16 public:
17
18 explicit XRRealizeOperation(osg::ref_ptr<XRState> state,
19 osgViewer::View *view);
20
21 void operator () (osg::GraphicsContext *gc) override;
22
23 bool realized() const
24 {
25 return _realized;
26 }
27
28 protected:
29
30 OpenThreads::Mutex _mutex;
31 osg::ref_ptr<XRState> _state;
32 osgViewer::View *_view;
33 bool _realized;
34 };
35
36 } // osgXR
37
38 #endif