#include <llvoclouds.h>
Inheritance diagram for LLVOClouds:
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< U32 > &indicesp) |
BOOL | isActive () const |
BOOL | isParticle () |
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 54 of file llvoclouds.cpp.
References LLViewerImage::BOOST_CLOUDS, FALSE, gCloudTextureID, LLViewerImageList::getImage(), gImageList, LLViewerObject::mbCanSelect, mCloudGroupp, NULL, LLViewerImage::setBoostLevel(), LLViewerObject::setNumTEs(), and LLViewerObject::setTEImage().
LLVOClouds::~LLVOClouds | ( | ) | [protected, virtual] |
Definition at line 66 of file llvoclouds.cpp.
LLDrawable * LLVOClouds::createDrawable | ( | LLPipeline * | pipeline | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 102 of file llvoclouds.cpp.
References LLPipeline::allocDrawable(), FALSE, LLViewerObject::mDrawable, and LLPipeline::RENDER_TYPE_CLOUDS.
void LLVOClouds::getGeometry | ( | S32 | te, | |
LLStrider< LLVector3 > & | verticesp, | |||
LLStrider< LLVector3 > & | normalsp, | |||
LLStrider< LLVector2 > & | texcoordsp, | |||
LLStrider< LLColor4U > & | colorsp, | |||
LLStrider< U32 > & | indicesp | |||
) | [virtual] |
Implements LLAlphaObject.
Definition at line 180 of file llvoclouds.cpp.
References CLOUD_PUFF_HEIGHT, CLOUD_PUFF_WIDTH, f, gCamera, LLCloudPuff::getAlpha(), LLCoordFrame::getAtAxis(), LLDrawable::getFace(), LLFace::getGeomIndex(), LLCloudGroup::getNumPuffs(), LLCloudGroup::getPuff(), LLFace::hasGeometry(), isParticle(), LLFace::mCenterLocal, mCloudGroupp, LLViewerObject::mDrawable, LLVector3::normVec(), right, S32, LLFace::setFaceColor(), and LLVector2::setVec().
U32 LLVOClouds::getPartitionType | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 276 of file llvoclouds.cpp.
References LLPipeline::PARTITION_CLOUD.
Reimplemented from LLAlphaObject.
Definition at line 175 of file llvoclouds.cpp.
References CLOUD_PUFF_HEIGHT, and CLOUD_PUFF_WIDTH.
Reimplemented from LLViewerObject.
Definition at line 77 of file llvoclouds.cpp.
References gPipeline, LLPipeline::hasRenderType(), LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLDrawable::REBUILD_VOLUME, LLPipeline::RENDER_TYPE_CLOUDS, and TRUE.
static void LLVOClouds::initClass | ( | ) | [static] |
BOOL LLVOClouds::isActive | ( | ) | const [virtual] |
BOOL LLVOClouds::isParticle | ( | ) | [virtual] |
Reimplemented from LLAlphaObject.
Definition at line 170 of file llvoclouds.cpp.
References FALSE.
Referenced by getGeometry(), and updateGeometry().
void LLVOClouds::setCloudGroup | ( | LLCloudGroup * | cgp | ) | [inline] |
Reimplemented from LLViewerObject.
Definition at line 91 of file llvoclouds.cpp.
References LLViewerObject::mAppAngle, and LLViewerObject::mPixelArea.
Reimplemented from LLViewerObject.
Definition at line 282 of file llvoclouds.cpp.
References LLXform::clearChanged(), gPipeline, LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLPointer< Type >::notNull(), LLDrawable::REBUILD_ALL, LLXform::SHIFTED, and TRUE.
BOOL LLVOClouds::updateGeometry | ( | LLDrawable * | drawable | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 111 of file llvoclouds.cpp.
References LLFastTimer::FTM_UPDATE_CLOUDS, gAgent, gCamera, LLCoordFrame::getAtAxis(), LLDrawable::getFace(), LLDrawable::getNumFaces(), LLCloudGroup::getNumPuffs(), LLCoordFrame::getOrigin(), LLAgent::getPosAgentFromGlobal(), LLViewerObject::getPositionAgent(), LLCloudPuff::getPositionGlobal(), LLCloudGroup::getPuff(), LLViewerObject::getTEImage(), gPipeline, LLPipeline::hasRenderType(), isParticle(), llendl, llwarns, LLFace::mCenterLocal, mCloudGroupp, LLAlphaObject::mDepth, LLDrawable::movePartition(), NULL, LLPipeline::RENDER_TYPE_CLOUDS, S32, LLDrawable::setNumFacesFast(), LLFace::setSize(), LLFace::setTEOffset(), LLFace::setTexture(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 97 of file llvoclouds.cpp.
References LLViewerImage::addTextureStats(), LLViewerObject::getTEImage(), and LLViewerObject::mPixelArea.
LLCloudGroup* LLVOClouds::mCloudGroupp [protected] |
Definition at line 80 of file llvoclouds.h.
Referenced by getGeometry(), LLVOClouds(), setCloudGroup(), and updateGeometry().