1 #ifndef MSP_VR_OCULUSRIFTCOMBINER_H_
2 #define MSP_VR_OCULUSRIFTCOMBINER_H_
4 #include <msp/gl/mesh.h>
5 #include <msp/gl/program.h>
6 #include <msp/gl/programdata.h>
7 #include "stereocombiner.h"
12 class OculusRiftDevice;
15 Presents a stereo view in a way suitable for an Oculus Rift HMD. All distances
16 are specified in multiples of the screen width.
18 class OculusRiftCombiner: public StereoCombiner
21 const OculusRiftDevice &device;
25 GL::ProgramData shdata;
28 OculusRiftCombiner(const OculusRiftDevice &);
30 virtual void render(const GL::Texture2D &, const GL::Texture2D &) const;