#include <lldrawpoolbump.h>
Public Member Functions | |
| LLBumpImageList () | |
| ~LLBumpImageList () | |
| void | init () |
| void | shutdown () |
| void | destroyGL () |
| void | restoreGL () |
| void | updateImages () |
| LLImageGL * | getBrightnessDarknessImage (LLViewerImage *src_image, U8 bump_code) |
| void | addTextureStats (U8 bump, const LLUUID &base_image_id, F32 pixel_area, F32 texel_area_ratio, F32 cos_center_angle) |
Static Public Member Functions | |
| static void | onSourceBrightnessLoaded (BOOL success, LLViewerImage *src_vi, LLImageRaw *src, LLImageRaw *aux_src, S32 discard_level, BOOL final, void *userdata) |
| static void | onSourceDarknessLoaded (BOOL success, LLViewerImage *src_vi, LLImageRaw *src, LLImageRaw *aux_src, S32 discard_level, BOOL final, void *userdata) |
Private Types | |
| typedef std::map< LLUUID, LLPointer< LLImageGL > > | bump_image_map_t |
Static Private Member Functions | |
| static void | onSourceLoaded (BOOL success, LLViewerImage *src_vi, LLImageRaw *src, LLUUID &source_asset_id, EBumpEffect bump) |
Private Attributes | |
| bump_image_map_t | mBrightnessEntries |
| bump_image_map_t | mDarknessEntries |
Definition at line 119 of file lldrawpoolbump.h.
typedef std::map<LLUUID, LLPointer<LLImageGL> > LLBumpImageList::bump_image_map_t [private] |
Definition at line 144 of file lldrawpoolbump.h.
| LLBumpImageList::LLBumpImageList | ( | ) | [inline] |
Definition at line 122 of file lldrawpoolbump.h.
| LLBumpImageList::~LLBumpImageList | ( | ) |
Definition at line 777 of file lldrawpoolbump.cpp.
References llassert, mBrightnessEntries, and mDarknessEntries.
| void LLBumpImageList::init | ( | void | ) |
Definition at line 748 of file lldrawpoolbump.cpp.
References LLStandardBumpmap::init(), llassert, mBrightnessEntries, and mDarknessEntries.
Referenced by LLViewerWindow::LLViewerWindow().


| void LLBumpImageList::shutdown | ( | ) |
Definition at line 756 of file lldrawpoolbump.cpp.
References mBrightnessEntries, mDarknessEntries, and LLStandardBumpmap::shutdown().
Referenced by LLViewerWindow::~LLViewerWindow().


| void LLBumpImageList::destroyGL | ( | ) |
Definition at line 763 of file lldrawpoolbump.cpp.
References LLStandardBumpmap::destroyGL(), mBrightnessEntries, and mDarknessEntries.
Referenced by LLViewerWindow::stopGL().


| void LLBumpImageList::restoreGL | ( | ) |
Definition at line 770 of file lldrawpoolbump.cpp.
References LLStandardBumpmap::restoreGL().
Referenced by LLViewerWindow::restoreGL().


| void LLBumpImageList::updateImages | ( | ) |
Definition at line 798 of file lldrawpoolbump.cpp.
References LLImageGL::destroyGLTexture(), FALSE, LLImageGL::getBoundRecently(), LLImageGL::getHasGLTexture(), mBrightnessEntries, mDarknessEntries, and TRUE.
Referenced by display().


| LLImageGL * LLBumpImageList::getBrightnessDarknessImage | ( | LLViewerImage * | src_image, | |
| U8 | bump_code | |||
| ) |
Definition at line 858 of file lldrawpoolbump.cpp.
References BE_BRIGHTNESS, BE_DARKNESS, LLViewerImage::getID(), llassert, mBrightnessEntries, mDarknessEntries, LLViewerImage::mMaxVirtualSize, NULL, onSourceBrightnessLoaded(), onSourceDarknessLoaded(), S32, LLImageGL::setExplicitFormat(), LLViewerImage::setLoadedCallback(), and TRUE.
Referenced by LLDrawPoolBump::bindBumpMap().


| void LLBumpImageList::addTextureStats | ( | U8 | bump, | |
| const LLUUID & | base_image_id, | |||
| F32 | pixel_area, | |||
| F32 | texel_area_ratio, | |||
| F32 | cos_center_angle | |||
| ) |
Definition at line 786 of file lldrawpoolbump.cpp.
References LLViewerImage::addTextureStats(), LLStandardBumpmap::mImage, and TEM_BUMP_MASK.
Referenced by LLDrawPoolBump::bindBumpMap().


| void LLBumpImageList::onSourceBrightnessLoaded | ( | BOOL | success, | |
| LLViewerImage * | src_vi, | |||
| LLImageRaw * | src, | |||
| LLImageRaw * | aux_src, | |||
| S32 | discard_level, | |||
| BOOL | final, | |||
| void * | userdata | |||
| ) | [static] |
Definition at line 911 of file lldrawpoolbump.cpp.
References BE_BRIGHTNESS, and onSourceLoaded().
Referenced by getBrightnessDarknessImage().


| void LLBumpImageList::onSourceDarknessLoaded | ( | BOOL | success, | |
| LLViewerImage * | src_vi, | |||
| LLImageRaw * | src, | |||
| LLImageRaw * | aux_src, | |||
| S32 | discard_level, | |||
| BOOL | final, | |||
| void * | userdata | |||
| ) | [static] |
Definition at line 922 of file lldrawpoolbump.cpp.
References BE_DARKNESS, and onSourceLoaded().
Referenced by getBrightnessDarknessImage().


| void LLBumpImageList::onSourceLoaded | ( | BOOL | success, | |
| LLViewerImage * | src_vi, | |||
| LLImageRaw * | src, | |||
| LLUUID & | source_asset_id, | |||
| EBumpEffect | bump | |||
| ) | [static, private] |
Definition at line 934 of file lldrawpoolbump.cpp.
References BE_BRIGHTNESS, BE_DARKNESS, LLImageGL::createGLTexture(), LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getDataSize(), LLImageBase::getHeight(), LLImageBase::getWidth(), i, j, llassert, llclampb(), llround(), mBrightnessEntries, mDarknessEntries, S32, LLImageGL::setExplicitFormat(), and TRUE.
Referenced by onSourceBrightnessLoaded(), and onSourceDarknessLoaded().


Definition at line 145 of file lldrawpoolbump.h.
Referenced by destroyGL(), getBrightnessDarknessImage(), init(), onSourceLoaded(), shutdown(), updateImages(), and ~LLBumpImageList().
Definition at line 146 of file lldrawpoolbump.h.
Referenced by destroyGL(), getBrightnessDarknessImage(), init(), onSourceLoaded(), shutdown(), updateImages(), and ~LLBumpImageList().
1.5.5