LLDrawPoolWLSky Class Reference

#include <lldrawpoolwlsky.h>

Inheritance diagram for LLDrawPoolWLSky:

Inheritance graph
[legend]
Collaboration diagram for LLDrawPoolWLSky:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLDrawPoolWLSky (void)
 ~LLDrawPoolWLSky ()
BOOL isDead ()
LLViewerImage * getDebugTexture ()
void beginRenderPass (S32 pass)
void endRenderPass (S32 pass)
S32 getNumPasses ()
void render (S32 pass=0)
void prerender ()
U32 getVertexDataMask ()
BOOL verify () const
S32 getVertexShaderLevel () const
LLDrawPoolWLSky * instancePool ()
 covariant override
LLViewerImage * getTexture ()
BOOL isFacePool ()
void resetDrawOrders ()

Static Public Member Functions

static void cleanupGL ()
static void restoreGL ()

Static Public Attributes

static const U32 SKY_VERTEX_DATA_MASK
static const U32 STAR_VERTEX_DATA_MASK

Private Member Functions

void renderDome (F32 camHeightLocal, LLGLSLShader *shader) const
void renderSkyHaze (F32 camHeightLocal) const
void renderStars (void) const
void renderSkyClouds (F32 camHeightLocal) const
void renderHeavenlyBodies ()

Static Private Attributes

static LLPointer< LLImageGL > sCloudNoiseTexture = NULL
static LLPointer< LLImageRaw > sCloudNoiseRawImage = NULL


Detailed Description

Definition at line 39 of file lldrawpoolwlsky.h.


Constructor & Destructor Documentation

LLDrawPoolWLSky::LLDrawPoolWLSky ( void   ) 

LLDrawPoolWLSky::~LLDrawPoolWLSky (  ) 

Definition at line 78 of file lldrawpoolwlsky.cpp.

References sCloudNoiseTexture.


Member Function Documentation

BOOL LLDrawPoolWLSky::isDead (  )  [inline, virtual]

Implements LLDrawPool.

Definition at line 50 of file lldrawpoolwlsky.h.

References FALSE.

LLViewerImage * LLDrawPoolWLSky::getDebugTexture (  )  [virtual]

Reimplemented from LLDrawPool.

Definition at line 84 of file lldrawpoolwlsky.cpp.

References NULL.

void LLDrawPoolWLSky::beginRenderPass ( S32  pass  )  [virtual]

Reimplemented from LLDrawPool.

Definition at line 89 of file lldrawpoolwlsky.cpp.

void LLDrawPoolWLSky::endRenderPass ( S32  pass  )  [virtual]

Reimplemented from LLDrawPool.

Definition at line 93 of file lldrawpoolwlsky.cpp.

S32 LLDrawPoolWLSky::getNumPasses (  )  [inline, virtual]

Reimplemented from LLDrawPool.

Definition at line 55 of file lldrawpoolwlsky.h.

void LLDrawPoolWLSky::render ( S32  pass = 0  )  [virtual]

void LLDrawPoolWLSky::prerender (  )  [virtual]

Implements LLDrawPool.

Definition at line 305 of file lldrawpoolwlsky.cpp.

U32 LLDrawPoolWLSky::getVertexDataMask (  )  [inline, virtual]

Implements LLDrawPool.

Definition at line 58 of file lldrawpoolwlsky.h.

References SKY_VERTEX_DATA_MASK.

BOOL LLDrawPoolWLSky::verify (  )  const [inline, virtual]

Reimplemented from LLDrawPool.

Definition at line 59 of file lldrawpoolwlsky.h.

References TRUE.

S32 LLDrawPoolWLSky::getVertexShaderLevel (  )  const [inline, virtual]

Reimplemented from LLDrawPool.

Definition at line 60 of file lldrawpoolwlsky.h.

References LLDrawPool::mVertexShaderLevel.

LLDrawPoolWLSky * LLDrawPoolWLSky::instancePool (  )  [virtual]

covariant override

Implements LLDrawPool.

Definition at line 310 of file lldrawpoolwlsky.cpp.

References LLDrawPoolWLSky().

Here is the call graph for this function:

LLViewerImage * LLDrawPoolWLSky::getTexture (  )  [virtual]

Implements LLDrawPool.

Definition at line 315 of file lldrawpoolwlsky.cpp.

References NULL.

BOOL LLDrawPoolWLSky::isFacePool (  )  [inline, virtual]

Reimplemented from LLDrawPool.

Definition at line 67 of file lldrawpoolwlsky.h.

References FALSE.

void LLDrawPoolWLSky::resetDrawOrders (  )  [virtual]

Implements LLDrawPool.

Definition at line 320 of file lldrawpoolwlsky.cpp.

void LLDrawPoolWLSky::cleanupGL (  )  [static]

Definition at line 325 of file lldrawpoolwlsky.cpp.

References NULL, and sCloudNoiseTexture.

Referenced by LLVOWLSky::cleanupGL().

Here is the caller graph for this function:

void LLDrawPoolWLSky::restoreGL (  )  [static]

Definition at line 331 of file lldrawpoolwlsky.cpp.

References LLImageGL::create(), sCloudNoiseRawImage, sCloudNoiseTexture, and TRUE.

Referenced by LLVOWLSky::restoreGL().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDrawPoolWLSky::renderDome ( F32  camHeightLocal,
LLGLSLShader *  shader 
) const [private]

Definition at line 97 of file lldrawpoolwlsky.cpp.

References F_SQRT3, LLSingleton< LLViewerCamera >::getInstance(), LLCoordFrame::getOrigin(), gSky, llassert_always, LLVector3::mV, LLSky::mVOWLSkyp, NULL, LLPipeline::sReflectionRender, and LLGLSLShader::uniform3f().

Referenced by renderSkyClouds(), and renderSkyHaze().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDrawPoolWLSky::renderSkyHaze ( F32  camHeightLocal  )  const [private]

Render the skydome

Definition at line 132 of file lldrawpoolwlsky.cpp.

References LLGLSLShader::bind(), LLPipeline::canUseWindLightShaders(), gObjectSimpleWaterProgram, gPipeline, gWLSkyProgram, LLPipeline::hasRenderType(), LLPipeline::RENDER_TYPE_SKY, renderDome(), shader, LLPipeline::sUnderWaterRender, and LLGLSLShader::unbind().

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDrawPoolWLSky::renderStars ( void   )  const [private]

void LLDrawPoolWLSky::renderSkyClouds ( F32  camHeightLocal  )  const [private]

Render the skydome

Definition at line 200 of file lldrawpoolwlsky.cpp.

References LLGLSLShader::bind(), LLPipeline::canUseWindLightShaders(), gObjectSimpleWaterProgram, gPipeline, gWLCloudProgram, LLPipeline::hasRenderType(), LLPipeline::RENDER_TYPE_CLOUDS, renderDome(), sCloudNoiseTexture, shader, LLPipeline::sUnderWaterRender, and LLGLSLShader::unbind().

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDrawPoolWLSky::renderHeavenlyBodies (  )  [private]

Definition at line 223 of file lldrawpoolwlsky.cpp.

References LLImageGL::bind(), LLPipeline::disableLights(), LLVOSky::FACE_MOON, LLVOSky::FACE_SUN, LLFace::getGeomCount(), LLFace::getTexture(), gPipeline, gSky, llclamp(), LLSky::mVOSkyp, and LLFace::renderIndexed().

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 81 of file lldrawpoolwlsky.h.

Referenced by LLDrawPoolWLSky(), and restoreGL().


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

Generated on Fri May 16 08:44:09 2008 for SecondLife by  doxygen 1.5.5