LLFacePool Class Reference

#include <lldrawpool.h>

Inheritance diagram for LLFacePool:

Inheritance graph
Collaboration diagram for LLFacePool:

Collaboration graph
List of all members.

Public Types

typedef std::vector< LLFace * > face_array_t

Public Member Functions

 LLFacePool (const U32 type)
virtual ~LLFacePool ()
virtual void renderForSelect ()=0
BOOL isDead ()
virtual void renderFaceSelected (LLFace *facep, LLImageGL *image, const LLColor4 &color, const S32 index_offset=0, const S32 index_count=0)
virtual LLViewerImagegetTexture ()
virtual void dirtyTextures (const std::set< LLViewerImage * > &textures)
virtual void enqueue (LLFace *face)
virtual BOOL addFace (LLFace *face)
virtual BOOL removeFace (LLFace *face)
virtual BOOL verify () const
virtual void resetDrawOrders ()
void resetAll ()
BOOL moveFace (LLFace *face, LLDrawPool *poolp, BOOL copy_data=FALSE)
void destroy ()
void buildEdges ()
void drawLoop ()
void renderVisibility ()
void addFaceReference (LLFace *facep)
void removeFaceReference (LLFace *facep)
void printDebugInfo () const
BOOL isFacePool ()

Static Public Member Functions

static S32 drawLoop (face_array_t &face_list)
static S32 drawLoopSetTex (face_array_t &face_list, S32 stage)

Public Attributes

face_array_t mDrawFace
face_array_t mMoveFace
face_array_t mReferences


class LLFace
class LLPipeline


class  LLOverrideFaceColor

Detailed Description

Definition at line 141 of file lldrawpool.h.

Member Typedef Documentation

typedef std::vector<LLFace*> LLFacePool::face_array_t

Definition at line 144 of file lldrawpool.h.

Member Enumeration Documentation

anonymous enum


Definition at line 146 of file lldrawpool.h.

Constructor & Destructor Documentation

LLFacePool::LLFacePool ( const U32  type  ) 

Definition at line 161 of file lldrawpool.cpp.

References resetDrawOrders().

LLFacePool::~LLFacePool (  )  [virtual]

Definition at line 167 of file lldrawpool.cpp.

References destroy().

Member Function Documentation

BOOL LLFacePool::addFace ( LLFace face  )  [virtual]

Definition at line 331 of file lldrawpool.cpp.

References addFaceReference(), and TRUE.

Referenced by LLFace::setPool().

void LLFacePool::addFaceReference ( LLFace facep  ) 

Definition at line 373 of file lldrawpool.cpp.

References LLFace::getReferenceIndex(), mReferences, and LLFace::setReferenceIndex().

Referenced by addFace().

void LLFacePool::buildEdges (  ) 

void LLFacePool::destroy (  ) 

Definition at line 172 of file lldrawpool.cpp.

References llendl, llinfos, and mReferences.

Referenced by ~LLFacePool().

void LLFacePool::dirtyTextures ( const std::set< LLViewerImage * > &  textures  )  [virtual]

Reimplemented in LLDrawPoolTerrain.

Definition at line 180 of file lldrawpool.cpp.

void LLFacePool::drawLoop (  ) 

Definition at line 224 of file lldrawpool.cpp.

References mDrawFace, and LLDrawPool::mIndicesDrawn.

Referenced by LLDrawPoolTerrain::renderFull2TU(), LLDrawPoolTerrain::renderFull4TU(), LLDrawPoolTerrain::renderFull4TUShader(), and LLDrawPoolTerrain::renderSimple().

S32 LLFacePool::drawLoop ( face_array_t face_list  )  [static]

Definition at line 190 of file lldrawpool.cpp.

References S32.

S32 LLFacePool::drawLoopSetTex ( face_array_t face_list,
S32  stage 
) [static]

Definition at line 207 of file lldrawpool.cpp.

References S32.

void LLFacePool::enqueue ( LLFace face  )  [virtual]

Definition at line 325 of file lldrawpool.cpp.

References mDrawFace.

LLViewerImage * LLFacePool::getTexture (  )  [virtual]

Implements LLDrawPool.

Reimplemented in LLDrawPoolTerrain, and LLDrawPoolTree.

Definition at line 353 of file lldrawpool.cpp.

References NULL.

BOOL LLFacePool::isDead (  )  [inline, virtual]

Implements LLDrawPool.

