X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fstereocombiner.h;fp=source%2Fstereocombiner.h;h=10179309c6d0f3d81de53807997a30588a498353;hb=ca12f072923156f02b316b72e3b38bdb8cda5ebc;hp=0000000000000000000000000000000000000000;hpb=95743b7460a42cb21056a1a2c24897f01487c2b4;p=libs%2Fgl.git diff --git a/source/stereocombiner.h b/source/stereocombiner.h new file mode 100644 index 00000000..10179309 --- /dev/null +++ b/source/stereocombiner.h @@ -0,0 +1,32 @@ +#ifndef MSP_GL_STEREOCOMBINER_H_ +#define MSP_GL_STEREOCOMBINER_H_ + +namespace Msp { +namespace GL { + +class Texture2D; + +class StereoCombiner +{ +protected: + unsigned width_div; + unsigned height_div; + bool keep_aspect; + float fov; + + StereoCombiner(); +public: + virtual ~StereoCombiner() { } + + unsigned get_width_divisor() const { return width_div; } + unsigned get_height_divisor() const { return height_div; } + bool is_aspect_kept() const { return keep_aspect; } + float get_field_of_view() const { return fov; } + + virtual void render(const Texture2D &, const Texture2D &) const = 0; +}; + +} // namespace GL +} // namespace Msp + +#endif