![]() |
Stellarium 0.12.0 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure |
Allow to apply visual effects on the whole Stellarium viewport. More...
#include <StelViewportEffect.hpp>
Public Member Functions | |
| virtual QString | getName ()=0 |
| virtual void | drawToViewport (class StelRenderer *renderer)=0 |
| Apply the effect and draw the viewport. | |
| virtual void | distortXY (float &x, float &y) const |
| Distort an x,y position according to the distortion. | |
Allow to apply visual effects on the whole Stellarium viewport.
Definition at line 35 of file StelViewportEffect.hpp.
| virtual void StelViewportEffect::distortXY | ( | float & | x, | |
| float & | y | |||
| ) | const [inline, virtual] |
Distort an x,y position according to the distortion.
The default implementation does nothing.
Reimplemented in StelViewportDistorterFisheyeToSphericMirror.
Definition at line 48 of file StelViewportEffect.hpp.
| virtual void StelViewportEffect::drawToViewport | ( | class StelRenderer * | renderer | ) | [pure virtual] |
Apply the effect and draw the viewport.
This actually puts the result of rendering onto the screen.
| renderer | Renderer to draw with. |
Implemented in StelViewportDistorterFisheyeToSphericMirror.
1.6.3