LLTexLayerSet Class Reference

#include <lltexlayer.h>

Collaboration diagram for LLTexLayerSet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLTexLayerSet (LLVOAvatar *avatar)
 ~LLTexLayerSet ()
LLTexLayerSetInfogetInfo () const
BOOL setInfo (LLTexLayerSetInfo *info)
BOOL render (S32 x, S32 y, S32 width, S32 height)
BOOL renderBump (S32 x, S32 y, S32 width, S32 height)
BOOL isBodyRegion (const char *region)
LLTexLayerSetBuffergetComposite ()
void requestUpdate ()
void requestUpload ()
void cancelUpload ()
LLVOAvatargetAvatar ()
void updateComposite ()
BOOL isLocalTextureDataAvailable ()
BOOL isLocalTextureDataFinal ()
void createComposite ()
void destroyComposite ()
void setUpdatesEnabled (BOOL b)
BOOL getUpdatesEnabled ()
void deleteCaches ()
void gatherAlphaMasks (U8 *data, S32 width, S32 height)
void applyMorphMask (U8 *tex_data, S32 width, S32 height, S32 num_components)
const LLStringgetBodyRegion ()
BOOL hasComposite ()
void setBump (BOOL b)
BOOL hasBump ()

Static Public Attributes

static BOOL sHasCaches = FALSE

Protected Types

typedef std::vector< LLTexLayer * > layer_list_t

Protected Attributes

layer_list_t mLayerList
LLTexLayerSetBuffermComposite
LLVOAvatarmAvatar
BOOL mUpdatesEnabled
BOOL mHasBump
LLTexLayerSetInfomInfo

Detailed Description

Definition at line 251 of file lltexlayer.h.


Member Typedef Documentation

typedef std::vector<LLTexLayer *> LLTexLayerSet::layer_list_t [protected]

Definition at line 289 of file lltexlayer.h.


Constructor & Destructor Documentation

LLTexLayerSet::LLTexLayerSet ( LLVOAvatar avatar  ) 

Definition at line 666 of file lltexlayer.cpp.

LLTexLayerSet::~LLTexLayerSet (  ) 

Definition at line 676 of file lltexlayer.cpp.

References mComposite, and mLayerList.


Member Function Documentation

void LLTexLayerSet::applyMorphMask ( U8 tex_data,
S32  width,
S32  height,
S32  num_components 
)

Definition at line 981 of file lltexlayer.cpp.

References mLayerList.

void LLTexLayerSet::cancelUpload (  ) 

Definition at line 898 of file lltexlayer.cpp.

References LLTexLayerSetBuffer::cancelUpload(), and mComposite.

Referenced by LLVOAvatar::forceBakeAllTextures(), and LLVOAvatar::setCachedBakedTexture().

void LLTexLayerSet::createComposite (  ) 

Definition at line 906 of file lltexlayer.cpp.

References height, mAvatar, mComposite, mHasBump, LLTexLayerSetInfo::mHeight, mInfo, LLVOAvatar::mIsSelf, LLTexLayerSetInfo::mWidth, S32, and width.

Referenced by getComposite(), requestUpdate(), requestUpload(), updateComposite(), and LLVOAvatar::updateMeshTextures().

void LLTexLayerSet::deleteCaches (  ) 

Definition at line 735 of file lltexlayer.cpp.

References mLayerList.

Referenced by LLVOAvatar::deleteLayerSetCaches(), and LLTexLayerSetBuffer::readBackAndUpload().

void LLTexLayerSet::destroyComposite (  ) 

Definition at line 922 of file lltexlayer.cpp.

References mComposite, and NULL.

Referenced by LLVOAvatar::updateMeshTextures(), and LLVOAvatar::useBakedTexture().

void LLTexLayerSet::gatherAlphaMasks ( U8 data,
S32  width,
S32  height 
)

Definition at line 949 of file lltexlayer.cpp.

