1 #ifndef MSP_VR_LIBOVRCOMBINER_H_
2 #define MSP_VR_LIBOVRCOMBINER_H_
4 #include <msp/gl/mesh.h>
5 #include <msp/gl/program.h>
6 #include <msp/gl/programdata.h>
7 #include <msp/gl/view.h>
8 #include <msp/vr/stereocombiner.h>
16 Presents a stereo view in a way suitable for an Oculus Rift HMD. All distances
17 are specified in multiples of the screen width.
19 class LibOVRCombiner: public StereoCombiner
29 mutable GL::ProgramData left_shdata;
30 mutable GL::ProgramData right_shdata;
33 LibOVRCombiner(LibOVRSystem &, GL::View &);
35 virtual void prepare() const;
36 virtual void render(const GL::Texture2D &, const GL::Texture2D &) const;