]> git.tdb.fi Git - libs/vr.git/blob - source/sidebysidecombiner.h
f6ec593a1ed471ba15caf40187c782d22d8488a6
[libs/vr.git] / source / sidebysidecombiner.h
1 #ifndef MSP_GL_SIDEBYSIDECOMBINER_H_
2 #define MSP_GL_SIDEBYSIDECOMBINER_H_
3
4 #include "mesh.h"
5 #include "program.h"
6 #include "programdata.h"
7 #include "stereocombiner.h"
8
9 namespace Msp {
10 namespace GL {
11
12 class SideBySideCombiner: public StereoCombiner
13 {
14 private:
15         Mesh mesh;
16         Program shprog;
17         ProgramData left_shdata;
18         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 Texture2D &, const Texture2D &) const;
27 };
28
29 } // namespace GL
30 } // namespace Msp
31
32 #endif