References LLDynamicTexture::getOriginX(), LLDynamicTexture::getOriginY(), i, mComposite, mLayerList, S32, and size.

Referenced by LLTexLayerSetBuffer::readBackAndUpload().

LLVOAvatar* LLTexLayerSet::getAvatar (  )  [inline]

Definition at line 269 of file lltexlayer.h.

References mAvatar.

Referenced by LLTexLayer::findNetColor(), LLTexLayer::getAlphaData(), LLTexLayerParamAlpha::getSkip(), LLTexLayerSetBuffer::needsRender(), LLTexLayerSetBuffer::readBackAndUpload(), LLTexLayerParamAlpha::render(), LLTexLayer::render(), LLTexLayer::renderAlphaMasks(), LLTexLayer::renderImageRaw(), LLTexLayerParamAlpha::setInfo(), and LLTexLayerParamAlpha::setWeight().

const LLString& LLTexLayerSet::getBodyRegion (  )  [inline]

Definition at line 280 of file lltexlayer.h.

References LLTexLayerSetInfo::mBodyRegion, and mInfo.

Referenced by LLTexLayerSetBuffer::readBackAndUpload(), and LLTexLayerSetBuffer::render().

LLTexLayerSetBuffer * LLTexLayerSet::getComposite (  ) 

Definition at line 943 of file lltexlayer.cpp.

References createComposite(), and mComposite.

Referenced by LLViewerJointMesh::drawShape(), LLVOAvatar::hasPendingBakedUploads(), and LLVOAvatar::updateMeshTextures().

LLTexLayerSetInfo* LLTexLayerSet::getInfo (  )  const [inline]

Definition at line 258 of file lltexlayer.h.

References mInfo.

Referenced by render().

BOOL LLTexLayerSet::getUpdatesEnabled (  )  [inline]

Definition at line 276 of file lltexlayer.h.

References mUpdatesEnabled.

Referenced by LLVOAvatar::invalidateComposite().

BOOL LLTexLayerSet::hasBump (  )  [inline]

Definition at line 283 of file lltexlayer.h.

References mHasBump.

BOOL LLTexLayerSet::hasComposite (  )  [inline]

Definition at line 281 of file lltexlayer.h.

References mComposite, and NULL.

Referenced by LLViewerJointMesh::drawShape().

BOOL LLTexLayerSet::isBodyRegion ( const char *  region  )  [inline]

Definition at line 264 of file lltexlayer.h.

References LLTexLayerSetInfo::mBodyRegion, and mInfo.

Referenced by LLVOAvatar::loadAvatar().

BOOL LLTexLayerSet::isLocalTextureDataAvailable (  ) 

Definition at line 745 of file lltexlayer.cpp.

References LLVOAvatar::isLocalTextureDataAvailable(), and mAvatar.

Referenced by LLTexLayerSetBuffer::needsRender().

BOOL LLTexLayerSet::isLocalTextureDataFinal (  ) 

Definition at line 752 of file lltexlayer.cpp.

References LLVOAvatar::isLocalTextureDataFinal(), and mAvatar.

Referenced by LLTexLayerSetBuffer::needsRender(), and LLTexLayerSetBuffer::render().

BOOL LLTexLayerSet::render ( S32  x,
S32  y,
S32  width,
S32  height 
)

Definition at line 758 of file lltexlayer.cpp.

References LLImageGL::bind(), f, FALSE, LLTexStaticImageList::getImageGL(), getInfo(), gl_rect_2d_simple(), gl_rect_2d_simple_tex(), glBlendFunc, glColor4f, glGetBooleanv, gTexStaticImageList, mask, mLayerList, RP_COLOR, stop_glerror, TRUE, and LLImageGL::unbindTexture().

Referenced by LLTexLayerSetBuffer::render().

BOOL LLTexLayerSet::renderBump ( S32  x,
S32  y,
S32  width,
S32  height 
)

Definition at line 841 of file lltexlayer.cpp.

