1 #ifndef MSP_GL_STEREOVIEW_H_
2 #define MSP_GL_STEREOVIEW_H_
5 #include "framebuffer.h"
6 #include "renderable.h"
7 #include "renderbuffer.h"
15 class StereoView: public Renderable
24 RenderTarget(unsigned, unsigned);
37 mutable Camera camera;
42 void create_target(unsigned, unsigned);
43 void setup_frame(const Camera &, const Vector3 &, const EyeParams &) const;
44 void render(const Renderable &, const Tag &) const;
49 const Camera &base_camera;
50 const Renderable &renderable;
51 const StereoCombiner *combiner;
55 mutable Vector3 offset_axis;
58 StereoView(unsigned, unsigned, const Camera &, const Renderable &, const StereoCombiner &);
60 void set_combiner(const StereoCombiner &);
61 void set_eye_spacing(float);
63 virtual void setup_frame() const;
64 virtual void finish_frame() const;
66 virtual void render(const Tag & = Tag()) const;
67 virtual void render(Renderer &, const Tag & = Tag()) const;