LLDrawPoolWater Class Reference

#include <lldrawpoolwater.h>

Inheritance diagram for LLDrawPoolWater:

Inheritance graph
[legend]
Collaboration diagram for LLDrawPoolWater:

Collaboration graph
[legend]

List of all members.

Public Types

enum  { VERTEX_DATA_MASK }

Public Member Functions

virtual U32 getVertexDataMask ()
 LLDrawPoolWater ()
 ~LLDrawPoolWater ()
LLDrawPoolinstancePool ()
S32 getNumPasses ()
void render (S32 pass=0)
void renderFaceSelected (LLFace *facep, LLImageGL *image, const LLColor4 &color, const S32 index_offset=0, const S32 index_count=0)
void prerender ()
void renderForSelect ()
LLViewerImagegetDebugTexture ()
LLColor3 getDebugColor () const
void renderReflection (LLFace *face)
void shade ()

Static Public Member Functions

static void restoreGL ()

Static Public Attributes

static BOOL sSkipScreenCopy = FALSE
static BOOL sNeedsReflectionUpdate = TRUE
static BOOL sNeedsDistortionUpdate = TRUE
static LLVector3 sLightDir
static LLColor4 sWaterFogColor = LLColor4(0.2f, 0.5f, 0.5f, 0.f)

Protected Attributes

LLPointer< LLViewerImagemHBTex [2]
LLPointer< LLViewerImagemWaterImagep
LLPointer< LLViewerImagemWaterNormp
const LLWaterSurface * mWaterSurface


Detailed Description

Definition at line 42 of file lldrawpoolwater.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
VERTEX_DATA_MASK 

Definition at line 58 of file lldrawpoolwater.h.


Constructor & Destructor Documentation

LLDrawPoolWater::LLDrawPoolWater (  ) 

Definition at line 66 of file lldrawpoolwater.cpp.

References DEFAULT_WATER_NORMAL, LLViewerImageList::getImage(), gImageList, gMoonTextureID, gSunTextureID, mHBTex, mWaterImagep, mWaterNormp, restoreGL(), TRUE, and WATER_TEST.

Here is the call graph for this function:

LLDrawPoolWater::~LLDrawPoolWater (  ) 

Definition at line 83 of file lldrawpoolwater.cpp.


Member Function Documentation

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

Implements LLDrawPool.

Definition at line 65 of file lldrawpoolwater.h.

References VERTEX_DATA_MASK.

LLDrawPool * LLDrawPoolWater::instancePool (  )  [virtual]

Implements LLDrawPool.

Definition at line 93 of file lldrawpoolwater.cpp.

References llendl, llerrs, and NULL.

void LLDrawPoolWater::restoreGL (  )  [static]

Definition at line 88 of file lldrawpoolwater.cpp.

Referenced by LLDrawPoolWater(), and LLViewerWindow::restoreGL().

Here is the caller graph for this function:

S32 LLDrawPoolWater::getNumPasses (  )  [virtual]

Reimplemented from LLDrawPool.

Definition at line 112 of file lldrawpoolwater.cpp.

References LLSingleton< LLViewerCamera >::getInstance().

Here is the call graph for this function:

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

void LLDrawPoolWater::renderFaceSelected ( LLFace facep,
LLImageGL image,
const LLColor4 color,
const S32  index_offset = 0,
const S32  index_count = 0 
) [virtual]

Reimplemented from LLFacePool.

Definition at line 564 of file lldrawpoolwater.cpp.

void LLDrawPoolWater::prerender (  )  [virtual]

void LLDrawPoolWater::renderForSelect (  )  [virtual]

Implements LLFacePool.

Definition at line 557 of file lldrawpoolwater.cpp.

LLViewerImage * LLDrawPoolWater::getDebugTexture (  )  [virtual]

Reimplemented from LLDrawPool.

Definition at line 574 of file lldrawpoolwater.cpp.

References LLViewerImage::sSmokeImagep.

LLColor3 LLDrawPoolWater::getDebugColor (  )  const

Definition at line 579 of file lldrawpoolwater.cpp.

void LLDrawPoolWater::renderReflection ( LLFace face  ) 

Definition at line 304 of file lldrawpoolwater.cpp.

References LLViewerImage::bindTexture(), LLVOSky::getDrawRefl(), LLFace::getFaceColor(), LLFace::getGeomCount(), gSky, mHBTex, LLColor4::mV, LLSky::mVOSkyp, and LLFace::renderIndexed().

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDrawPoolWater::shade (  ) 

