]> git.tdb.fi Git - libs/vr.git/blobdiff - source/openvr/openvrcombiner.h
Implement a basic OpenVR driver
[libs/vr.git] / source / openvr / openvrcombiner.h
diff --git a/source/openvr/openvrcombiner.h b/source/openvr/openvrcombiner.h
new file mode 100644 (file)
index 0000000..ad4a37d
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef MSP_VR_OPENVRCOMBINER_H_
+#define MSP_VR_OPENVRCOMBINER_H_
+
+#include <msp/vr/stereocombiner.h>
+
+namespace Msp {
+namespace VR {
+
+class OpenVRDevice;
+
+class OpenVRCombiner: public StereoCombiner
+{
+private:
+       struct Private;
+
+       OpenVRDevice &device;
+
+public:
+       OpenVRCombiner(OpenVRDevice &);
+
+       virtual void prepare() const;
+       virtual void render(const GL::Texture2D &, const GL::Texture2D &) const;
+};
+
+} // namespace VR
+} // namespace Msp
+
+#endif