first commit

This commit is contained in:
Your Name
2022-10-20 20:29:11 +08:00
commit 4d531f8044
3238 changed files with 1387862 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
// -*-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