llcloud.cpp File Reference

Implementation of viewer LLCloudLayer class. More...

#include "llviewerprecompiledheaders.h"
#include "llmath.h"
#include "v3math.h"
#include "v4math.h"
#include "llquaternion.h"
#include "v4color.h"
#include "llwind.h"
#include "llcloud.h"
#include "llgl.h"
#include "llviewerobjectlist.h"
#include "llvoclouds.h"
#include "llvosky.h"
#include "llsky.h"
#include "llviewerregion.h"
#include "patch_dct.h"
#include "patch_code.h"
#include "llglheaders.h"
#include "pipeline.h"
#include "lldrawpool.h"
#include "llworld.h"

Include dependency graph for llcloud.cpp:

Go to the source code of this file.

Enumerations

enum  { LL_PUFF_GROWING = 0, LL_PUFF_DYING = 1 }

Variables

LLPipeline gPipeline
const F32 CLOUD_UPDATE_RATE = 1.0f
const F32 CLOUD_GROW_RATE = 0.05f
const F32 CLOUD_DECAY_RATE = -0.05f
const F32 CLOUD_VELOCITY_SCALE = 0.01f
const F32 CLOUD_DENSITY = 25.f
const S32 CLOUD_COUNT_MAX = 20
const F32 CLOUD_HEIGHT_RANGE = 48.f
const F32 CLOUD_HEIGHT_MEAN = 192.f
S32 gBuffer [16 *16]


Detailed Description

Implementation of viewer LLCloudLayer class.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llcloud.cpp.


Enumeration Type Documentation

anonymous enum

Enumerator:
LL_PUFF_GROWING 
LL_PUFF_DYING 

Definition at line 67 of file llcloud.cpp.


Variable Documentation

const S32 CLOUD_COUNT_MAX = 20

Definition at line 63 of file llcloud.cpp.

Referenced by LLCloudGroup::updatePuffCount().

const F32 CLOUD_DECAY_RATE = -0.05f

Definition at line 60 of file llcloud.cpp.

Referenced by LLCloudGroup::updatePuffCount(), and LLCloudGroup::updatePuffOwnership().

const F32 CLOUD_DENSITY = 25.f

Definition at line 62 of file llcloud.cpp.

Referenced by LLCloudGroup::updatePuffCount().

const F32 CLOUD_GROW_RATE = 0.05f

Definition at line 59 of file llcloud.cpp.

const F32 CLOUD_HEIGHT_MEAN = 192.f

Definition at line 65 of file llcloud.cpp.

Referenced by LLCloudLayer::LLCloudLayer().

const F32 CLOUD_HEIGHT_RANGE = 48.f

Definition at line 64 of file llcloud.cpp.

Referenced by LLCloudGroup::updatePuffCount(), and LLCloudGroup::updatePuffs().

const F32 CLOUD_UPDATE_RATE = 1.0f

Definition at line 58 of file llcloud.cpp.

Referenced by LLCloudGroup::updatePuffCount(), LLCloudGroup::updatePuffOwnership(), and LLCloudGroup::updatePuffs().

const F32 CLOUD_VELOCITY_SCALE = 0.01f

Definition at line 61 of file llcloud.cpp.

Referenced by LLCloudGroup::updatePuffs().

S32 gBuffer[16 *16]

Definition at line 74 of file llcloud.cpp.

Referenced by LLCloudLayer::decompress().

LLPipeline gPipeline

Definition at line 367 of file viewer.cpp.

Referenced by LLDrawable::addFace(), LLFrameStats::addFrameData(), LLViewerPartGroup::addPart(), LLViewerWindow::analyzeHit(), LLVOVolume::animateTextures(), LLDrawable::applyLightsAsPoint(), LLDrawPoolAvatar::beginFootShadow(), LLVOSurfacePatch::calcColor(), LLAgent::calcFocusPositionTargetGlobal(), LLVOVolume::calcLightAtPoint(), LLDrawable::cleanupReferences(), LLDrawable::clearLightSet(), LLVOWater::createDrawable(), LLVOVolume::createDrawable(), LLVOTree::createDrawable(), LLVOStars::createDrawable(), LLVOSky::createDrawable(), LLVOGround::createDrawable(), LLVOAvatar::createDrawable(), LLVOSurfacePatch::dirtyGeom(), LLDrawPoolTerrain::dirtyTextures(), display(), display_startup(), LLVolumeImplFlexible::doIdleUpdate(), LLSpatialPartition::doOcclusion(), LLFace::enableLights(), LLDrawPoolAvatar::endFootShadow(), LLViewerObjectList::findOrphans(), LLPipeline::generateReflectionMap(), LLFace::getGeometryVolume(), LLViewerWindow::getObjectUnderCursor(), LLVOAvatar::getOffObject(), LLVOSurfacePatch::getPool(), LLPipeline::getPoolFromTE(), LLDrawable::getSpatialPartition(), LLRenderLightingDetailListener::handleEvent(), LLRenderUseVBOListener::handleEvent(), LLReleaseGLBufferListener::handleEvent(), LLViewerWindow::handlePerFrameHover(), LLToolSelectRect::handleRectangleSelection(), LLPipeline::hasRenderTypeControl(), LLManipTranslate::highlightIntersection(), idle(), LLVOWater::idleUpdate(), LLVOTree::idleUpdate(), LLVOTextBubble::idleUpdate(), LLVOGround::idleUpdate(), LLVOGrass::idleUpdate(), LLVOClouds::idleUpdate(), LLVOAvatar::idleUpdate(), LLSurface::idleUpdate(), LLSky::init(), init_stat_view(), LLSurface::initTextures(), LLImagePreviewAvatar::LLImagePreviewAvatar(), LLPreviewAnimation::LLPreviewAnimation(), LLSpatialBridge::LLSpatialBridge(), LLViewerPartGroup::LLViewerPartGroup(), LLViewerWindow::LLViewerWindow(), LLDrawable::makeActive(), LLDrawable::makeStatic(), LLViewerObject::markForUpdate(), LLSpatialBridge::move(), LLDrawable::moveUpdatePipeline(), output_statistics(), LLVOVolume::parameterChanged(), LLPipeline::postSort(), LLDrawPoolTerrain::prerender(), LLDrawPoolClouds::prerender(), process_kill_object(), LLOctreeCull::processGroup(), LLSpatialPartition::processImagery(), LLViewerObjectList::processUpdateCore(), LLVOVolume::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLViewerObject::processUpdateMessage(), LLDrawPoolBump::pushBatch(), LLRenderPass::pushBatch(), LLViewerWindow::rawSnapshot(), LLManip::rebuild(), LLVolumeGeometryManager::rebuildGeom(), LLPanelDisplay3::refreshEnabledState(), LLViewerObjectList::relightAllObjects(), LLViewerObject::removeChild(), LLViewerJointAttachment::removeObject(), LLViewerPartGroup::removePart(), LLTexLayerParamAlpha::render(), LLTexLayer::render(), LLImagePreviewSculpted::render(), LLDrawPoolWater::render(), LLDrawPoolTree::render(), LLDrawPoolTerrain::render(), LLDrawPoolStars::render(), LLDrawPoolSky::render(), LLDrawPoolSimple::render(), LLDrawPoolGlow::render(), LLDrawPoolGround::render(), LLDrawPoolClouds::render(), LLDrawPoolBump::render(), LLDrawPoolAlpha::render(), LLDrawPoolAlphaPostWater::render(), render_hud_elements(), render_ui_and_swap(), LLDrawPoolBump::renderActive(), LLRenderPass::renderActive(), LLDrawPoolAvatar::renderAvatars(), LLPipeline::renderBloom(), LLDrawPoolBump::renderBump(), LLDrawPoolBump::renderBumpActive(), LLSpatialPartition::renderDebug(), LLDrawPoolTerrain::renderFull4TUShader(), LLPipeline::renderGeom(), LLDrawPoolBump::renderGroup(), LLDrawPoolAlpha::renderGroupAlpha(), LLRenderPass::renderInvisible(), LLViewerObjectList::renderObjectsForSelect(), renderParticleBeacons(), renderPhysicalBeacons(), renderScriptedBeacons(), renderScriptedTouchBeacons(), LLDrawPoolWater::renderShaderSimple(), LLRenderPass::renderStatic(), LLRenderPass::renderTexture(), reset_statistics(), LLVOAvatar::resetHUDAttachments(), LLVOSky::restoreGL(), LLViewerWindow::restoreGL(), LLVOAvatar::restoreMeshData(), LLSelectMgr::selectionResetRotation(), LLSelectMgr::selectionRotateAroundZ(), LLVOVolume::setDrawableParent(), LLViewerObject::setDrawableParent(), LLVOVolume::setIsLight(), LLVOVolume::setLightColor(), LLVOVolume::setMaterial(), LLViewerObject::setNumTEs(), LLVOVolume::setParent(), LLFace::setPool(), LLViewerObject::setPositionAbsoluteGlobal(), LLVOVolume::setScale(), LLShaderMgr::setShaders(), LLSurfacePatch::setSurface(), LLVOVolume::setTEBumpmap(), LLViewerObject::setTEBumpmap(), LLVOVolume::setTEColor(), LLViewerObject::setTEColor(), LLVOVolume::setTEFullbright(), LLViewerObject::setTEFullbright(), LLVOVolume::setTEImage(), LLViewerObject::setTEImage(), LLVOVolume::setTEMediaFlags(), LLViewerObject::setTEMediaFlags(), LLViewerObject::setTEOffset(), LLViewerObject::setTEOffsetS(), LLViewerObject::setTEOffsetT(), LLViewerObject::setTERotation(), LLVOVolume::setTEScale(), LLViewerObject::setTEScale(), LLVOVolume::setTEScaleS(), LLViewerObject::setTEScaleS(), LLVOVolume::setTEScaleT(), LLViewerObject::setTEScaleT(), LLVOVolume::setTEShiny(), LLVOVolume::setTETexGen(), LLVOVolume::setTETexture(), LLViewerObject::setTETextureCore(), LLViewerJointAttachment::setupDrawable(), LLSpatialBridge::setVisible(), LLVOTextBubble::setVolume(), LLDrawPoolWater::shade(), LLViewerObjectList::shiftObjects(), LLDrawable::shiftPos(), LLVOAvatar::sitOnObject(), LLVOAvatar::slamPosition(), LLViewerWindow::stopGL(), LLPipeline::toggleRenderDebug(), LLPipeline::toggleRenderDebugControl(), LLPipeline::toggleRenderDebugFeature(), LLPipeline::toggleRenderDebugFeatureControl(), LLPipeline::toggleRenderType(), LLPipeline::toggleRenderTypeControl(), LLPipeline::toggleRenderTypeControlNegated(), LLOctreeRenderNonOccluded::traverse(), LLShaderMgr::unloadShaders(), LLDebugText::update(), LLViewerPartSourceScript::update(), LLAgent::updateCamera(), LLSky::updateCull(), LLVOGrass::updateDrawable(), LLVOClouds::updateDrawable(), LLStaticViewerObject::updateDrawable(), LLViewerObject::updateDrawable(), LLSelectMgr::updateEffects(), LLVOSky::updateFog(), LLVOWater::updateGeometry(), LLVOTextBubble::updateGeometry(), LLVOSky::updateGeometry(), LLVOPartGroup::updateGeometry(), LLVOGround::updateGeometry(), LLVOClouds::updateGeometry(), LLVOAvatar::updateGeometry(), LLDrawable::updateGeometry(), LLViewerImageList::updateImages(), LLDrawable::updateLighting(), LLDrawable::updateLightSet(), LLVOVolume::updateLOD(), LLVOGrass::updateLOD(), LLSpatialBridge::updateMove(), LLViewerPartGroup::updateParticles(), LLDrawable::updatePartition(), LLCloudGroup::updatePuffs(), LLViewerPartSim::updateSimulation(), LLVOSky::updateSky(), LLSky::updateSky(), LLVOVolume::updateTEData(), LLDrawable::updateTexture(), LLVOVolume::updateTextures(), LLVOTree::updateTextures(), LLVOGrass::updateTextures(), LLVOAvatar::updateTextures(), LLWorld::updateWaterObjects(), LLDrawable::updateXform(), LLOctreeRenderNonOccluded::visit(), LLOctreeDirty::visit(), LLOctreeMarkNotCulled::visit(), LLDrawPoolTerrain::~LLDrawPoolTerrain(), LLSpatialBridge::~LLSpatialBridge(), LLSurface::~LLSurface(), and LLViewerWindow::~LLViewerWindow().


Generated on Thu Jul 1 06:10:07 2010 for Second Life Viewer by  doxygen 1.4.7