]> git.tdb.fi Git - libs/vr.git/blob - source/sidebysidecombiner.h
Rename to mspvr
[libs/vr.git] / source / sidebysidecombiner.h
1 #ifndef MSP_VR_SIDEBYSIDECOMBINER_H_
2 #define MSP_VR_SIDEBYSIDECOMBINER_H_
3
4 #include <msp/gl/mesh.h>
5 #include <msp/gl/program.h>
6 #include <msp/gl/programdata.h>
7 #include "stereocombiner.h"
8
9 namespace Msp {
10 namespace VR {
11
12 class SideBySideCombiner: public StereoCombiner
13 {
14 private:
15         GL::Mesh mesh;
16         GL::Program shprog;
17         GL::ProgramData left_shdata;
18         GL::ProgramData right_shdata;
19         bool cross_eyed;
20
21 public:
22         SideBySideCombiner(bool = false);
23
24         void set_cross_eyed(bool);
25
26         virtual void render(const GL::Texture2D &, const GL::Texture2D &) const;
27 };
28
29 } // namespace VR
30 } // namespace Msp
31
32 #endif