#include <llvowater.h>
Public Types | |
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) |
void | setIsEdgePatch (const BOOL edge_patch) |
BOOL | getUseTexture () const |
BOOL | getIsEdgePatch () const |
Static Public Member Functions | |
static void | initClass () |
static void | cleanupClass () |
Protected Attributes | |
BOOL | mUseTexture |
BOOL | mIsEdgePatch |
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 FALSE, LLViewerObject::mbCanSelect, mIsEdgePatch, mUseTexture, LLViewerObject::setScale(), and TRUE.
void LLVOWater::markDead | ( | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 83 of file llvowater.cpp.
References LLViewerObject::markDead().
void LLVOWater::initClass | ( | void | ) | [static] |
Definition at line 236 of file llvowater.cpp.
Referenced by LLViewerObject::initVOClasses().
void LLVOWater::cleanupClass | ( | ) | [static] |
Definition at line 240 of file llvowater.cpp.
Referenced by LLViewerObject::cleanupVOClasses().
LLDrawable * LLVOWater::createDrawable | ( | LLPipeline * | pipeline | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 121 of file llvowater.cpp.
References LLPipeline::allocDrawable(), FALSE, LLSingleton< LLWorld >::getInstance(), LLViewerRegion::getLand(), LLPipeline::getPool(), LLSurface::getWaterTexture(), gPipeline, LLViewerObject::mDrawable, LLViewerObject::mRegionp, mUseTexture, LLDrawPool::POOL_WATER, and LLPipeline::RENDER_TYPE_WATER.
BOOL LLVOWater::updateGeometry | ( | LLDrawable * | drawable | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 141 of file llvowater.cpp.
References LLDrawable::addFace(), LLFastTimer::FTM_UPDATE_WATER, LLDrawable::getFace(), LLFace::getGeomCount(), LLFace::getGeometry(), LLFace::getIndicesCount(), LLDrawable::getNumFaces(), LLPipeline::getPool(), LLViewerObject::getPositionAgent(), LLXform::getScale(), gPipeline, LLPointer< Type >::isNull(), LLFace::mCenterAgent, LLFace::mCenterLocal, LLViewerObject::mDrawable, LLVector3::mV, LLFace::mVertexBuffer, NULL, LLDrawPool::POOL_WATER, S32, LLPipeline::sCompiles, LLFace::setGeomIndex(), LLFace::setIndicesIndex(), LLFace::setSize(), TRUE, LLDrawPoolWater::VERTEX_DATA_MASK, VX, and VY.
Reimplemented from LLViewerObject.
Definition at line 261 of file llvowater.cpp.
References LLViewerObject::getPositionAgent(), LLXform::getScale(), and LLViewerObject::mDrawable.
void LLVOWater::updateTextures | ( | LLAgent & | agent | ) | [virtual] |
void LLVOWater::setPixelAreaAndAngle | ( | LLAgent & | agent | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 95 of file llvowater.cpp.
References LLViewerObject::mAppAngle, and LLViewerObject::mPixelArea.
U32 LLVOWater::getPartitionType | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 272 of file llvowater.cpp.
References LLViewerRegion::PARTITION_WATER.
BOOL LLVOWater::isActive | ( | void | ) | const [virtual] |
void LLVOWater::setUseTexture | ( | const BOOL | use_texture | ) |
Definition at line 251 of file llvowater.cpp.
References mUseTexture.
Referenced by LLWorld::updateWaterObjects().
void LLVOWater::setIsEdgePatch | ( | const BOOL | edge_patch | ) |
Definition at line 256 of file llvowater.cpp.
References mIsEdgePatch.
Referenced by LLWorld::updateWaterObjects().
BOOL LLVOWater::getUseTexture | ( | ) | const [inline] |
Definition at line 79 of file llvowater.h.
References mUseTexture.
Referenced by LLDrawPoolWater::shade().
BOOL LLVOWater::getIsEdgePatch | ( | ) | const [inline] |
Definition at line 80 of file llvowater.h.
References mIsEdgePatch.
Referenced by LLDrawPoolWater::shade().
BOOL LLVOWater::mUseTexture [protected] |
Definition at line 83 of file llvowater.h.
Referenced by createDrawable(), getUseTexture(), LLVOWater(), and setUseTexture().
BOOL LLVOWater::mIsEdgePatch [protected] |
Definition at line 84 of file llvowater.h.
Referenced by getIsEdgePatch(), LLVOWater(), and setIsEdgePatch().