]> git.tdb.fi Git - libs/vr.git/blobdiff - source/ovr/oculusriftcombiner.h
Name LibOVR classes after the API, not the device
[libs/vr.git] / source / ovr / oculusriftcombiner.h
diff --git a/source/ovr/oculusriftcombiner.h b/source/ovr/oculusriftcombiner.h
deleted file mode 100644 (file)
index 418c569..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef MSP_VR_OCULUSRIFTCOMBINER_H_
-#define MSP_VR_OCULUSRIFTCOMBINER_H_
-
-#include <msp/gl/mesh.h>
-#include <msp/gl/program.h>
-#include <msp/gl/programdata.h>
-#include <msp/gl/view.h>
-#include <msp/vr/stereocombiner.h>
-
-namespace Msp {
-namespace VR {
-
-class OculusRiftSystem;
-
-/**
-Presents a stereo view in a way suitable for an Oculus Rift HMD.  All distances
-are specified in multiples of the screen width.
-*/
-class OculusRiftCombiner: public StereoCombiner
-{
-private:
-       struct Frustum;
-
-       OculusRiftSystem &device;
-       GL::View &view;
-       GL::Mesh left_mesh;
-       GL::Mesh right_mesh;
-       GL::Program shprog;
-       mutable GL::ProgramData left_shdata;
-       mutable GL::ProgramData right_shdata;
-
-public:
-       OculusRiftCombiner(OculusRiftSystem &, GL::View &);
-
-       virtual void prepare() const;
-       virtual void render(const GL::Texture2D &, const GL::Texture2D &) const;
-};
-
-} // namespace VR
-} // namespace Msp
-
-#endif