]> git.tdb.fi Git - libs/vr.git/blobdiff - source/sidebysidecombiner.h
Give combiners more control over rendering
[libs/vr.git] / source / sidebysidecombiner.h
index 52eda28ab75ec5361574f49ac9ec7e8a095b801d..77012b8b3a12edf1e1c6d717924cb62d6bff6a9d 100644 (file)
@@ -4,6 +4,7 @@
 #include <msp/gl/mesh.h>
 #include <msp/gl/program.h>
 #include <msp/gl/programdata.h>
+#include <msp/gl/view.h>
 #include "stereocombiner.h"
 
 namespace Msp {
@@ -12,6 +13,7 @@ namespace VR {
 class SideBySideCombiner: public StereoCombiner
 {
 private:
+       GL::View &view;
        GL::Mesh mesh;
        GL::Program shprog;
        GL::ProgramData left_shdata;
@@ -19,7 +21,7 @@ private:
        bool cross_eyed;
 
 public:
-       SideBySideCombiner(bool = false);
+       SideBySideCombiner(GL::View &, bool = false);
 
        void set_cross_eyed(bool);