#include <lldrawpoolbump.h>
Collaboration diagram for LLBumpImageList:
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 114 of file lldrawpoolbump.h.
typedef std::map<LLUUID, LLPointer<LLImageGL> > LLBumpImageList::bump_image_map_t [private] |
Definition at line 139 of file lldrawpoolbump.h.
LLBumpImageList::LLBumpImageList | ( | ) | [inline] |
Definition at line 117 of file lldrawpoolbump.h.
LLBumpImageList::~LLBumpImageList | ( | ) |
Definition at line 579 of file lldrawpoolbump.cpp.
References llassert, mBrightnessEntries, and mDarknessEntries.
void LLBumpImageList::addTextureStats | ( | U8 | bump, | |
const LLUUID & | base_image_id, | |||
F32 | pixel_area, | |||
F32 | texel_area_ratio, | |||
F32 | cos_center_angle | |||
) |
Definition at line 588 of file lldrawpoolbump.cpp.
References LLViewerImage::addTextureStats(), gStandardBumpmapList, LLStandardBumpmap::mImage, and TEM_BUMP_MASK.
Referenced by LLDrawPoolBump::bindBumpMap().
void LLBumpImageList::destroyGL | ( | ) |
Definition at line 565 of file lldrawpoolbump.cpp.
References LLStandardBumpmap::destroyGL(), mBrightnessEntries, and mDarknessEntries.
Referenced by LLViewerWindow::stopGL().
LLImageGL * LLBumpImageList::getBrightnessDarknessImage | ( | LLViewerImage * | src_image, | |
U8 | bump_code | |||
) |
Definition at line 660 of file lldrawpoolbump.cpp.
References BE_BRIGHTNESS, BE_DARKNESS, LLViewerImage::getID(), llassert, mBrightnessEntries, mDarknessEntries, LLViewerImage::mMaxVirtualSize, NULL, onSourceBrightnessLoaded(), onSourceDarknessLoaded(), S32, LLImageGL::setExplicitFormat(), LLViewerImage::setLoadedCallback(), TRUE, and void.
Referenced by LLDrawPoolBump::bindBumpMap().
void LLBumpImageList::init | ( | ) |
Definition at line 550 of file lldrawpoolbump.cpp.
References LLStandardBumpmap::init(), llassert, mBrightnessEntries, and mDarknessEntries.
Referenced by LLViewerWindow::LLViewerWindow().
void LLBumpImageList::onSourceBrightnessLoaded | ( | BOOL | success, | |
LLViewerImage * | src_vi, | |||
LLImageRaw * | src, | |||
LLImageRaw * | aux_src, | |||
S32 | discard_level, | |||
BOOL | final, | |||
void * | userdata | |||
) | [static] |
Definition at line 713 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 724 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 736 of file lldrawpoolbump.cpp.
References BE_BRIGHTNESS, BE_DARKNESS, LLImageGL::createGLTexture(), f, gBumpImageList, 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().
void LLBumpImageList::restoreGL | ( | ) |
Definition at line 572 of file lldrawpoolbump.cpp.
References LLStandardBumpmap::restoreGL().
Referenced by LLViewerWindow::restoreGL().
void LLBumpImageList::shutdown | ( | ) |
Definition at line 558 of file lldrawpoolbump.cpp.
References mBrightnessEntries, mDarknessEntries, and LLStandardBumpmap::shutdown().
Referenced by LLViewerWindow::~LLViewerWindow().
void LLBumpImageList::updateImages | ( | ) |
Definition at line 600 of file lldrawpoolbump.cpp.
References LLImageGL::destroyGLTexture(), FALSE, LLImageGL::getBoundRecently(), LLImageGL::getHasGLTexture(), mBrightnessEntries, mDarknessEntries, and TRUE.
Referenced by idle().
Definition at line 140 of file lldrawpoolbump.h.
Referenced by destroyGL(), getBrightnessDarknessImage(), init(), onSourceLoaded(), shutdown(), updateImages(), and ~LLBumpImageList().
Definition at line 141 of file lldrawpoolbump.h.
Referenced by destroyGL(), getBrightnessDarknessImage(), init(), onSourceLoaded(), shutdown(), updateImages(), and ~LLBumpImageList().