Stellarium  HEAD
Data Structures | Public Types | Signals | Public Member Functions
S3DRenderer Class Reference

Scenery3d renderer class. More...

#include <S3DRenderer.hpp>

Public Types

enum  LocationInfoStyle { LocationInfoTopRight , LocationInfoBottomCenter }
 

Signals

void message (const QString &msg) const
 

Public Member Functions

 S3DRenderer (QObject *parent=nullptr)
 Initializes an empty Scenery3d object.
 
void draw (StelCore *core, S3DScene &scene)
 Draw scenery, called by Scenery3dMgr.
 
void init ()
 Performs initialization that requires an valid OpenGL context.
 
bool getDebugEnabled () const
 
void setDebugEnabled (bool debugEnabled)
 
bool getPixelLightingEnabled () const
 
void setPixelLightingEnabled (const bool val)
 
bool getShadowsEnabled (void) const
 
void setShadowsEnabled (bool shadowsEnabled)
 
bool getUseSimpleShadows () const
 
void setUseSimpleShadows (bool val)
 
bool getBumpsEnabled (void) const
 
void setBumpsEnabled (bool bumpsEnabled)
 
bool getTorchEnabled (void) const
 
void setTorchEnabled (bool torchEnabled)
 
S3DEnum::ShadowFilterQuality getShadowFilterQuality () const
 
void setShadowFilterQuality (S3DEnum::ShadowFilterQuality quality)
 
bool getPCSS () const
 
void setPCSS (bool val)
 
bool getLocationInfoEnabled (void) const
 
void setLocationInfoEnabled (bool locationinfoenabled)
 
S3DRenderer::LocationInfoStyle getLocationInfoStyle () const
 
void setLocationInfoStyle (S3DRenderer::LocationInfoStyle style)
 
bool getLazyCubemapEnabled () const
 
void setLazyCubemapEnabled (bool val)
 
double getLazyCubemapInterval () const
 
void setLazyCubemapInterval (double val)
 
void getLazyCubemapUpdateOnlyDominantFaceOnMoving (bool &val, bool &alsoSecondDominantFace) const
 
void setLazyCubemapUpdateOnlyDominantFaceOnMoving (bool val, bool alsoSecondDominantFace)
 
void invalidateCubemap ()
 Does a cubemap redraw at the next possible opportunity when lazy-drawing is enabled.
 
S3DEnum::CubemappingMode getCubemappingMode () const
 
void setCubemappingMode (S3DEnum::CubemappingMode mode)
 Changes cubemapping mode and forces re-initialization on next draw call. More...
 
void setUseFullCubemapShadows (bool val)
 
bool getUseFullCubemapShadows () const
 
int getCubemapSize () const
 
void setCubemapSize (int size)
 Note: This may not set the size to the desired one because of hardware limits, call getCubemapSize to receive the value set after this call.
 
int getShadowmapSize () const
 
void setShadowmapSize (int size)
 Note: This may not set the size to the desired one because of hardware limits, call getShadowmapSize to receive the value set after this call.
 
float getTorchBrightness () const
 
void setTorchBrightness (float brightness)
 
float getTorchRange () const
 
void setTorchRange (float range)
 
void setDirectionalLightPush (const float push)
 Sets the exaggeration strength for directional light (default: 1). More...
 
float getDirectionalLightPush () const
 
void saveFrusts ()
 
ShaderMgrgetShaderManager ()
 Returns the shader manager this instance uses.
 
bool isGeometryShaderCubemapSupported () const
 
bool areShadowsSupported () const
 
bool isShadowFilteringSupported () const
 
bool isANGLEContext () const
 
int getMaximumFramebufferSize () const
 

Detailed Description

Scenery3d renderer class.

Member Function Documentation

◆ setCubemappingMode()

void S3DRenderer::setCubemappingMode ( S3DEnum::CubemappingMode  mode)
inline

Changes cubemapping mode and forces re-initialization on next draw call.

This may not set the actual mode to the parameter, call getCubemappingMode to find out what was set.

◆ setDirectionalLightPush()

void S3DRenderer::setDirectionalLightPush ( const float  push)
inline

Sets the exaggeration strength for directional light (default: 1).

Going over 1 can be useful for very tiny holes casting important specks of light into dark interiors. Example: meridiana "sundials" in Italian churches.