#include <lldrawpool.h>
Public Types | |
enum | { POOL_SIMPLE = 1, POOL_TERRAIN, POOL_TREE, POOL_SKY, POOL_WL_SKY, POOL_GROUND, POOL_BUMP, POOL_INVISIBLE, POOL_AVATAR, POOL_WATER, POOL_GLOW, POOL_ALPHA, NUM_POOL_TYPES } |
Public Member Functions | |
LLDrawPool (const U32 type) | |
virtual | ~LLDrawPool () |
virtual BOOL | isDead ()=0 |
S32 | getId () const |
U32 | getType () const |
virtual LLViewerImage * | getDebugTexture () |
virtual void | beginRenderPass (S32 pass) |
virtual void | endRenderPass (S32 pass) |
virtual S32 | getNumPasses () |
virtual void | render (S32 pass=0)=0 |
virtual void | prerender ()=0 |
virtual U32 | getVertexDataMask ()=0 |
virtual BOOL | verify () const |
virtual S32 | getVertexShaderLevel () const |
virtual LLDrawPool * | instancePool ()=0 |
virtual LLViewerImage * | getTexture ()=0 |
virtual BOOL | isFacePool () |
virtual void | resetDrawOrders ()=0 |
Static Public Member Functions | |
static LLDrawPool * | createPool (const U32 type, LLViewerImage *tex0=NULL) |
Static Public Attributes | |
static S32 | sNumDrawPools = 0 |
Protected Attributes | |
S32 | mVertexShaderLevel |
S32 | mId |
U32 | mType |
Definition at line 46 of file lldrawpool.h.
anonymous enum |
POOL_SIMPLE | |
POOL_TERRAIN | |
POOL_TREE | |
POOL_SKY | |
POOL_WL_SKY | |
POOL_GROUND | |
POOL_BUMP | |
POOL_INVISIBLE | |
POOL_AVATAR | |
POOL_WATER | |
POOL_GLOW | |
POOL_ALPHA | |
NUM_POOL_TYPES |
Definition at line 51 of file lldrawpool.h.
LLDrawPool::LLDrawPool | ( | const U32 | type | ) |
Definition at line 112 of file lldrawpool.cpp.
References mId, mType, mVertexShaderLevel, and sNumDrawPools.
LLDrawPool::~LLDrawPool | ( | ) | [virtual] |
Definition at line 120 of file lldrawpool.cpp.
virtual BOOL LLDrawPool::isDead | ( | ) | [pure virtual] |
Implemented in LLRenderPass, LLFacePool, and LLDrawPoolWLSky.
Referenced by LLPipeline::rebuildPools().
S32 LLDrawPool::getId | ( | ) | const [inline] |
Definition at line 74 of file lldrawpool.h.
References mId.
Referenced by LLPipeline::compare_pools::operator()().
U32 LLDrawPool::getType | ( | ) | const [inline] |
Definition at line 75 of file lldrawpool.h.
References mType.
Referenced by LLPipeline::addToQuickLookup(), LLPipeline::compare_pools::operator()(), LLFacePool::printDebugInfo(), LLPipeline::removeFromQuickLookup(), LLPipeline::renderForSelect(), LLPipeline::renderGeom(), and LLDrawPoolTerrain::~LLDrawPoolTerrain().
LLViewerImage * LLDrawPool::getDebugTexture | ( | ) | [virtual] |
Reimplemented in LLRenderPass, LLDrawPoolAvatar, LLDrawPoolTerrain, LLDrawPoolTree, LLDrawPoolWater, and LLDrawPoolWLSky.
Definition at line 125 of file lldrawpool.cpp.
References NULL.
void LLDrawPool::beginRenderPass | ( | S32 | pass | ) | [virtual] |
Reimplemented in LLDrawPoolAlpha, LLDrawPoolAvatar, LLDrawPoolBump, LLDrawPoolInvisible, LLDrawPoolClouds, LLDrawPoolSimple, LLDrawPoolTerrain, LLDrawPoolTree, and LLDrawPoolWLSky.
Definition at line 131 of file lldrawpool.cpp.
Referenced by LLDrawPoolTerrain::beginRenderPass(), and LLPipeline::renderGeom().
void LLDrawPool::endRenderPass | ( | S32 | pass | ) | [virtual] |
Reimplemented in LLDrawPoolAlpha, LLDrawPoolAvatar, LLDrawPoolBump, LLDrawPoolInvisible, LLDrawPoolSimple, LLDrawPoolSky, LLDrawPoolTerrain, LLDrawPoolTree, and LLDrawPoolWLSky.
Definition at line 136 of file lldrawpool.cpp.
Referenced by LLDrawPoolTerrain::endRenderPass(), LLDrawPoolSimple::endRenderPass(), LLDrawPoolAlpha::endRenderPass(), and LLPipeline::renderGeom().
virtual S32 LLDrawPool::getNumPasses | ( | ) | [inline, virtual] |
Reimplemented in LLDrawPoolAlpha, LLDrawPoolAvatar, LLDrawPoolBump, LLDrawPoolInvisible, LLDrawPoolSimple, LLDrawPoolTree, LLDrawPoolWater, and LLDrawPoolWLSky.
Definition at line 80 of file lldrawpool.h.
Referenced by LLPipeline::renderGeom().
virtual void LLDrawPool::render | ( | S32 | pass = 0 |
) | [pure virtual] |
Implemented in LLDrawPoolAlpha, LLDrawPoolAlphaPostWater, LLDrawPoolAvatar, LLDrawPoolBump, LLDrawPoolInvisible, LLDrawPoolClouds, LLDrawPoolGround, LLDrawPoolSimple, LLDrawPoolGlow, LLDrawPoolSky, LLDrawPoolTerrain, LLDrawPoolTree, LLDrawPoolWater, and LLDrawPoolWLSky.
Referenced by LLPipeline::renderGeom().
virtual void LLDrawPool::prerender | ( | ) | [pure virtual] |
Implemented in LLDrawPoolAlpha, LLDrawPoolAvatar, LLDrawPoolBump, LLDrawPoolInvisible, LLDrawPoolClouds, LLDrawPoolGround, LLDrawPoolSimple, LLDrawPoolGlow, LLDrawPoolSky, LLDrawPoolTerrain, LLDrawPoolTree, LLDrawPoolWater, and LLDrawPoolWLSky.
Referenced by LLPipeline::renderGeom().
virtual U32 LLDrawPool::getVertexDataMask | ( | ) | [pure virtual] |
Implemented in LLDrawPoolAlpha, LLDrawPoolAvatar, LLDrawPoolBump, LLDrawPoolInvisible, LLDrawPoolClouds, LLDrawPoolGround, LLDrawPoolSimple, LLDrawPoolGlow, LLDrawPoolSky, LLDrawPoolTerrain, LLDrawPoolTree, LLDrawPoolWater, and LLDrawPoolWLSky.
Referenced by LLFace::renderIndexed().
virtual BOOL LLDrawPool::verify | ( | ) | const [inline, virtual] |
Reimplemented in LLFacePool, LLDrawPoolTree, and LLDrawPoolWLSky.
Definition at line 84 of file lldrawpool.h.
References TRUE.
Referenced by LLPipeline::verify().
virtual S32 LLDrawPool::getVertexShaderLevel | ( | ) | const [inline, virtual] |
Reimplemented in LLDrawPoolAvatar, and LLDrawPoolWLSky.
Definition at line 85 of file lldrawpool.h.
References mVertexShaderLevel.
Referenced by LLViewerJointMesh::drawShape(), LLPipeline::setupHWLights(), LLVOSky::updateGeometry(), LLVOAvatar::updateLOD(), and LLViewerJointMesh::uploadJointMatrices().
LLDrawPool * LLDrawPool::createPool | ( | const U32 | type, | |
LLViewerImage * | tex0 = NULL | |||
) | [static] |
Definition at line 62 of file lldrawpool.cpp.
References llassert, llendl, llerrs, mType, NULL, POOL_ALPHA, POOL_AVATAR, POOL_BUMP, POOL_GLOW, POOL_GROUND, POOL_INVISIBLE, POOL_SIMPLE, POOL_SKY, POOL_TERRAIN, POOL_TREE, POOL_WATER, and POOL_WL_SKY.
Referenced by LLPipeline::getPool().
virtual LLDrawPool* LLDrawPool::instancePool | ( | ) | [pure virtual] |
Implemented in LLRenderPass, LLDrawPoolAvatar, LLDrawPoolClouds, LLDrawPoolGround, LLDrawPoolSky, LLDrawPoolTerrain, LLDrawPoolTree, LLDrawPoolWater, and LLDrawPoolWLSky.
virtual LLViewerImage* LLDrawPool::getTexture | ( | ) | [pure virtual] |
Implemented in LLRenderPass, LLFacePool, LLDrawPoolTerrain, LLDrawPoolTree, and LLDrawPoolWLSky.
Referenced by LLPipeline::addToQuickLookup(), and LLPipeline::removeFromQuickLookup().
virtual BOOL LLDrawPool::isFacePool | ( | ) | [inline, virtual] |
Reimplemented in LLFacePool, and LLDrawPoolWLSky.
Definition at line 90 of file lldrawpool.h.
References FALSE.
Referenced by LLPipeline::cleanup(), LLPipeline::dirtyPoolObjectTextures(), and LLPipeline::renderForSelect().
virtual void LLDrawPool::resetDrawOrders | ( | ) | [pure virtual] |
Implemented in LLRenderPass, LLFacePool, and LLDrawPoolWLSky.
Referenced by LLPipeline::resetDrawOrders().
S32 LLDrawPool::sNumDrawPools = 0 [static] |
S32 LLDrawPool::mVertexShaderLevel [protected] |
Definition at line 94 of file lldrawpool.h.
Referenced by LLDrawPoolTerrain::beginRenderPass(), LLDrawPoolSimple::beginRenderPass(), LLDrawPoolBump::beginRenderPass(), LLDrawPoolAlpha::beginRenderPass(), LLDrawPoolBump::beginShiny(), LLDrawPoolTerrain::endRenderPass(), LLDrawPoolSimple::endRenderPass(), LLDrawPoolBump::endRenderPass(), LLDrawPoolAvatar::endRigid(), LLDrawPoolBump::endShiny(), LLDrawPoolAvatar::endSkinned(), LLDrawPoolWLSky::getVertexShaderLevel(), getVertexShaderLevel(), LLDrawPool(), LLDrawPoolBump::numBumpPasses(), LLDrawPoolWater::prerender(), LLDrawPoolTree::prerender(), LLDrawPoolTerrain::prerender(), LLDrawPoolSky::prerender(), LLDrawPoolSimple::prerender(), LLDrawPoolGround::prerender(), LLDrawPoolClouds::prerender(), LLDrawPoolBump::prerender(), LLDrawPoolAvatar::prerender(), LLDrawPoolAlpha::prerender(), LLDrawPoolBump::pushBatch(), LLDrawPoolWater::render(), LLDrawPoolTerrain::render(), LLDrawPoolSky::render(), LLDrawPoolSimple::render(), LLDrawPoolBump::render(), LLDrawPoolBump::renderShiny(), and LLDrawPoolWater::shade().
S32 LLDrawPool::mId [protected] |
U32 LLDrawPool::mType [protected] |
Definition at line 96 of file lldrawpool.h.
Referenced by createPool(), getType(), and LLDrawPool().