diff options
author | Don Kjer <don@lindenlab.com> | 2012-10-02 01:02:34 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2012-10-02 01:02:34 +0000 |
commit | 5483bc28ae6b33bf5b2371d46648ad20975daf8c (patch) | |
tree | 37f0334ac9e84304db8c6ee4063e56d61696cbbd /indra/llappearance/lltexlayer.cpp | |
parent | 5010cf72d345e60d0a367ea213dafe8727414612 (diff) |
Moved gatherMorphMaskAlpha into llappearance.
Diffstat (limited to 'indra/llappearance/lltexlayer.cpp')
-rw-r--r-- | indra/llappearance/lltexlayer.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/llappearance/lltexlayer.cpp b/indra/llappearance/lltexlayer.cpp index 6f079b4abb..16f94c48dd 100644 --- a/indra/llappearance/lltexlayer.cpp +++ b/indra/llappearance/lltexlayer.cpp @@ -516,6 +516,21 @@ const LLTexLayerSetBuffer* LLTexLayerSet::getComposite() const return mComposite; } +void LLTexLayerSet::gatherMorphMaskAlpha(U8 *data, S32 origin_x, S32 origin_y, S32 width, S32 height) +{ + memset(data, 255, width * height); + + for( layer_list_t::iterator iter = mLayerList.begin(); iter != mLayerList.end(); iter++ ) + { + LLTexLayerInterface* layer = *iter; + layer->gatherAlphaMasks(data, origin_x, origin_y, width, height); + } + + // Set alpha back to that of our alpha masks. + renderAlphaMaskTextures(origin_x, origin_y, width, height, true); +} + + void LLTexLayerSet::renderAlphaMaskTextures(S32 x, S32 y, S32 width, S32 height, bool forceClear) { const LLTexLayerSetInfo *info = getInfo(); |