LLVOWater Class Reference

#include <llvowater.h>

Inheritance diagram for LLVOWater:

Inheritance graph
[legend]
Collaboration diagram for LLVOWater:

Collaboration graph
[legend]
List of all members.

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)
LLDrawablecreateDrawable (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

Detailed Description

Definition at line 47 of file llvowater.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
VERTEX_DATA_MASK 

Definition at line 50 of file llvowater.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void LLVOWater::cleanupClass (  )  [static]

Definition at line 255 of file llvowater.cpp.

Referenced by LLViewerObject::cleanupVOClasses().

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.

BOOL LLVOWater::idleUpdate ( LLAgent agent,
LLWorld world,
const F64 time 
) [virtual]

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]

Definition at line 251 of file llvowater.cpp.

Referenced by LLViewerObject::initVOClasses().

BOOL LLVOWater::isActive (  )  const [virtual]

Reimplemented from LLViewerObject.

Definition at line 88 of file llvowater.cpp.

References FALSE.

void LLVOWater::markDead (  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 82 of file llvowater.cpp.

References LLViewerObject::markDead().

void LLVOWater::setPixelAreaAndAngle ( LLAgent agent  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 94 of file llvowater.cpp.

References LLViewerObject::mAppAngle, and LLViewerObject::mPixelArea.

void LLVOWater::setUseTexture ( const BOOL  use_texture  ) 

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.

void LLVOWater::updateSpatialExtents ( LLVector3 newMin,
LLVector3 newMax 
) [virtual]

Reimplemented from LLViewerObject.

Definition at line 271 of file llvowater.cpp.

References f, LLViewerObject::getPositionAgent(), LLXform::getScale(), and LLViewerObject::mDrawable.

void LLVOWater::updateTextures ( LLAgent agent  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 102 of file llvowater.cpp.


Member Data Documentation

BOOL LLVOWater::mUseTexture [protected]

Definition at line 80 of file llvowater.h.

Referenced by createDrawable(), LLVOWater(), and setUseTexture().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:03 2010 for Second Life Viewer by  doxygen 1.4.7