#include <lldrawpooltree.h>
Public Types | |
enum | { VERTEX_DATA_MASK } |
Public Member Functions | |
virtual U32 | getVertexDataMask () |
LLDrawPoolTree (LLViewerImage *texturep) | |
LLDrawPool * | instancePool () |
void | prerender () |
void | beginRenderPass (S32 pass) |
void | render (S32 pass=0) |
void | endRenderPass (S32 pass) |
S32 | getNumPasses () |
void | renderForSelect () |
BOOL | verify () const |
LLViewerImage * | getTexture () |
LLViewerImage * | getDebugTexture () |
LLColor3 | getDebugColor () const |
Static Public Attributes | |
static S32 | sDiffTex = 0 |
Private Member Functions | |
void | renderTree (BOOL selecting=FALSE) |
Private Attributes | |
LLPointer< LLViewerImage > | mTexturep |
Definition at line 37 of file lldrawpooltree.h.
anonymous enum |
LLDrawPoolTree::LLDrawPoolTree | ( | LLViewerImage * | texturep | ) |
Definition at line 49 of file lldrawpooltree.cpp.
References FALSE, and mTexturep.
Referenced by instancePool().
virtual U32 LLDrawPoolTree::getVertexDataMask | ( | ) | [inline, virtual] |
LLDrawPool * LLDrawPoolTree::instancePool | ( | ) | [virtual] |
Implements LLDrawPool.
Definition at line 57 of file lldrawpooltree.cpp.
References LLDrawPoolTree(), and mTexturep.
void LLDrawPoolTree::prerender | ( | ) | [virtual] |
Implements LLDrawPool.
Definition at line 62 of file lldrawpooltree.cpp.
References LLShaderMgr::getVertexShaderLevel(), LLDrawPool::mVertexShaderLevel, and LLShaderMgr::SHADER_OBJECT.
void LLDrawPoolTree::beginRenderPass | ( | S32 | pass | ) | [virtual] |
Reimplemented from LLDrawPool.
Definition at line 67 of file lldrawpooltree.cpp.
References LLGLSLShader::bind(), LLPipeline::canUseWindLightShadersOnObjects(), LLPipeline::enableLightsDynamic(), LLFastTimer::FTM_RENDER_TREES, gObjectSimpleProgram, gObjectSimpleWaterProgram, gPipeline, and LLPipeline::sUnderWaterRender.
void LLDrawPoolTree::render | ( | S32 | pass = 0 |
) | [virtual] |
Implements LLDrawPool.
Definition at line 91 of file lldrawpooltree.cpp.
References LLFastTimer::FTM_RENDER_TREES, LLFacePool::mDrawFace, and renderTree().
void LLDrawPoolTree::endRenderPass | ( | S32 | pass | ) | [virtual] |
Reimplemented from LLDrawPool.
Definition at line 106 of file lldrawpooltree.cpp.
References LLPipeline::canUseWindLightShadersOnObjects(), LLFastTimer::FTM_RENDER_TREES, gPipeline, and LLGLSLShader::unbind().
S32 LLDrawPoolTree::getNumPasses | ( | ) | [inline, virtual] |
void LLDrawPoolTree::renderForSelect | ( | ) | [virtual] |
Implements LLFacePool.
Definition at line 117 of file lldrawpooltree.cpp.
References LLGLImmediate::blendFunc(), gGL, LLFacePool::mDrawFace, renderTree(), and TRUE.
BOOL LLDrawPoolTree::verify | ( | ) | const [virtual] |
LLViewerImage * LLDrawPoolTree::getTexture | ( | ) | [virtual] |
Reimplemented from LLFacePool.
Definition at line 287 of file lldrawpooltree.cpp.
References mTexturep.
LLViewerImage * LLDrawPoolTree::getDebugTexture | ( | ) | [virtual] |
Reimplemented from LLDrawPool.
Definition at line 292 of file lldrawpooltree.cpp.
References mTexturep.
LLColor3 LLDrawPoolTree::getDebugColor | ( | ) | const |
Definition at line 298 of file lldrawpooltree.cpp.
void LLDrawPoolTree::renderTree | ( | BOOL | selecting = FALSE |
) | [private] |
Definition at line 152 of file lldrawpooltree.cpp.
References LLViewerImage::bindTexture(), DEG_TO_RAD, LLVOTree::drawBranchPipeline(), LLPointer< Type >::get(), LLViewerObject::getAppAngle(), LLFace::getDrawable(), LLViewerObject::getPositionAgent(), LLXform::getRotation(), LLXform::getScale(), LLDrawable::getVObj(), gGLLastMatrix, gGLModelView, i, LLDrawable::isDead(), LLPointer< Type >::isNull(), j, LLVector3::magVec(), LLVOTree::mBranches, LLVOTree::mDepth, LLFacePool::mDrawFace, LLVOTree::mDroop, LLViewerObject::mGLName, LLMatrix4::mMatrix, mTexturep, LLVOTree::mTrunkBend, LLVOTree::mTrunkDepth, LLVOTree::mTwist, LLVector3::mV, LLFace::mVertexBuffer, NULL, S32, sDiffTex, LLMatrix4::setTranslation(), LLVOTree::sLODAngles, LLVOTree::sTreeFactor, TRUE, VERTEX_DATA_MASK, VX, VY, and VZ.
Referenced by render(), and renderForSelect().
LLPointer<LLViewerImage> LLDrawPoolTree::mTexturep [private] |
Definition at line 39 of file lldrawpooltree.h.
Referenced by getDebugTexture(), getTexture(), instancePool(), LLDrawPoolTree(), and renderTree().
S32 LLDrawPoolTree::sDiffTex = 0 [static] |