#include <llvlcomposition.h>
Inheritance diagram for LLVLComposition:
Definition at line 40 of file llvlcomposition.h.
Definition at line 55 of file llvlcomposition.h.
Definition at line 65 of file llvlcomposition.cpp.
References CORNER_COUNT, FALSE, LLControlGroup::getF32(), LLControlGroup::getString(), gSavedSettings, gViewerArt, i, mHeightRange, mStartHeight, mSurfacep, mTexScaleX, mTexScaleY, mTexturesLoaded, S32, and setDetailTextureID().
LLVLComposition::~LLVLComposition | ( | ) |
Definition at line 101 of file llvlcomposition.cpp.
BOOL LLVLComposition::generateComposition | ( | ) |
Definition at line 227 of file llvlcomposition.cpp.
References BASE_SIZE, LLViewerImage::BOOST_TERRAIN, FALSE, height, i, llmin(), MAX_DISCARD_LEVEL, mDetailTextures, mParamsReady, S32, TRUE, and width.
Referenced by LLSurfacePatch::updateTexture().
BOOL LLVLComposition::generateHeights | ( | const F32 | x, | |
const F32 | y, | |||
const F32 | width, | |||
const F32 | height | |||
) |
Definition at line 122 of file llvlcomposition.cpp.
References bilinear(), f, FALSE, from_region_handle(), LLViewerRegion::getHandle(), LLSurface::getRegion(), i, j, llassert, llmax(), llmin(), llround(), LLViewerLayer::mDatap, LLVector3d::mdV, mHeightRange, mParamsReady, LLViewerLayer::mScale, LLViewerLayer::mScaleInv, mStartHeight, mSurfacep, LLVector3::mV, LLViewerLayer::mWidth, noise2(), NORTHEAST, NORTHWEST, LLSurface::resolveHeightRegion(), S32, SOUTHEAST, SOUTHWEST, TRUE, turbulence2(), VX, and VY.
Referenced by LLSurfacePatch::updateTexture().
BOOL LLVLComposition::generateTexture | ( | const F32 | x, | |
const F32 | y, | |||
const F32 | width, | |||
const F32 | height | |||
) |
Definition at line 266 of file llvlcomposition.cpp.
References a, b, BASE_SIZE, LLViewerImage::BOOST_NONE, f, FALSE, LLImageGL::getComponents(), LLTimer::getElapsedTimeF32(), LLImageGL::getHeight(), LLSurface::getSTexture(), LLViewerLayer::getValueScaled(), LLImageGL::getWidth(), i, j, llassert, llclamp(), llendl, llfloor(), llmin(), llround(), lltrunc(), llwarns, MAX_DISCARD_LEVEL, mDetailTextures, mRawImages, LLViewerLayer::mScale, LLViewerLayer::mScaleInv, mSurfacep, mTexScaleX, mTexScaleY, LLViewerLayer::mWidth, NULL, S32, LLImageGL::setSubImage(), LLSurface::sTexelsUpdated, LLSurface::sTextureUpdateTime, and TRUE.
Referenced by LLSurfacePatch::updateTexture().
LLViewerImage * LLVLComposition::getDetailTexture | ( | S32 | corner | ) |
Definition at line 473 of file llvlcomposition.cpp.
References mDetailTextures.
Referenced by LLPanelRegionTextureInfo::refreshFromRegion().
Definition at line 493 of file llvlcomposition.cpp.
References mHeightRange.
Referenced by LLPanelRegionTextureInfo::refreshFromRegion().
BOOL LLVLComposition::getParamsReady | ( | ) | const [inline] |
Definition at line 75 of file llvlcomposition.h.
References mParamsReady.
Referenced by LLViewerRegion::unpackRegionHandshake().
Definition at line 483 of file llvlcomposition.cpp.
References mStartHeight.
Referenced by LLPanelRegionTextureInfo::refreshFromRegion().
Definition at line 112 of file llvlcomposition.cpp.
References LLViewerImageList::getImage(), gImageList, mDetailTextures, mRawImages, and NULL.
Referenced by LLVLComposition(), and LLViewerRegion::unpackRegionHandshake().
Definition at line 498 of file llvlcomposition.cpp.
References mHeightRange.
Referenced by LLViewerRegion::unpackRegionHandshake().
void LLVLComposition::setParamsReady | ( | ) | [inline] |
Definition at line 74 of file llvlcomposition.h.
References mParamsReady, and TRUE.
Referenced by LLViewerRegion::unpackRegionHandshake().
Definition at line 488 of file llvlcomposition.cpp.
References mStartHeight.
Referenced by LLViewerRegion::unpackRegionHandshake().
Definition at line 106 of file llvlcomposition.cpp.
References mSurfacep.
Referenced by LLViewerRegion::LLViewerRegion().
friend class LLDrawPoolTerrain [friend] |
Definition at line 73 of file llvlcomposition.h.
friend class LLVOSurfacePatch [friend] |
Definition at line 72 of file llvlcomposition.h.
LLPointer<LLViewerImage> LLVLComposition::mDetailTextures[CORNER_COUNT] [protected] |
Definition at line 81 of file llvlcomposition.h.
Referenced by generateComposition(), generateTexture(), getDetailTexture(), getDetailTextureID(), LLDrawPoolTerrain::render(), LLDrawPoolTerrain::renderFull2TU(), LLDrawPoolTerrain::renderFull4TU(), LLDrawPoolTerrain::renderFull4TUShader(), and setDetailTextureID().
F32 LLVLComposition::mHeightRange[CORNER_COUNT] [protected] |
Definition at line 85 of file llvlcomposition.h.
Referenced by generateHeights(), getHeightRange(), LLVLComposition(), and setHeightRange().
BOOL LLVLComposition::mParamsReady [protected] |
Definition at line 77 of file llvlcomposition.h.
Referenced by generateComposition(), generateHeights(), getParamsReady(), and setParamsReady().
LLPointer<LLImageRaw> LLVLComposition::mRawImages[CORNER_COUNT] [protected] |
Definition at line 82 of file llvlcomposition.h.
Referenced by generateTexture(), and setDetailTextureID().
F32 LLVLComposition::mStartHeight[CORNER_COUNT] [protected] |
Definition at line 84 of file llvlcomposition.h.
Referenced by generateHeights(), getStartHeight(), LLVLComposition(), and setStartHeight().
LLSurface* LLVLComposition::mSurfacep [protected] |
Definition at line 78 of file llvlcomposition.h.
Referenced by generateHeights(), generateTexture(), LLVLComposition(), and setSurface().
F32 LLVLComposition::mTexScaleX [protected] |
Definition at line 87 of file llvlcomposition.h.
Referenced by generateTexture(), and LLVLComposition().
F32 LLVLComposition::mTexScaleY [protected] |
Definition at line 88 of file llvlcomposition.h.
Referenced by generateTexture(), and LLVLComposition().
BOOL LLVLComposition::mTexturesLoaded [protected] |