LLSky Class Reference

#include <llsky.h>

Collaboration diagram for LLSky:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLSky ()
 ~LLSky ()
void init (const LLVector3 &sun_direction)
void free ()
void cleanup ()
void setOverrideSun (BOOL override)
BOOL getOverrideSun ()
void setSunDirection (const LLVector3 &sun_direction, const LLVector3 &sun_ang_velocity)
void setSunTargetDirection (const LLVector3 &sun_direction, const LLVector3 &sun_ang_velocity)
LLColor4 getFogColor () const
void setCloudDensityAtAgent (F32 cloud_density)
void setWind (const LLVector3 &wind)
void updateFog (const F32 distance)
void updateCull ()
void updateSky ()
void propagateHeavenlyBodies (F32 dt)
void setFogRatio (const F32 fog_ratio)
F32 getFogRatio () const
LLColor4U getFadeColor () const
LLVector3 getSunDirection () const
LLVector3 getMoonDirection () const
LLColor4 getSunDiffuseColor () const
LLColor4 getMoonDiffuseColor () const
LLColor4 getTotalAmbientColor () const
BOOL sunUp () const
LLColor4 calcInScatter (LLColor4 &transp, const LLVector3 &point, F32 exag) const
F32 getSunPhase () const
void setSunPhase (const F32 phase)
void destroyGL ()
void restoreGL ()

Public Attributes

S32 mLightingGeneration
BOOL mUpdatedThisFrame
LLPointer< LLVOSkymVOSkyp
LLPointer< LLVOStarsmVOStarsp
LLPointer< LLVOGroundmVOGroundp
LLVector3 mSunTargDir
LLVector3 mSunDefaultPosition

Protected Attributes

BOOL mOverrideSimSunPosition
F32 mSunPhase
LLColor4 mFogColor
F32 mHaze
F32 mDomeRadius
LLVector3 mLastSunDirection

Detailed Description

Definition at line 51 of file llsky.h.


Constructor & Destructor Documentation

LLSky::LLSky (  ) 

Definition at line 73 of file llsky.cpp.

References FALSE, mFogColor, mLightingGeneration, mOverrideSimSunPosition, mSunPhase, mUpdatedThisFrame, LLColor4::mV, TRUE, VALPHA, VBLUE, VGREEN, and VRED.

LLSky::~LLSky (  ) 

Definition at line 87 of file llsky.cpp.


Member Function Documentation

LLColor4 LLSky::calcInScatter ( LLColor4 transp,
const LLVector3 point,
F32  exag 
) const

Definition at line 217 of file llsky.cpp.

References f, and mVOSkyp.

void LLSky::cleanup (  ) 

Definition at line 91 of file llsky.cpp.

References mVOGroundp, mVOSkyp, mVOStarsp, and NULL.

Referenced by LLViewerWindow::~LLViewerWindow().

void LLSky::destroyGL (  ) 

Definition at line 98 of file llsky.cpp.

References LLPointer< Type >::isNull(), and mVOSkyp.

Referenced by LLViewerWindow::stopGL().

void LLSky::free (  ) 

LLColor4U LLSky::getFadeColor (  )  const

Definition at line 230 of file llsky.cpp.

References f, and mVOSkyp.

LLColor4 LLSky::getFogColor (  )  const

Definition at line 341 of file llsky.cpp.

References f, and mVOSkyp.

Referenced by LLTracker::renderBeacon(), and LLVOGround::updateGeometry().

F32 LLSky::getFogRatio (  )  const

Definition at line 415 of file llsky.cpp.

References mVOSkyp.

LLColor4 LLSky::getMoonDiffuseColor (  )  const

Definition at line 178 of file llsky.cpp.

References f, and mVOSkyp.

Referenced by LLVOSky::generateScatterMap(), and LLPipeline::setupHWLights().

LLVector3 LLSky::getMoonDirection (  )  const

Definition at line 152 of file llsky.cpp.

References mVOSkyp, and LLVector3::z_axis.

Referenced by LLFace::getGeometryVolume(), LLPipeline::setupHWLights(), and LLDrawPoolWater::shade().

