StelViewportEffect.hpp   StelViewportEffect.hpp 
skipping to change at line 38 skipping to change at line 38
//! @class StelViewportEffect //! @class StelViewportEffect
//! Allow to apply visual effects on the whole Stellarium viewport. //! Allow to apply visual effects on the whole Stellarium viewport.
class StelViewportEffect class StelViewportEffect
{ {
public: public:
StelViewportEffect() {;} StelViewportEffect() {;}
virtual ~StelViewportEffect() {;} virtual ~StelViewportEffect() {;}
virtual QString getName() {return "framebufferOnly";} virtual QString getName() {return "framebufferOnly";}
//! Alter the GL frame buffer, this method must not display anything . //! Alter the GL frame buffer, this method must not display anything .
//! The default implementation does nothing. //! The default implementation does nothing.
virtual void alterBuffer(QGLFramebufferObject* buf) const {;} virtual void alterBuffer(QGLFramebufferObject*) const {;}
//! Draw the viewport on the screen. //! Draw the viewport on the screen.
//! @param buf the GL frame buffer containing the Stellarium viewpor t alreay drawn. //! @param buf the GL frame buffer containing the Stellarium viewpor t alreay drawn.
//! The default implementation paints the buffer on the fullscreen. //! The default implementation paints the buffer on the fullscreen.
virtual void paintViewportBuffer(const QGLFramebufferObject* buf) co nst; virtual void paintViewportBuffer(const QGLFramebufferObject* buf) co nst;
//! Distort an x,y position according to the distortion. //! Distort an x,y position according to the distortion.
//! The default implementation does nothing. //! The default implementation does nothing.
virtual void distortXY(float& x, float& y) const {;} virtual void distortXY(float& x, float& y) const {Q_UNUSED(x); Q_UNU SED(y);}
}; };
class StelViewportDistorterFisheyeToSphericMirror : public StelViewportEffe ct class StelViewportDistorterFisheyeToSphericMirror : public StelViewportEffe ct
{ {
public: public:
StelViewportDistorterFisheyeToSphericMirror(int screen_w,int screen_ h); StelViewportDistorterFisheyeToSphericMirror(int screen_w,int screen_ h);
~StelViewportDistorterFisheyeToSphericMirror(); ~StelViewportDistorterFisheyeToSphericMirror();
virtual QString getName() {return "sphericMirrorDistorter";} virtual QString getName() {return "sphericMirrorDistorter";}
virtual void paintViewportBuffer(const QGLFramebufferObject* buf) co nst; virtual void paintViewportBuffer(const QGLFramebufferObject* buf) co nst;
virtual void distortXY(float& x, float& y) const; virtual void distortXY(float& x, float& y) const;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/