]> git.tdb.fi Git - libs/vr.git/blobdiff - source/motioncontroller.h
Provide objects for visualizing controllers
[libs/vr.git] / source / motioncontroller.h
index 959e056cd8c6c1b537951bb8161d7f0d6c1dfd83..0dbee9c2b1aea0ce9e365a04fb3e0762121f6335 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_VR_MOTIONCONTROLLER_H_
 
 #include <msp/gl/matrix.h>
+#include <msp/gl/object.h>
 #include <msp/input/device.h>
 
 namespace Msp {
@@ -29,6 +30,9 @@ public:
        virtual void update() = 0;
 protected:
        void update_from_matrix(const Msp::GL::Matrix &);
+
+public:
+       virtual const GL::Object *get_object() const { return 0; }
 };
 
 } // namespace VR