#include <llvowater.h>
Inheritance diagram for LLVOWater:
Public Types | |
VERTEX_DATA_MASK | |
enum | { VERTEX_DATA_MASK } |
Public Member Functions | |
LLVOWater (const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) | |
void | markDead () |
BOOL | idleUpdate (LLAgent &agent, LLWorld &world, const F64 &time) |
LLDrawable * | createDrawable (LLPipeline *pipeline) |
BOOL | updateGeometry (LLDrawable *drawable) |
void | updateSpatialExtents (LLVector3 &newMin, LLVector3 &newMax) |
void | updateTextures (LLAgent &agent) |
void | setPixelAreaAndAngle (LLAgent &agent) |
virtual U32 | getPartitionType () const |
BOOL | isActive () const |
void | setUseTexture (const BOOL use_texture) |
Static Public Member Functions | |
static void | initClass () |
static void | cleanupClass () |
Protected Attributes | |
BOOL | mUseTexture |
Definition at line 47 of file llvowater.h.
anonymous enum |
LLVOWater::LLVOWater | ( | const LLUUID & | id, | |
const LLPCode | pcode, | |||
LLViewerRegion * | regionp | |||
) |
Definition at line 71 of file llvowater.cpp.
References f, FALSE, LLViewerObject::mbCanSelect, mUseTexture, LLViewerObject::setScale(), and TRUE.
void LLVOWater::cleanupClass | ( | ) | [static] |
LLDrawable * LLVOWater::createDrawable | ( | LLPipeline * | pipeline | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 120 of file llvowater.cpp.
References LLPipeline::allocDrawable(), FALSE, LLWorld::getDefaultWaterTexture(), LLViewerRegion::getLand(), LLPipeline::getPool(), LLSurface::getWaterTexture(), gPipeline, gWorldp, LLViewerObject::mDrawable, LLViewerObject::mRegionp, mUseTexture, LLDrawPool::POOL_WATER, and LLPipeline::RENDER_TYPE_WATER.
U32 LLVOWater::getPartitionType | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 282 of file llvowater.cpp.
References LLPipeline::PARTITION_WATER.
Reimplemented from LLViewerObject.
Definition at line 107 of file llvowater.cpp.
References gPipeline, LLPipeline::hasRenderType(), LLPipeline::markRebuild(), LLViewerObject::mDead, LLViewerObject::mDrawable, LLDrawable::REBUILD_VOLUME, LLPipeline::RENDER_TYPE_WATER, and TRUE.
void LLVOWater::initClass | ( | ) | [static] |
BOOL LLVOWater::isActive | ( | ) | const [virtual] |
void LLVOWater::markDead | ( | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 82 of file llvowater.cpp.
References LLViewerObject::markDead().
Reimplemented from LLViewerObject.
Definition at line 94 of file llvowater.cpp.
References LLViewerObject::mAppAngle, and LLViewerObject::mPixelArea.
Definition at line 266 of file llvowater.cpp.
References mUseTexture.
Referenced by LLWorld::updateWaterObjects().
BOOL LLVOWater::updateGeometry | ( | LLDrawable * | drawable | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 140 of file llvowater.cpp.
References LLDrawable::addFace(), f, face, LLFastTimer::FTM_UPDATE_WATER, LLDrawable::getFace(), LLDrawable::getNumFaces(), LLPipeline::getPool(), LLViewerObject::getPositionAgent(), LLXform::getScale(), gPipeline, LLViewerObject::mDrawable, LLVector3::mV, NULL, LLDrawPool::POOL_WATER, right, S32, LLPipeline::sCompiles, LLVector2::setVec(), size, TRUE, LLDrawPoolWater::VERTEX_DATA_MASK, VX, VY, x, and y.
Reimplemented from LLViewerObject.
Definition at line 271 of file llvowater.cpp.
References f, LLViewerObject::getPositionAgent(), LLXform::getScale(), and LLViewerObject::mDrawable.
BOOL LLVOWater::mUseTexture [protected] |
Definition at line 80 of file llvowater.h.
Referenced by createDrawable(), LLVOWater(), and setUseTexture().