BOOL LLSky::getOverrideSun (  )  [inline]

Definition at line 63 of file llsky.h.

References mOverrideSimSunPosition.

Referenced by process_time_synch().

LLColor4 LLSky::getSunDiffuseColor (  )  const

Definition at line 165 of file llsky.cpp.

References f, and mVOSkyp.

Referenced by LLVOSky::generateScatterMap(), and LLPipeline::setupHWLights().

LLVector3 LLSky::getSunDirection (  )  const

Definition at line 139 of file llsky.cpp.

References mVOSkyp, and LLVector3::z_axis.

Referenced by LLVOSky::generateScatterMap(), LLFace::getGeometryVolume(), propagateHeavenlyBodies(), setOverrideSun(), LLPipeline::setupAvatarLights(), LLPipeline::setupHWLights(), LLDrawPoolWater::shade(), and LLVOAvatar::updateShadowFaces().

F32 LLSky::getSunPhase (  )  const

Definition at line 326 of file llsky.cpp.

References mSunPhase.

LLColor4 LLSky::getTotalAmbientColor (  )  const

Definition at line 191 of file llsky.cpp.

References f, and mVOSkyp.

Referenced by LLDrawable::applyLightsAsPoint(), LLPipeline::enableLights(), LLPipeline::setAmbient(), and LLPipeline::setupHWLights().

void LLSky::init ( const LLVector3 sun_direction  ) 

Definition at line 248 of file llsky.cpp.

References LLPipeline::addObject(), LLViewerObjectList::createObjectViewer(), f, gAgent, LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLAgent::getRegion(), LLControlGroup::getVector3(), gObjectList, gPipeline, gSavedSettings, gSky, LLViewerObject::LL_VO_GROUND, LLViewerObject::LL_VO_SKY, LLViewerObject::LL_VO_STARS, mOverrideSimSunPosition, mSunDefaultPosition, mUpdatedThisFrame, mVOGroundp, mVOSkyp, mVOStarsp, setFogRatio(), setSunDirection(), and TRUE.

Referenced by idle_startup().

void LLSky::propagateHeavenlyBodies ( F32  dt  ) 

Definition at line 304 of file llsky.cpp.

References f, getSunDirection(), llmin(), mOverrideSimSunPosition, mSunTargDir, mVOSkyp, and LLVector3::normVec().

Referenced by idle().

void LLSky::restoreGL (  ) 

Definition at line 106 of file llsky.cpp.

References mVOSkyp.

Referenced by LLViewerWindow::restoreGL().

void LLSky::setCloudDensityAtAgent ( F32  cloud_density  ) 

Definition at line 286 of file llsky.cpp.

References mVOSkyp.

Referenced by idle().

void LLSky::setFogRatio ( const F32  fog_ratio  ) 

Definition at line 406 of file llsky.cpp.

References mVOSkyp.

Referenced by LLFogRatioListener::handleEvent(), and init().

void LLSky::setOverrideSun ( BOOL  override  ) 

Definition at line 114 of file llsky.cpp.

References getSunDirection(), mLastSunDirection, mOverrideSimSunPosition, setSunDirection(), and LLVector3::zero.

Referenced by LLWorldForceSun::handleEvent(), and LLToolGun::handleHover().

void LLSky::setSunDirection ( const LLVector3 sun_direction,
const LLVector3 sun_ang_velocity 
)

Definition at line 127 of file llsky.cpp.

References mVOSkyp.

Referenced by LLWorldForceSun::handleEvent(), LLToolGun::handleHover(), init(), process_time_synch(), and setOverrideSun().

void LLSky::setSunPhase ( const F32  phase  ) 

Definition at line 331 of file llsky.cpp.

References mSunPhase.

Referenced by process_time_synch().

void LLSky::setSunTargetDirection ( const LLVector3 sun_direction,
const LLVector3 sun_ang_velocity 
)

Definition at line 133 of file llsky.cpp.

References mSunTargDir.

Referenced by process_time_synch().

void LLSky::setWind ( const LLVector3 wind  ) 

Definition at line 295 of file llsky.cpp.

References mVOSkyp.

Referenced by idle().

