]> git.tdb.fi Git - libs/vr.git/blobdiff - source/displaydevice.h
Add interfaces for dealing with VR headsets
[libs/vr.git] / source / displaydevice.h
diff --git a/source/displaydevice.h b/source/displaydevice.h
new file mode 100644 (file)
index 0000000..8bd960d
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef MSP_VR_DISPLAYDEVICE_H_
+#define MSP_VR_DISPLAYDEVICE_H_
+
+#include <msp/gl/camera.h>
+
+namespace Msp {
+namespace VR {
+
+class HeadTrackingCamera;
+class StereoCombiner;
+
+class DisplayDevice
+{
+protected:
+       DisplayDevice() { }
+public:
+       virtual ~DisplayDevice() { }
+
+       virtual HeadTrackingCamera *create_camera(const GL::Camera &) const = 0;
+       virtual StereoCombiner *create_combiner() const = 0;
+};
+
+} // namespace VR
+} // namespace Msp
+
+#endif