Stellarium  0.16.1
List of all members | Classes | Signals | Public Member Functions
S3DRenderer Class Reference

Scenery3d renderer class. More...

#include <S3DRenderer.hpp>

+ Inheritance diagram for S3DRenderer:
+ Collaboration diagram for S3DRenderer:

Signals

void message (const QString &msg) const
 

Public Member Functions

 S3DRenderer (QObject *parent=Q_NULLPTR)
 Initializes an empty Scenery3d object. More...
 
void draw (StelCore *core, S3DScene &scene)
 Draw scenery, called by Scenery3dMgr. More...
 
void init ()
 Performs initialization that requires an valid OpenGL context. More...
 
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)
 
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. More...
 
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
 
uint getCubemapSize () const
 
void setCubemapSize (uint 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. More...
 
uint getShadowmapSize () const
 
void setShadowmapSize (uint 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. More...
 
float getTorchBrightness () const
 
void setTorchBrightness (float brightness)
 
float getTorchRange () const
 
void setTorchRange (float range)
 
void saveFrusts ()
 
ShaderMgrgetShaderManager ()
 Returns the shader manager this instance uses. More...
 
bool isGeometryShaderCubemapSupported () const
 
bool areShadowsSupported () const
 
bool isShadowFilteringSupported () const
 
bool isANGLEContext () const
 
unsigned int getMaximumFramebufferSize () const
 

Detailed Description

Scenery3d renderer class.

Definition at line 48 of file S3DRenderer.hpp.

Constructor & Destructor Documentation

S3DRenderer::S3DRenderer ( QObject *  parent = Q_NULLPTR)

Initializes an empty Scenery3d object.

Member Function Documentation

void S3DRenderer::draw ( StelCore core,
S3DScene scene 
)

Draw scenery, called by Scenery3dMgr.

ShaderMgr& S3DRenderer::getShaderManager ( )
inline

Returns the shader manager this instance uses.

Definition at line 128 of file S3DRenderer.hpp.

void S3DRenderer::init ( )

Performs initialization that requires an valid OpenGL context.

void S3DRenderer::invalidateCubemap ( )
inline

Does a cubemap redraw at the next possible opportunity when lazy-drawing is enabled.

Definition at line 90 of file S3DRenderer.hpp.

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.

Definition at line 95 of file S3DRenderer.hpp.

void S3DRenderer::setCubemapSize ( uint  size)
inline

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.

Definition at line 115 of file S3DRenderer.hpp.

void S3DRenderer::setShadowmapSize ( uint  size)
inline

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.

Definition at line 118 of file S3DRenderer.hpp.


The documentation for this class was generated from the following file: