#include <llvoclouds.h>
Public Member Functions | |
LLVOClouds (const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) | |
void | updateDrawable (BOOL force_damped) |
LLDrawable * | createDrawable (LLPipeline *pipeline) |
BOOL | updateGeometry (LLDrawable *drawable) |
void | getGeometry (S32 te, LLStrider< LLVector3 > &verticesp, LLStrider< LLVector3 > &normalsp, LLStrider< LLVector2 > &texcoordsp, LLStrider< LLColor4U > &colorsp, LLStrider< U16 > &indicesp) |
BOOL | isActive () const |
F32 | getPartSize (S32 idx) |
void | updateTextures (LLAgent &agent) |
void | setPixelAreaAndAngle (LLAgent &agent) |
void | updateFaceSize (S32 idx) |
BOOL | idleUpdate (LLAgent &agent, LLWorld &world, const F64 &time) |
virtual U32 | getPartitionType () const |
void | setCloudGroup (LLCloudGroup *cgp) |
Static Public Member Functions | |
static void | initClass () |
Protected Member Functions | |
virtual | ~LLVOClouds () |
Protected Attributes | |
LLCloudGroup * | mCloudGroupp |
Definition at line 45 of file llvoclouds.h.
LLVOClouds::LLVOClouds | ( | const LLUUID & | id, | |
const LLPCode | pcode, | |||
LLViewerRegion * | regionp | |||
) |
Definition at line 57 of file llvoclouds.cpp.
References LLViewerImage::BOOST_CLOUDS, FALSE, LLViewerImageList::getImage(), gImageList, LLViewerObject::mbCanSelect, mCloudGroupp, NULL, LLViewerImage::setBoostLevel(), LLViewerObject::setNumTEs(), and LLViewerObject::setTEImage().
LLVOClouds::~LLVOClouds | ( | ) | [protected, virtual] |
Definition at line 69 of file llvoclouds.cpp.
static void LLVOClouds::initClass | ( | ) | [static] |
void LLVOClouds::updateDrawable | ( | BOOL | force_damped | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 275 of file llvoclouds.cpp.
References LLXform::clearChanged(), gPipeline, LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLPointer< Type >::notNull(), LLDrawable::REBUILD_ALL, LLXform::SHIFTED, and TRUE.
LLDrawable * LLVOClouds::createDrawable | ( | LLPipeline * | pipeline | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 108 of file llvoclouds.cpp.
References LLPipeline::allocDrawable(), FALSE, LLViewerObject::mDrawable, and LLPipeline::RENDER_TYPE_CLOUDS.
BOOL LLVOClouds::updateGeometry | ( | LLDrawable * | drawable | ) | [virtual] |
Update cloud color based on sun color.
Reimplemented from LLViewerObject.
Definition at line 117 of file llvoclouds.cpp.
References LLViewerObject::dirtySpatialGroup(), LLFastTimer::FTM_UPDATE_CLOUDS, gAgent, LLCloudPuff::getAlpha(), LLCoordFrame::getAtAxis(), LLDrawable::getFace(), LLSingleton< LLViewerCamera >::getInstance(), LLDrawable::getNumFaces(), LLCloudGroup::getNumPuffs(), LLCoordFrame::getOrigin(), LLAgent::getPosAgentFromGlobal(), LLViewerObject::getPositionAgent(), LLCloudPuff::getPositionGlobal(), LLCloudGroup::getPuff(), LLSky::getSunAmbientColor(), LLSky::getSunDiffuseColor(), LLViewerObject::getTEImage(), gPipeline, gSky, LLPipeline::hasRenderType(), llendl, llwarns, LLFace::mCenterLocal, mCloudGroupp, LLAlphaObject::mDepth, LLDrawable::movePartition(), NULL, LLPipeline::RENDER_TYPE_CLOUDS, S32, LLFace::setFaceColor(), LLDrawable::setNumFacesFast(), LLFace::setSize(), LLFace::setTEOffset(), LLFace::setTexture(), and TRUE.
void LLVOClouds::getGeometry | ( | S32 | te, | |
LLStrider< LLVector3 > & | verticesp, | |||
LLStrider< LLVector3 > & | normalsp, | |||
LLStrider< LLVector2 > & | texcoordsp, | |||
LLStrider< LLColor4U > & | colorsp, | |||
LLStrider< U16 > & | indicesp | |||
) | [virtual] |
Implements LLAlphaObject.
Definition at line 182 of file llvoclouds.cpp.
References CLOUD_PUFF_HEIGHT, CLOUD_PUFF_WIDTH, LLCloudPuff::getAlpha(), LLCoordFrame::getAtAxis(), LLDrawable::getFace(), LLFace::getGeomIndex(), LLSingleton< LLViewerCamera >::getInstance(), LLCloudGroup::getNumPuffs(), LLCloudGroup::getPuff(), LLSky::getSunAmbientColor(), LLSky::getSunDiffuseColor(), gSky, LLFace::hasGeometry(), LLFace::mCenterLocal, mCloudGroupp, LLViewerObject::mDrawable, LLVector3::normVec(), S32, LLFace::setFaceColor(), and LLVector2::setVec().
BOOL LLVOClouds::isActive | ( | void | ) | const [virtual] |
Reimplemented from LLAlphaObject.
Definition at line 177 of file llvoclouds.cpp.
References CLOUD_PUFF_HEIGHT, and CLOUD_PUFF_WIDTH.
void LLVOClouds::updateTextures | ( | LLAgent & | agent | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 103 of file llvoclouds.cpp.
References LLViewerImage::addTextureStats(), LLViewerObject::getTEImage(), and LLViewerObject::mPixelArea.
void LLVOClouds::setPixelAreaAndAngle | ( | LLAgent & | agent | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 97 of file llvoclouds.cpp.
References LLViewerObject::mAppAngle, and LLViewerObject::mPixelArea.
void LLVOClouds::updateFaceSize | ( | S32 | idx | ) | [inline, virtual] |
Reimplemented from LLViewerObject.
Definition at line 80 of file llvoclouds.cpp.
References gPipeline, LLPipeline::hasRenderType(), LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLDrawable::REBUILD_VOLUME, LLPipeline::RENDER_TYPE_CLOUDS, and TRUE.
U32 LLVOClouds::getPartitionType | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 269 of file llvoclouds.cpp.
References LLViewerRegion::PARTITION_CLOUD.
void LLVOClouds::setCloudGroup | ( | LLCloudGroup * | cgp | ) | [inline] |
LLCloudGroup* LLVOClouds::mCloudGroupp [protected] |
Definition at line 79 of file llvoclouds.h.
Referenced by getGeometry(), LLVOClouds(), setCloudGroup(), and updateGeometry().