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 getSunAmbientColor () const
LLColor4 getMoonAmbientColor () const
LLColor4 getTotalAmbientColor () const
BOOL sunUp () const
F32 getSunPhase () const
void setSunPhase (const F32 phase)
void destroyGL ()
void restoreGL ()
void resetVertexBuffers ()

Public Attributes

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

Protected Attributes

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


Detailed Description

Definition at line 53 of file llsky.h.


Constructor & Destructor Documentation

LLSky::LLSky (  ) 

LLSky::~LLSky (  ) 

Definition at line 87 of file llsky.cpp.


Member Function Documentation

void LLSky::init ( const LLVector3 sun_direction  ) 

void LLSky::free (  ) 

void LLSky::cleanup (  ) 

Definition at line 91 of file llsky.cpp.

References mVOGroundp, mVOSkyp, mVOWLSkyp, and NULL.

Referenced by LLViewerWindow::~LLViewerWindow().

Here is the caller graph for this function:

void LLSky::setOverrideSun ( BOOL  override  ) 

Definition at line 139 of file llsky.cpp.

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

Referenced by LLToolGun::handleHover(), and LLWLParamManager::propagateParameters().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLSky::getOverrideSun (  )  [inline]

Definition at line 65 of file llsky.h.

References mOverrideSimSunPosition.

Referenced by process_time_synch().

Here is the caller graph for this function:

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

Definition at line 152 of file llsky.cpp.

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

Referenced by LLToolGun::handleHover(), init(), process_time_synch(), LLWLParamManager::propagateParameters(), and setOverrideSun().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 160 of file llsky.cpp.

References mSunTargDir.

Referenced by process_time_synch().

Here is the caller graph for this function:

LLColor4 LLSky::getFogColor (  )  const

Definition at line 381 of file llsky.cpp.

References mVOSkyp.

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

Here is the caller graph for this function:

void LLSky::setCloudDensityAtAgent ( F32  cloud_density  ) 

Definition at line 326 of file llsky.cpp.

References mVOSkyp.

Referenced by LLAppViewer::idle().

Here is the caller graph for this function:

void LLSky::setWind ( const LLVector3 wind  ) 

Definition at line 335 of file llsky.cpp.

References mVOSkyp.

Referenced by LLAppViewer::idle().

Here is the caller graph for this function:

void LLSky::updateFog ( const F32  distance  ) 

Definition at line 391 of file llsky.cpp.

References mVOSkyp.

Referenced by LLPipeline::renderGeom().

Here is the caller graph for this function:

void LLSky::updateCull (  ) 

Definition at line 399 of file llsky.cpp.

Referenced by LLPipeline::updateCull().

Here is the caller graph for this function:

void LLSky::updateSky (  ) 

Definition at line 418 of file llsky.cpp.

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

Referenced by display().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSky::propagateHeavenlyBodies ( F32  dt  ) 

Definition at line 344 of file llsky.cpp.

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

Referenced by LLAppViewer::idle().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSky::setFogRatio ( const F32  fog_ratio  ) 

Definition at line 431 of file llsky.cpp.

References mVOSkyp.

Referenced by handleFogRatioChanged(), and init().

Here is the caller graph for this function:

F32 LLSky::getFogRatio (  )  const

Definition at line 440 of file llsky.cpp.

References mVOSkyp.

LLColor4U LLSky::getFadeColor (  )  const

Definition at line 268 of file llsky.cpp.

References mVOSkyp.

LLVector3 LLSky::getSunDirection (  )  const

LLVector3 LLSky::getMoonDirection (  )  const

Definition at line 179 of file llsky.cpp.

References mVOSkyp, and LLVector3::z_axis.

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

Here is the caller graph for this function:

LLColor4 LLSky::getSunDiffuseColor (  )  const

Definition at line 192 of file llsky.cpp.

References mVOSkyp.

Referenced by LLVOClouds::getGeometry(), LLPipeline::setupHWLights(), LLDrawPoolWater::shade(), and LLVOClouds::updateGeometry().

Here is the caller graph for this function:

LLColor4 LLSky::getMoonDiffuseColor (  )  const

Definition at line 217 of file llsky.cpp.

References mVOSkyp.

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

Here is the caller graph for this function:

LLColor4 LLSky::getSunAmbientColor (  )  const

Definition at line 204 of file llsky.cpp.

References mVOSkyp.

Referenced by LLVOClouds::getGeometry(), and LLVOClouds::updateGeometry().

Here is the caller graph for this function:

LLColor4 LLSky::getMoonAmbientColor (  )  const

Definition at line 229 of file llsky.cpp.

References mVOSkyp.

LLColor4 LLSky::getTotalAmbientColor (  )  const

Definition at line 242 of file llsky.cpp.

References mVOSkyp.

Referenced by LLPipeline::enableLights(), and LLPipeline::setupHWLights().

Here is the caller graph for this function:

BOOL LLSky::sunUp (  )  const

Definition at line 255 of file llsky.cpp.

References mVOSkyp, and TRUE.

F32 LLSky::getSunPhase (  )  const

Definition at line 366 of file llsky.cpp.

References mSunPhase.

Referenced by LLWLAnimator::getDayTime().

Here is the caller graph for this function:

void LLSky::setSunPhase ( const F32  phase  ) 

Definition at line 371 of file llsky.cpp.

References mSunPhase.

Referenced by process_time_synch().

Here is the caller graph for this function:

void LLSky::destroyGL (  ) 

Definition at line 98 of file llsky.cpp.

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

Referenced by LLViewerWindow::stopGL().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSky::restoreGL (  ) 

Definition at line 110 of file llsky.cpp.

References mVOSkyp, and mVOWLSkyp.

Referenced by LLViewerWindow::restoreGL().

Here is the caller graph for this function:

void LLSky::resetVertexBuffers (  ) 

Definition at line 122 of file llsky.cpp.

References gPipeline, LLPipeline::markRebuild(), mVOGroundp, mVOSkyp, mVOWLSkyp, LLPointer< Type >::notNull(), LLDrawable::REBUILD_ALL, LLPipeline::resetVertexBuffers(), and TRUE.

Referenced by LLPipeline::resetVertexBuffers().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 80 of file llsky.h.

Referenced by LLSky().

Definition at line 81 of file llsky.h.

Referenced by init(), and LLSky().

Definition at line 109 of file llsky.h.

Referenced by propagateHeavenlyBodies(), and setSunTargetDirection().

Definition at line 112 of file llsky.h.

Referenced by init().

Definition at line 115 of file llsky.h.

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

F32 LLSky::mSunPhase [protected]

Definition at line 117 of file llsky.h.

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

Definition at line 118 of file llsky.h.

Referenced by LLSky().

F32 LLSky::mHaze [protected]

Definition at line 120 of file llsky.h.

F32 LLSky::mDomeRadius [protected]

Definition at line 121 of file llsky.h.

Definition at line 123 of file llsky.h.

Referenced by setOverrideSun().


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

Generated on Fri May 16 09:04:46 2008 for SecondLife by  doxygen 1.5.5