Definition at line 156 of file lldrawpool.h.

References mReferences.

BOOL LLFacePool::isFacePool (  )  [inline, virtual]

Reimplemented from LLDrawPool.

Definition at line 189 of file lldrawpool.h.

References TRUE.

BOOL LLFacePool::moveFace ( LLFace face,
LLDrawPool poolp,
BOOL  copy_data = FALSE 

Definition at line 184 of file lldrawpool.cpp.

References TRUE.

void LLFacePool::printDebugInfo (  )  const

Definition at line 405 of file lldrawpool.cpp.

References LLDrawPool::getType(), llendl, and llinfos.

Referenced by LLFace::printDebugInfo().

BOOL LLFacePool::removeFace ( LLFace face  )  [virtual]

Definition at line 338 of file lldrawpool.cpp.

References mDrawFace, removeFaceReference(), TRUE, and vector_replace_with_last().

Referenced by LLFace::destroy().

void LLFacePool::removeFaceReference ( LLFace facep  ) 

Definition at line 358 of file lldrawpool.cpp.

References LLFace::getReferenceIndex(), mReferences, S32, and LLFace::setReferenceIndex().

Referenced by removeFace().

void LLFacePool::renderFaceSelected ( LLFace facep,
LLImageGL image,
const LLColor4 color,
const S32  index_offset = 0,
const S32  index_count = 0 
) [virtual]

Reimplemented in LLDrawPoolWater.

Definition at line 232 of file lldrawpool.cpp.

virtual void LLFacePool::renderForSelect (  )  [pure virtual]

Implemented in LLDrawPoolAvatar, LLDrawPoolGround, LLDrawPoolSky, LLDrawPoolStars, LLDrawPoolTerrain, LLDrawPoolTree, and LLDrawPoolWater.

Referenced by LLPipeline::renderForSelect().

void LLFacePool::renderVisibility (  ) 

Definition at line 239 of file lldrawpool.cpp.

References b, f, face, g, glBegin, glColor4f, glEnd, glPopMatrix, glTranslatef, j, mDrawFace, LLVector3::mV, p, r, S32, and table.

void LLFacePool::resetAll (  ) 

void LLFacePool::resetDrawOrders (  )  [virtual]

Implements LLDrawPool.

Definition at line 348 of file lldrawpool.cpp.

References mDrawFace.

Referenced by LLFacePool().

BOOL LLFacePool::verify (  )  const [virtual]

Reimplemented from LLDrawPool.

Reimplemented in LLDrawPoolTree.

Definition at line 382 of file lldrawpool.cpp.

References FALSE, llendl, llinfos, mDrawFace, and TRUE.

Friends And Related Function Documentation

friend class LLFace [friend]

Definition at line 191 of file lldrawpool.h.

friend class LLPipeline [friend]

Definition at line 192 of file lldrawpool.h.

Member Data Documentation

face_array_t LLFacePool::mDrawFace

Definition at line 194 of file lldrawpool.h.

Referenced by drawLoop(), enqueue(), removeFace(), LLDrawPoolWater::render(), LLDrawPoolTree::render(), LLDrawPoolTerrain::render(), LLDrawPoolStars::render(), LLDrawPoolSky::render(), LLDrawPoolGround::render(), LLDrawPoolAvatar::renderAvatars(), LLDrawPoolTree::renderForSelect(), LLDrawPoolTerrain::renderForSelect(), LLDrawPoolAvatar::renderForSelect(), LLDrawPoolTerrain::renderFull2TU(), LLDrawPoolTerrain::renderFull4TU(), LLDrawPoolTerrain::renderFull4TUShader(), LLDrawPoolTerrain::renderOwnership(), LLDrawPoolWater::renderShaderSimple(), LLDrawPoolTerrain::renderSimple(), LLDrawPoolSky::renderSkyCubeFace(), LLDrawPoolTree::renderTree(), renderVisibility(), resetDrawOrders(), LLDrawPoolWater::shade(), and verify().

face_array_t LLFacePool::mMoveFace

Definition at line 195 of file lldrawpool.h.

face_array_t LLFacePool::mReferences

Definition at line 196 of file lldrawpool.h.

Referenced by addFaceReference(), destroy(), LLDrawPoolTerrain::dirtyTextures(), LLDrawPoolAvatar::getDebugTexture(), isDead(), LLFace::printDebugInfo(), removeFaceReference(), and LLSurface::~LLSurface().

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