-
Notifications
You must be signed in to change notification settings - Fork 2
/
Mirror
50 lines (34 loc) · 884 Bytes
/
Mirror
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// -*-c++-*-
// SPDX-License-Identifier: LGPL-2.1-only
// Copyright (C) 2021 James Hogan <james@albanarts.com>
#ifndef OSGXR_Mirror
#define OSGXR_Mirror 1
#include <osg/Camera>
#include <osg/Referenced>
#include <osg/ref_ptr>
#include <osgXR/Export>
#include <osgXR/MirrorSettings>
namespace osgXR {
class Manager;
/**
* Public VR mirror class.
*/
class OSGXR_EXPORT Mirror : public osg::Referenced
{
public:
Mirror(Manager *manager, osg::Camera *camera);
virtual ~Mirror();
/*
* internal
*/
// Called when enough is known about OpenXR system
void _init();
private:
void setupQuad(unsigned int viewIndex,
float x, float w);
osg::observer_ptr<Manager> _manager;
osg::observer_ptr<osg::Camera> _camera;
MirrorSettings _mirrorSettings;
};
}
#endif