BOOL LLSky::sunUp (  )  const

Definition at line 204 of file llsky.cpp.

References mVOSkyp, and TRUE.

void LLSky::updateCull (  ) 

Definition at line 360 of file llsky.cpp.

References gCamera, gPipeline, llendl, llinfos, LLPipeline::markVisible(), mVOStarsp, and LLPointer< Type >::notNull().

Referenced by LLPipeline::updateCull().

void LLSky::updateFog ( const F32  distance  ) 

Definition at line 352 of file llsky.cpp.

References mVOSkyp.

Referenced by LLPipeline::renderGeom().

void LLSky::updateSky (  ) 

Definition at line 386 of file llsky.cpp.

References gPipeline, LLPipeline::hasRenderType(), mVOSkyp, mVOStarsp, and LLPipeline::RENDER_TYPE_SKY.

Referenced by idle().


Member Data Documentation

F32 LLSky::mDomeRadius [protected]

Definition at line 118 of file llsky.h.

LLColor4 LLSky::mFogColor [protected]

Definition at line 115 of file llsky.h.

Referenced by LLSky().

F32 LLSky::mHaze [protected]

Definition at line 117 of file llsky.h.

LLVector3 LLSky::mLastSunDirection [protected]

Definition at line 120 of file llsky.h.

Referenced by setOverrideSun().

S32 LLSky::mLightingGeneration

Definition at line 80 of file llsky.h.

Referenced by LLSky().

BOOL LLSky::mOverrideSimSunPosition [protected]

Definition at line 112 of file llsky.h.

Referenced by getOverrideSun(), init(), LLSky(), propagateHeavenlyBodies(), and setOverrideSun().

LLVector3 LLSky::mSunDefaultPosition

Definition at line 109 of file llsky.h.

Referenced by init().

F32 LLSky::mSunPhase [protected]

Definition at line 114 of file llsky.h.

Referenced by getSunPhase(), LLSky(), and setSunPhase().

LLVector3 LLSky::mSunTargDir

Definition at line 106 of file llsky.h.

Referenced by propagateHeavenlyBodies(), and setSunTargetDirection().

BOOL LLSky::mUpdatedThisFrame

Definition at line 81 of file llsky.h.

Referenced by init(), and LLSky().

LLPointer<LLVOGround> LLSky::mVOGroundp

Definition at line 104 of file llsky.h.

Referenced by cleanup(), init(), LLPipeline::resetVertexBuffers(), LLAgent::setRegion(), LLPipeline::updateCull(), and LLVOSky::updateSky().

LLPointer<LLVOSky> LLSky::mVOSkyp

Definition at line 102 of file llsky.h.

Referenced by LLDrawPoolBump::beginShiny(), calcInScatter(), cleanup(), destroyGL(), LLDrawPoolBump::endShiny(), getFadeColor(), getFogColor(), getFogRatio(), getMoonDiffuseColor(), getMoonDirection(), getSunDiffuseColor(), getSunDirection(), getTotalAmbientColor(), init(), propagateHeavenlyBodies(), LLDrawPoolWater::render(), LLDrawPoolSky::render(), LLDrawPoolGlow::render(), LLRenderShinyGlow::render(), LLDrawPoolGround::render(), LLDrawPoolBump::renderGroup(), LLDrawPoolWater::renderReflection(), LLDrawPoolWater::renderShaderSimple(), LLDrawPoolBump::renderShiny(), LLPipeline::resetVertexBuffers(), restoreGL(), setCloudDensityAtAgent(), setFogRatio(), LLAgent::setRegion(), setSunDirection(), setWind(), LLDrawPoolWater::shade(), sunUp(), LLPipeline::updateCull(), updateFog(), LLVOAvatar::updateShadowFaces(), updateSky(), and LLVOStars::updateStarColors().

LLPointer<LLVOStars> LLSky::mVOStarsp

Definition at line 103 of file llsky.h.

Referenced by cleanup(), init(), LLPipeline::resetVertexBuffers(), LLAgent::setRegion(), updateCull(), LLVOSky::updateSky(), and updateSky().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:46 2010 for Second Life Viewer by  doxygen 1.4.7