]> git.tdb.fi Git - libs/vr.git/blobdiff - source/headtrackingcamera.h
Add interfaces for dealing with VR headsets
[libs/vr.git] / source / headtrackingcamera.h
diff --git a/source/headtrackingcamera.h b/source/headtrackingcamera.h
new file mode 100644 (file)
index 0000000..b12a929
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef MSP_VR_HEADTRACKINGCAMERA_H_
+#define MSP_VR_HEADTRACKINGCAMERA_H_
+
+#include <msp/gl/camera.h>
+
+namespace Msp {
+namespace VR {
+
+class HeadTrackingCamera: public Msp::GL::Camera
+{
+protected:
+       HeadTrackingCamera() { }
+
+public:
+       virtual ~HeadTrackingCamera() { }
+
+       virtual void update() = 0;
+};
+
+} // namespace VR
+} // namespace Msp
+
+#endif