References f, gl_rect_2d_simple(), glColor4f, glGetBooleanv, mask, mLayerList, RP_BUMP, stop_glerror, and TRUE.

Referenced by LLTexLayerSetBuffer::render().

void LLTexLayerSet::requestUpdate (  ) 

Definition at line 883 of file lltexlayer.cpp.

References createComposite(), mComposite, mUpdatesEnabled, and LLTexLayerSetBuffer::requestUpdate().

Referenced by LLVOAvatar::invalidateComposite(), LLVOAvatar::requestLayerSetUpdate(), LLTexLayer::requestUpdate(), and setInfo().

void LLTexLayerSet::requestUpload (  ) 

Definition at line 892 of file lltexlayer.cpp.

References createComposite(), mComposite, and LLTexLayerSetBuffer::requestUpload().

Referenced by LLVOAvatar::invalidateComposite(), and LLVOAvatar::requestLayerSetUploads().

void LLTexLayerSet::setBump ( BOOL  b  )  [inline]

Definition at line 282 of file lltexlayer.h.

References mHasBump.

Referenced by LLTexLayer::setInfo().

BOOL LLTexLayerSet::setInfo ( LLTexLayerSetInfo info  ) 

Definition at line 686 of file lltexlayer.cpp.

References FALSE, llassert, mInfo, LLTexLayerSetInfo::mLayerInfoList, mLayerList, NULL, requestUpdate(), stop_glerror, and TRUE.

Referenced by LLVOAvatar::loadAvatar().

void LLTexLayerSet::setUpdatesEnabled ( BOOL  b  ) 

Definition at line 931 of file lltexlayer.cpp.

References mUpdatesEnabled.

Referenced by LLVOAvatar::forceBakeAllTextures(), LLVOAvatar::setCompositeUpdatesEnabled(), LLVOAvatar::setupComposites(), and LLVOAvatar::updateMeshTextures().

void LLTexLayerSet::updateComposite (  ) 

Definition at line 937 of file lltexlayer.cpp.

References createComposite(), mComposite, and LLTexLayerSetBuffer::updateImmediate().

Referenced by LLVOAvatar::updateComposites().


Member Data Documentation

LLVOAvatar* LLTexLayerSet::mAvatar [protected]

Definition at line 293 of file lltexlayer.h.

Referenced by createComposite(), getAvatar(), isLocalTextureDataAvailable(), and isLocalTextureDataFinal().

LLTexLayerSetBuffer* LLTexLayerSet::mComposite [protected]

Definition at line 291 of file lltexlayer.h.

Referenced by cancelUpload(), createComposite(), destroyComposite(), gatherAlphaMasks(), getComposite(), hasComposite(), requestUpdate(), requestUpload(), updateComposite(), and ~LLTexLayerSet().

BOOL LLTexLayerSet::mHasBump [protected]

Definition at line 295 of file lltexlayer.h.

Referenced by createComposite(), hasBump(), and setBump().

LLTexLayerSetInfo* LLTexLayerSet::mInfo [protected]

Definition at line 297 of file lltexlayer.h.

Referenced by createComposite(), getBodyRegion(), getInfo(), isBodyRegion(), and setInfo().

layer_list_t LLTexLayerSet::mLayerList [protected]

Definition at line 290 of file lltexlayer.h.

Referenced by applyMorphMask(), deleteCaches(), gatherAlphaMasks(), render(), renderBump(), setInfo(), and ~LLTexLayerSet().

BOOL LLTexLayerSet::mUpdatesEnabled [protected]

Definition at line 294 of file lltexlayer.h.

Referenced by getUpdatesEnabled(), requestUpdate(), and setUpdatesEnabled().

BOOL LLTexLayerSet::sHasCaches = FALSE [static]

Definition at line 286 of file lltexlayer.h.

Referenced by LLVOAvatar::deleteCachedImages(), and LLTexLayerParamAlpha::render().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:50 2010 for Second Life Viewer by  doxygen 1.4.7