#include <lltexlayer.h>
Definition at line 318 of file lltexlayer.h.
typedef std::vector<LLTexParamColor *> LLTexLayer::color_list_t [protected] |
Definition at line 353 of file lltexlayer.h.
typedef std::vector<LLTexLayerParamAlpha *> LLTexLayer::alpha_list_t [protected] |
Definition at line 358 of file lltexlayer.h.
typedef std::deque<LLMaskedMorph> LLTexLayer::morph_list_t [protected] |
Definition at line 362 of file lltexlayer.h.
typedef std::map<U32, U8*> LLTexLayer::alpha_cache_t [protected] |
Definition at line 364 of file lltexlayer.h.
LLTexLayer::LLTexLayer | ( | LLTexLayerSet * | layer_set | ) |
Definition at line 1160 of file lltexlayer.cpp.
LLTexLayer::~LLTexLayer | ( | ) |
LLTexLayerInfo* LLTexLayer::getInfo | ( | ) | const [inline] |
Definition at line 325 of file lltexlayer.h.
References mInfo.
Referenced by findNetColor(), getAlphaData(), render(), and renderAlphaMasks().
BOOL LLTexLayer::setInfo | ( | LLTexLayerInfo * | info | ) |
Definition at line 1188 of file lltexlayer.cpp.
References addMaskedMorph(), FALSE, LLTexLayerSet::getAvatar(), getTexLayerSet(), LLCharacter::getVisualParam(), llassert, LLTexLayerInfo::mAlphaInfoList, LLTexLayerInfo::mColorInfoList, mInfo, LLTexLayerInfo::mMorphNameList, mParamAlphaList, mParamColorList, LLTexLayerInfo::mRenderPass, mTexLayerSet, NULL, RP_BUMP, LLTexLayerSet::setBump(), LLTexLayerParamAlpha::setInfo(), LLTexParamColor::setInfo(), and TRUE.
Referenced by LLTexLayerSet::setInfo().
Definition at line 1283 of file lltexlayer.cpp.
References LLImageGL::bind(), LLGLImmediate::blendFunc(), LLGLImmediate::color4fv(), LLPipeline::disableLights(), FALSE, findNetColor(), LLGLImmediate::flush(), LLTexLayerSet::getAvatar(), LLImageGL::getClampS(), LLImageGL::getClampT(), LLTexStaticImageList::getImageGL(), getInfo(), LLVOAvatar::getLocalTextureGL(), LLTexLayerParamAlpha::getSkip(), gGL, gl_rect_2d_simple(), gl_rect_2d_simple_tex(), gPipeline, gTexStaticImageList, is_approx_zero(), llendl, llinfos, mMaskedMorphs, LLTexLayerInfo::mName, mParamAlphaList, mTexLayerSet, LLColor4::mV, NULL, renderAlphaMasks(), LLImageGL::setClamp(), stop_glerror, TRUE, LLImageGL::unbindTexture(), and VW.
Referenced by LLTexLayerSet::render(), and LLTexLayerSet::renderBump().
void LLTexLayer::requestUpdate | ( | ) |
Definition at line 1741 of file lltexlayer.cpp.
References mTexLayerSet, and LLTexLayerSet::requestUpdate().
LLTexLayerSet* LLTexLayer::getTexLayerSet | ( | ) | [inline] |
Definition at line 331 of file lltexlayer.h.
References mTexLayerSet.
Referenced by LLTexLayerParamAlpha::getSkip(), LLTexLayerParamAlpha::render(), renderAlphaMasks(), LLTexLayerParamAlpha::setInfo(), setInfo(), LLTexParamColor::setWeight(), and LLTexLayerParamAlpha::setWeight().
const std::string& LLTexLayer::getName | ( | void | ) | [inline] |
void LLTexLayer::addMaskedMorph | ( | LLPolyMorphTarget * | morph_target, | |
BOOL | invert | |||
) |
Definition at line 1746 of file lltexlayer.cpp.
References mMaskedMorphs.
Referenced by setInfo().
void LLTexLayer::deleteCaches | ( | ) |
Definition at line 1272 of file lltexlayer.cpp.
References LLTexLayerParamAlpha::deleteCaches(), mParamAlphaList, mStaticImageRaw, and NULL.
Referenced by LLTexLayerSet::deleteCaches().
U8 * LLTexLayer::getAlphaData | ( | ) |
Definition at line 1415 of file lltexlayer.cpp.
References LLTexLayerSet::getAvatar(), LLCRC::getCRC(), getInfo(), LLVOAvatar::getLocalTextureID(), LLVisualParam::getWeight(), mAlphaCache, LLUUID::mData, mParamAlphaList, mTexLayerSet, LLCRC::update(), and UUID_BYTES.
Referenced by LLTexLayerSet::gatherAlphaMasks().
Definition at line 1658 of file lltexlayer.cpp.
References LLPolyMorphTarget::applyMask(), LLMaskedMorph::mInvert, mMaskedMorphs, and LLMaskedMorph::mMorphTarget.
Referenced by LLTexLayerSet::applyMorphMask().
void LLTexLayer::invalidateMorphMasks | ( | ) |
Definition at line 1751 of file lltexlayer.cpp.
References FALSE, and mMorphMasksValid.
Referenced by LLTexLayerSet::gatherAlphaMasks(), and LLTexLayerParamAlpha::setWeight().
ERenderPass LLTexLayer::getRenderPass | ( | ) | [inline] |
Definition at line 341 of file lltexlayer.h.
References mInfo, and LLTexLayerInfo::mRenderPass.
Referenced by LLTexLayerSet::render(), and LLTexLayerSet::renderBump().
const LLString& LLTexLayer::getGlobalColor | ( | ) | [inline] |
Definition at line 342 of file lltexlayer.h.
References LLTexLayerInfo::mGlobalColor, and mInfo.
Referenced by findNetColor().
Definition at line 1434 of file lltexlayer.cpp.
References FALSE, LLTexLayerSet::getAvatar(), LLVOAvatar::getGlobalColor(), getGlobalColor(), getInfo(), LLTexParamColor::getNetColor(), LLTexParamColor::getOperation(), LLVisualParam::getWeight(), lerp(), llassert, LLTexLayerInfo::mFixedColor, mParamColorList, mTexLayerSet, LLColor4::mV, OP_ADD, OP_BLEND, OP_MULTIPLY, LLColor4::setToWhite(), LLColor4::setVec(), TRUE, VW, VX, VY, and VZ.
Referenced by LLTexLayerSet::gatherAlphaMasks(), and render().
BOOL LLTexLayer::renderImageRaw | ( | U8 * | in_data, | |
S32 | in_width, | |||
S32 | in_height, | |||
S32 | in_components, | |||
S32 | width, | |||
S32 | height, | |||
BOOL | is_mask | |||
) |
Definition at line 1669 of file lltexlayer.cpp.
References LLImageGL::bindExternalTexture(), LLVOAvatar::bindScratchTexture(), FALSE, indra::ipc::russ::format(), LLTexLayerSet::getAvatar(), gl_rect_2d_simple_tex(), llassert, mTexLayerSet, stop_glerror, TRUE, LLImageGL::unbindTexture(), VOAVATAR_SCRATCH_TEX_HEIGHT, and VOAVATAR_SCRATCH_TEX_WIDTH.
Definition at line 1503 of file lltexlayer.cpp.
References LLPolyMorphTarget::applyMask(), LLImageGL::bind(), LLGLImmediate::blendFunc(), LLGLImmediate::color4f(), LLGLImmediate::color4fv(), LLVOAvatar::dirtyMesh(), FALSE, LLGLImmediate::flush(), LLTexLayerSet::getAvatar(), LLImageGL::getClampS(), LLImageGL::getClampT(), LLImageGL::getComponents(), LLCRC::getCRC(), LLTexStaticImageList::getImageGL(), getInfo(), LLVOAvatar::getLocalTextureGL(), LLVOAvatar::getLocalTextureID(), LLTexLayerParamAlpha::getMultiplyBlend(), getTexLayerSet(), LLVisualParam::getWeight(), gGL, gl_rect_2d_simple(), gl_rect_2d_simple_tex(), gTexStaticImageList, llassert, mAlphaCache, LLUUID::mData, LLMaskedMorph::mInvert, LLVOAvatar::mIsSelf, mMaskedMorphs, mMorphMasksValid, LLMaskedMorph::mMorphTarget, mParamAlphaList, LLTexLayerInfo::mStaticImageIsMask, mTexLayerSet, LLColor4::mV, NULL, LLTexLayerParamAlpha::render(), S32, LLImageGL::setClamp(), TRUE, LLImageGL::unbindTexture(), LLCRC::update(), UUID_BYTES, and VW.
Referenced by LLTexLayerSet::gatherAlphaMasks(), and render().
BOOL LLTexLayer::hasAlphaParams | ( | ) | [inline] |
Definition at line 346 of file lltexlayer.h.
References mParamAlphaList.
Referenced by LLTexLayerSet::gatherAlphaMasks().
LLTexLayerSet* LLTexLayer::mTexLayerSet [protected] |
Definition at line 349 of file lltexlayer.h.
Referenced by findNetColor(), getAlphaData(), getTexLayerSet(), render(), renderAlphaMasks(), renderImageRaw(), requestUpdate(), and setInfo().
LLPointer<LLImageRaw> LLTexLayer::mStaticImageRaw [protected] |
color_list_t LLTexLayer::mParamColorList [protected] |
alpha_list_t LLTexLayer::mParamAlphaList [protected] |
Definition at line 359 of file lltexlayer.h.
Referenced by deleteCaches(), getAlphaData(), hasAlphaParams(), render(), renderAlphaMasks(), and setInfo().
morph_list_t LLTexLayer::mMaskedMorphs [protected] |
Definition at line 363 of file lltexlayer.h.
Referenced by addMaskedMorph(), applyMorphMask(), render(), and renderAlphaMasks().
alpha_cache_t LLTexLayer::mAlphaCache [protected] |
Definition at line 365 of file lltexlayer.h.
Referenced by getAlphaData(), renderAlphaMasks(), and ~LLTexLayer().
BOOL LLTexLayer::mMorphMasksValid [protected] |
Definition at line 366 of file lltexlayer.h.
Referenced by invalidateMorphMasks(), and renderAlphaMasks().
BOOL LLTexLayer::mStaticImageInvalid [protected] |
Definition at line 367 of file lltexlayer.h.
LLTexLayerInfo* LLTexLayer::mInfo [protected] |
Definition at line 369 of file lltexlayer.h.
Referenced by getGlobalColor(), getInfo(), getName(), getRenderPass(), and setInfo().