![]() |
Stellarium 0.12.0 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure |
Stores graphics data that is shared between planets and must be initialized by a StelRenderer. More...
#include <Planet.hpp>
Public Member Functions | |
| SharedPlanetGraphics () | |
| Default constructor - construct uninitialized SharedPlanetGraphics. | |
| ~SharedPlanetGraphics () | |
| Destructor - frees resources if initialized. | |
| void | lazyInit (class StelRenderer *renderer) |
| Lazily initialize the data, using given renderer to create textures/shader. | |
| bool | loadPlanetShaders (StelRenderer *renderer) |
| Loads the shaders. | |
Public Attributes | |
| class StelTextureNew * | texEarthShadow |
| Texture used to draw earth shadow. | |
| class StelTextureNew * | texHintCircle |
| Texture used to draw planet hint. | |
| class StelGLSLShader * | simplePlanetShader |
| Shader used to draw the planet (with lighting), if lighting is used and GLSL is supported. | |
| class StelGLSLShader * | shadowPlanetShader |
| Shader used to draw the planet (with lighting and shadowing). | |
| class StelGLSLShader * | planetShader |
| Currently used shader, one of the two above. | |
| bool | initialized |
| Are we initialized yet? | |
| ShadowPlanetShaderInfo | info |
| Information for the shadow planet shader. | |
Stores graphics data that is shared between planets and must be initialized by a StelRenderer.
Definition at line 115 of file Planet.hpp.
| Planet::SharedPlanetGraphics::SharedPlanetGraphics | ( | ) | [inline] |
Default constructor - construct uninitialized SharedPlanetGraphics.
Definition at line 136 of file Planet.hpp.
| Planet::SharedPlanetGraphics::~SharedPlanetGraphics | ( | ) |
Destructor - frees resources if initialized.
| void Planet::SharedPlanetGraphics::lazyInit | ( | class StelRenderer * | renderer | ) |
Lazily initialize the data, using given renderer to create textures/shader.
| bool Planet::SharedPlanetGraphics::loadPlanetShaders | ( | StelRenderer * | renderer | ) |
Loads the shaders.
Information for the shadow planet shader.
Definition at line 133 of file Planet.hpp.
Are we initialized yet?
Definition at line 130 of file Planet.hpp.
Currently used shader, one of the two above.
Definition at line 127 of file Planet.hpp.
Shader used to draw the planet (with lighting and shadowing).
Definition at line 124 of file Planet.hpp.
Shader used to draw the planet (with lighting), if lighting is used and GLSL is supported.
Definition at line 122 of file Planet.hpp.
Texture used to draw earth shadow.
Definition at line 118 of file Planet.hpp.
Texture used to draw planet hint.
Definition at line 120 of file Planet.hpp.
1.6.3