![]() |
Stellarium 0.12.0 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure |
Public Member Functions | |
| Mat4dTransform (const Mat4d &m) | |
| void | forward (Vec3d &v) const |
| void | backward (Vec3d &v) const |
| void | forward (Vec3f &v) const |
| void | backward (Vec3f &v) const |
| void | combine (const Mat4d &m) |
| Mat4d | getApproximateLinearTransfo () const |
| ModelViewTranformP | clone () const |
| virtual bool | setupGLSLTransform (StelGLSLShader *shader) |
| Attaches (or enables, if attached already) the GLSL transform shader to specified shader. | |
| virtual void | setGLSLUniforms (StelGLSLShader *shader) |
| Set GLSL uniforms needed for the transform shader. | |
| virtual void | disableGLSLTransform (StelGLSLShader *shader) |
| Disable the attached GLSL transform shader. | |
Definition at line 122 of file StelProjector.hpp.
| virtual void StelProjector::Mat4dTransform::disableGLSLTransform | ( | StelGLSLShader * | shader | ) | [inline, virtual] |
Disable the attached GLSL transform shader.
Implements StelProjector::ModelViewTranform.
Definition at line 162 of file StelProjector.hpp.
| virtual void StelProjector::Mat4dTransform::setGLSLUniforms | ( | StelGLSLShader * | shader | ) | [inline, virtual] |
Set GLSL uniforms needed for the transform shader.
Called by the renderer backend before drawing, if the transform shader was attached successfully.
Implements StelProjector::ModelViewTranform.
Definition at line 157 of file StelProjector.hpp.
| virtual bool StelProjector::Mat4dTransform::setupGLSLTransform | ( | StelGLSLShader * | shader | ) | [inline, virtual] |
Attaches (or enables, if attached already) the GLSL transform shader to specified shader.
The shader attached must implement one function:
vec4(modelViewForward(in vec4 v));
This function should implement the same logic as the forward() member function, except that it returns the result instead of modifying the parameter.
| shader | Shader to attach to. |
Implements StelProjector::ModelViewTranform.
Definition at line 134 of file StelProjector.hpp.
1.6.3