![]() |
Stellarium 0.12.4
|
Base class for classes implementing vertex projection in GLSL. More...
#include <StelProjector.hpp>
Public Member Functions | |
virtual bool | init (class StelGLSLShader *shader)=0 |
Initialize GLSL projection. More... | |
virtual void | preDraw (class StelGLSLShader *shader)=0 |
Called after init() succeeds, directly before drawing. More... | |
virtual void | postDraw (class StelGLSLShader *shader)=0 |
Called after init() succeeds, after drawing. More... | |
Base class for classes implementing vertex projection in GLSL.
Each StelProjector implementation can have its own GLSLProjector implementation implementing the project() member function in GLSL.
Definition at line 47 of file StelProjector.hpp.
|
pure virtual |
Initialize GLSL projection.
Called by renderer backend before drawing.
This attempts to attach (or re-enable, if already attached) the projection GLSL code to specified shader.
This function may fail (e.g. due to a build error). In that case, the renderer will fall back to CPU projection.
shader | Shader to attach the GLSL projection code to. |
|
pure virtual |
Called after init() succeeds, after drawing.
Used to disable the projection GLSL code.
|
pure virtual |