20 #ifndef _STELVIEWPORTEFFECT_HPP_ 21 #define _STELVIEWPORTEFFECT_HPP_ 23 #include "VecMath.hpp" 24 #include "StelProjector.hpp" 26 class QOpenGLFramebufferObject;
35 virtual QString getName() {
return "framebufferOnly";}
45 virtual void distortXY(
float& x,
float& y)
const {Q_UNUSED(x); Q_UNUSED(y);}
54 virtual QString getName() {
return "sphericMirrorDistorter";}
56 virtual void distortXY(
float& x,
float& y)
const;
62 int viewport_texture_offset[2];
64 Vec2f *texture_point_array;
68 QVector<Vec2f> displayVertexList;
69 QVector<Vec4f> displayColorList;
70 QVector<Vec2f> displayTexCoordList;
73 #endif // _STELVIEWPORTEFFECT_HPP_
virtual void distortXY(float &x, float &y) const
Distort an x,y position according to the distortion.
virtual void paintViewportBuffer(const QOpenGLFramebufferObject *buf) const
Draw the viewport on the screen.
Allow to apply visual effects on the whole Stellarium viewport.
Contains all the param needed to initialize a StelProjector.
virtual void alterBuffer(QOpenGLFramebufferObject *) const
Alter the GL frame buffer, this method must not display anything.