Definition at line 332 of file lldrawpoolwater.cpp.

References LLGLSLShader::bind(), LLFace::bindTexture(), LLRenderTarget::bindTexture(), LLShaderMgr::BUMP_MAP, LLShaderMgr::DIFFUSE_MAP, LLGLSLShader::disableTexture(), LLGLSLShader::enableTexture(), LLShaderMgr::ENVIRONMENT_MAP, gAgent, LLWaterParamManager::getBlurMultiplier(), LLControlGroup::getBOOL(), LLFrameTimer::getElapsedSeconds(), LLWaterParamManager::getFogDensity(), LLWaterParamManager::getFresnelOffset(), LLWaterParamManager::getFresnelScale(), LLViewerImageList::getImage(), LLSingleton< LLViewerCamera >::getInstance(), LLVOWater::getIsEdgePatch(), LLSky::getMoonDiffuseColor(), LLSky::getMoonDirection(), LLWaterParamManager::getNormalMapID(), LLWaterParamManager::getNormalScale(), LLCoordFrame::getOrigin(), LLAgent::getRegion(), LLWaterParamManager::getScaleAbove(), LLWaterParamManager::getScaleBelow(), LLSky::getSunDiffuseColor(), LLSky::getSunDirection(), LLCoordFrame::getUpAxis(), LLVOWater::getUseTexture(), LLFace::getViewerObject(), LLViewerRegion::getWaterHeight(), LLWaterParamManager::getWave1Dir(), LLWaterParamManager::getWave2Dir(), gGLViewport, gImageList, glh_get_current_projection(), gPipeline, gSavedSettings, gSky, gUnderWaterProgram, gWaterProgram, LLWaterParamManager::instance(), LLVOSky::isReflFace(), llmax(), LLWaterParamManager::mDensitySliderValue, LLFacePool::mDrawFace, LLVector2::mV, LLColor3::mV, LLColor4::mV, LLVector3::mV, LLDrawPool::mVertexShaderLevel, LLSky::mVOSkyp, LLPipeline::mWaterDis, mWaterNormp, LLPipeline::mWaterRef, NIGHTTIME_ELEVATION_COS, LLColor3::normVec(), LLVector3::normVec(), NULL, LLFace::renderIndexed(), S32, LLColor4::setVec(), shader, sLightDir, sNeedsDistortionUpdate, sNeedsReflectionUpdate, sTime, stop_glerror, sWaterFogColor, LLPipeline::sWaterReflections, TRUE, LLGLSLShader::unbind(), LLGLSLShader::uniform1f(), LLGLSLShader::uniform2fv(), LLGLSLShader::uniform3fv(), LLGLSLShader::uniform4fv(), LLShaderMgr::WATER_EYEVEC, LLShaderMgr::WATER_FOGCOLOR, LLShaderMgr::WATER_FOGDENSITY, LLShaderMgr::WATER_LIGHT_DIR, LLShaderMgr::WATER_REFSCALE, LLShaderMgr::WATER_REFTEX, LLShaderMgr::WATER_SCREENDEPTH, LLShaderMgr::WATER_SCREENTEX, LLShaderMgr::WATER_SPECULAR, LLShaderMgr::WATER_SPECULAR_EXP, LLShaderMgr::WATER_TIME, LLShaderMgr::WATER_WATERHEIGHT, LLShaderMgr::WATER_WAVE_DIR1, LLShaderMgr::WATER_WAVE_DIR2, and LLVector3::z_axis.

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 45 of file lldrawpoolwater.h.

Referenced by LLDrawPoolWater(), and renderReflection().

Definition at line 46 of file lldrawpoolwater.h.

Referenced by LLDrawPoolWater(), and render().

Definition at line 47 of file lldrawpoolwater.h.

Referenced by LLDrawPoolWater(), and shade().

const LLWaterSurface* LLDrawPoolWater::mWaterSurface [protected]

Definition at line 49 of file lldrawpoolwater.h.

Definition at line 52 of file lldrawpoolwater.h.

Referenced by LLPipeline::generateWaterReflection(), and shade().

Definition at line 53 of file lldrawpoolwater.h.

Referenced by LLPipeline::generateWaterReflection(), and shade().

Definition at line 54 of file lldrawpoolwater.h.

Referenced by shade().

LLColor4 LLDrawPoolWater::sWaterFogColor = LLColor4(0.2f, 0.5f, 0.5f, 0.f) [static]


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

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