#include <llimagegl.h>
Public Member Functions | |
LLImageGL (BOOL usemipmaps=TRUE) | |
LLImageGL (U32 width, U32 height, U8 components, BOOL usemipmaps=TRUE) | |
LLImageGL (const LLImageRaw *imageraw, BOOL usemipmaps=TRUE) | |
virtual void | dump () |
virtual BOOL | bind (const S32 stage=0) const |
void | setSize (S32 width, S32 height, S32 ncomponents) |
BOOL | createGLTexture (S32 discard_level, const LLImageRaw *imageraw, S32 usename=0) |
BOOL | createGLTexture (S32 discard_level, const U8 *data, BOOL data_hasmips=FALSE, S32 usename=0) |
void | setImage (const LLImageRaw *imageraw) |
void | setImage (const U8 *data_in, BOOL data_hasmips=FALSE) |
BOOL | setSubImage (const LLImageRaw *imageraw, S32 x_pos, S32 y_pos, S32 width, S32 height) |
BOOL | setSubImage (const U8 *datap, S32 data_width, S32 data_height, S32 x_pos, S32 y_pos, S32 width, S32 height) |
BOOL | setSubImageFromFrameBuffer (S32 fb_x, S32 fb_y, S32 x_pos, S32 y_pos, S32 width, S32 height) |
BOOL | setDiscardLevel (S32 discard_level) |
BOOL | readBackRaw (S32 discard_level, LLImageRaw *imageraw, bool compressed_ok) |
void | destroyGLTexture () |
void | setClamp (BOOL clamps, BOOL clampt) |
void | setMipFilterNearest (BOOL nearest, BOOL min_nearest=FALSE) |
void | setExplicitFormat (LLGLint internal_format, LLGLenum primary_format, LLGLenum type_format=0, BOOL swap_bytes=FALSE) |
void | dontDiscard () |
S32 | getDiscardLevel () const |
S32 | getMaxDiscardLevel () const |
S32 | getWidth (S32 discard_level=-1) const |
S32 | getHeight (S32 discard_level=-1) const |
U8 | getComponents () const |
S32 | getBytes (S32 discard_level=-1) const |
S32 | getMipBytes (S32 discard_level=-1) const |
BOOL | getBoundRecently () const |
LLGLenum | getPrimaryFormat () const |
BOOL | getClampS () const |
BOOL | getClampT () const |
BOOL | getMipFilterNearest () const |
BOOL | getHasGLTexture () const |
LLGLuint | getTexName () const |
BOOL | getIsResident (BOOL test_now=FALSE) |
void | setTarget (const LLGLenum target, const LLGLenum bind_target) |
BOOL | getUseMipMaps () const |
void | setUseMipMaps (BOOL usemips) |
BOOL | getUseDiscard () const |
BOOL | getDontDiscard () const |
BOOL | isValidForSculpt (S32 discard_level, S32 image_width, S32 image_height, S32 ncomponents) |
BOOL | getMissed () const |
Static Public Member Functions | |
static S32 | dataFormatBits (S32 dataformat) |
static S32 | dataFormatBytes (S32 dataformat, S32 width, S32 height) |
static S32 | dataFormatComponents (S32 dataformat) |
static void | bindExternalTexture (LLGLuint gl_name, S32 stage, LLGLenum bind_target) |
static void | unbindTexture (S32 stage, LLGLenum target) |
static void | unbindTexture (S32 stage) |
static void | updateStats (F32 current_time) |
static void | destroyGL (BOOL save_state=TRUE) |
static void | restoreGL () |
static S32 | updateBoundTexMem (const S32 delta) |
static bool | checkSize (S32 width, S32 height) |
static BOOL | create (LLPointer< LLImageGL > &dest, BOOL usemipmaps=TRUE) |
static BOOL | create (LLPointer< LLImageGL > &dest, U32 width, U32 height, U8 components, BOOL usemipmaps=TRUE) |
static BOOL | create (LLPointer< LLImageGL > &dest, const LLImageRaw *imageraw, BOOL usemipmaps=TRUE) |
Public Attributes | |
S32 | mTextureMemory |
F32 | mLastBindTime |
Static Public Attributes | |
static std::set< LLImageGL * > | sImageList |
static S32 | sCount = 0 |
static F32 | sLastFrameTime = 0.f |
static LLGLuint | sCurrentBoundTextures [MAX_GL_TEXTURE_UNITS] = { 0 } |
static S32 | sGlobalTextureMemory = 0 |
static S32 | sBoundTextureMemory = 0 |
static S32 | sCurBoundTextureMemory = 0 |
static U32 | sBindCount = 0 |
static U32 | sUniqueCount = 0 |
static BOOL | sGlobalUseAnisotropic = FALSE |
Protected Member Functions | |
virtual | ~LLImageGL () |
BOOL | bindTextureInternal (const S32 stage=0) const |
void | init (BOOL usemipmaps) |
virtual void | cleanup () |
Protected Attributes | |
LLGLenum | mTarget |
LLGLenum | mBindTarget |
LLGLuint | mTexName |
LLGLboolean | mIsResident |
U16 | mWidth |
U16 | mHeight |
S8 | mComponents |
S8 | mMaxDiscardLevel |
S8 | mCurrentDiscardLevel |
S8 | mDontDiscard |
S8 | mClampS |
S8 | mClampT |
S8 | mMipFilterNearest |
LLGLint | mFormatInternal |
LLGLenum | mFormatPrimary |
LLGLenum | mFormatType |
BOOL | mFormatSwapBytes |
Private Attributes | |
LLPointer< LLImageRaw > | mSaveData |
S8 | mUseMipMaps |
S8 | mHasMipMaps |
S8 | mHasExplicitFormat |
S8 | mAutoGenMips |
Definition at line 43 of file llimagegl.h.
LLImageGL::LLImageGL | ( | BOOL | usemipmaps = TRUE |
) |
Definition at line 253 of file llimagegl.cpp.
References init(), sCount, setSize(), and sImageList.
Referenced by create(), and LLViewerImage::initClass().
Definition at line 262 of file llimagegl.cpp.
References init(), llassert, sCount, setSize(), and sImageList.
LLImageGL::LLImageGL | ( | const LLImageRaw * | imageraw, | |
BOOL | usemipmaps = TRUE | |||
) |
Definition at line 272 of file llimagegl.cpp.
References createGLTexture(), init(), sCount, setSize(), and sImageList.
LLImageGL::~LLImageGL | ( | ) | [protected, virtual] |
Definition at line 282 of file llimagegl.cpp.
References cleanup(), sCount, and sImageList.
Definition at line 69 of file llimagegl.cpp.
References llendl, and llerrs.
Referenced by dataFormatBytes().
Definition at line 91 of file llimagegl.cpp.
References dataFormatBits(), and S32.
Referenced by getBytes(), getMipBytes(), and setImage().
Definition at line 128 of file llimagegl.cpp.
References LLGLImmediate::flush(), gGL, and sCurrentBoundTextures.
Referenced by LLTexLayerSetBuffer::bindBumpTexture(), LLVOAvatar::bindScratchTexture(), LLFloaterImagePreview::draw(), LLViewerJointMesh::drawShape(), LLVOAvatar::getScratchTexName(), LLTexLayerSetBuffer::LLTexLayerSetBuffer(), LLVOAvatar::onBakedTextureMasksLoaded(), LLTexLayerSetBuffer::render(), and LLTexLayer::renderImageRaw().
Definition at line 144 of file llimagegl.cpp.
References LLGLImmediate::flush(), gGL, and sCurrentBoundTextures.
Referenced by LLDrawPoolBump::beginBump(), LLTexLayerSetBuffer::bindBumpTexture(), LLPipeline::blurReflectionMap(), createGLTexture(), destroyGL(), destroyGLTexture(), LLPipeline::doOcclusion(), LLVisualParamHint::draw(), LLFloaterImagePreview::draw(), LLViewerJointMesh::drawShape(), LLDrawPoolBump::endFullbrightShiny(), LLDrawPoolBump::endShiny(), LLPipeline::generateImpostor(), LLPipeline::generateReflectionMap(), LLPipeline::generateWaterReflection(), LLVOAvatar::getScratchTexName(), LLManipTranslate::highlightIntersection(), LLDrawPoolTerrain::LLDrawPoolTerrain(), LLGLSNoTexture::LLGLSNoTexture(), LLGLSNoTextureNoAlphaTest::LLGLSNoTextureNoAlphaTest(), LLGLSObjectSelect::LLGLSObjectSelect(), LLGLSTracker::LLGLSTracker(), LLTexLayerSetBuffer::LLTexLayerSetBuffer(), LLDynamicTexture::preRender(), LLDrawPoolBump::pushBatch(), LLRenderPass::pushBatch(), LLTexLayer::render(), LLTexLayerSet::render(), LLHUDEffectBeam::render(), LLDrawPoolWLSky::render(), LLDrawPoolWater::render(), LLDrawPoolGround::render(), render_disconnected_background(), LLTexLayer::renderAlphaMasks(), LLPipeline::renderBloom(), LLManipScale::renderBoxHandle(), LLSpatialPartition::renderDebug(), LLFace::renderForSelect(), LLDrawPoolTerrain::renderForSelect(), LLDrawPoolTerrain::renderFull2TU(), LLDrawPoolTerrain::renderFull4TU(), LLDrawPoolTerrain::renderFullShader(), LLHUDIcon::renderIcon(), LLTexLayer::renderImageRaw(), LLViewerWindow::renderSelections(), LLDrawPoolTerrain::renderSimple(), LLManipTranslate::renderSnapGuides(), LLHUDText::renderText(), LLDynamicTexture::unbindTexture(), unbindTexture(), and LLPipeline::updateCull().
void LLImageGL::unbindTexture | ( | S32 | stage | ) | [static] |
Definition at line 165 of file llimagegl.cpp.
References unbindTexture().
void LLImageGL::updateStats | ( | F32 | current_time | ) | [static] |
Definition at line 171 of file llimagegl.cpp.
References sBoundTextureMemory, sCurBoundTextureMemory, and sLastFrameTime.
Referenced by display().
void LLImageGL::destroyGL | ( | BOOL | save_state = TRUE |
) | [static] |
Definition at line 188 of file llimagegl.cpp.
References destroyGLTexture(), gGLManager, mComponents, mCurrentDiscardLevel, LLGLManager::mNumTextureUnits, mSaveData, mTexName, readBackRaw(), S32, sImageList, stop_glerror, and unbindTexture().
Referenced by LLViewerImageList::destroyGL().
void LLImageGL::restoreGL | ( | ) | [static] |
Definition at line 212 of file llimagegl.cpp.
References createGLTexture(), getComponents(), mCurrentDiscardLevel, mSaveData, LLPointer< Type >::notNull(), NULL, sImageList, and stop_glerror.
Referenced by LLViewerImageList::restoreGL().
Definition at line 179 of file llimagegl.cpp.
References sCurBoundTextureMemory.
Referenced by LLTexLayerSetBuffer::bindBumpTexture(), LLVOAvatar::bindScratchTexture(), and bindTextureInternal().
Definition at line 348 of file llimagegl.cpp.
References check_power_of_two().
Referenced by LLViewerImage::createTexture(), and setSize().
Definition at line 233 of file llimagegl.cpp.
References LLImageGL(), and TRUE.
Referenced by LLDrawPoolWLSky::LLDrawPoolWLSky(), and LLDrawPoolWLSky::restoreGL().
BOOL LLImageGL::create | ( | LLPointer< LLImageGL > & | dest, | |
U32 | width, | |||
U32 | height, | |||
U8 | components, | |||
BOOL | usemipmaps = TRUE | |||
) | [static] |
Definition at line 239 of file llimagegl.cpp.
References LLImageGL(), and TRUE.
BOOL LLImageGL::create | ( | LLPointer< LLImageGL > & | dest, | |
const LLImageRaw * | imageraw, | |||
BOOL | usemipmaps = TRUE | |||
) | [static] |
Definition at line 245 of file llimagegl.cpp.
References LLImageGL(), and TRUE.
Definition at line 419 of file llimagegl.cpp.
References FALSE, LLGLImmediate::flush(), getIsResident(), gGL, gGLManager, llendl, llwarns, mBindTarget, LLGLManager::mIsDisabled, mLastBindTime, mTexName, mTextureMemory, sBindCount, sCurrentBoundTextures, sLastFrameTime, sUniqueCount, TRUE, and updateBoundTexMem().
Referenced by LLViewerImage::bind(), bind(), createGLTexture(), readBackRaw(), setImage(), setSubImage(), and setSubImageFromFrameBuffer().
void LLImageGL::dump | ( | ) | [virtual] |
Reimplemented in LLViewerImage.
Definition at line 392 of file llimagegl.cpp.
References llendl, llinfos, mBindTarget, mCurrentDiscardLevel, mFormatInternal, mFormatPrimary, mFormatSwapBytes, mFormatType, mHasExplicitFormat, mHasMipMaps, mIsResident, mLastBindTime, mMaxDiscardLevel, mTarget, mTexName, mTextureMemory, mUseMipMaps, and S32.
Referenced by LLViewerImage::dump(), setDiscardLevel(), and setSubImage().
Reimplemented in LLViewerImage.
Definition at line 482 of file llimagegl.cpp.
References bindTextureInternal(), and FALSE.
Referenced by LLDrawPoolBump::bindBumpMap(), LLViewerImage::bindTexture(), LLJoystickCameraRotate::drawRotatedImage(), gl_draw_scaled_image_inverted(), gl_draw_scaled_image_with_border(), gl_draw_scaled_rotated_image(), LLTexLayer::render(), LLTexLayerSet::render(), LLDrawPoolWLSky::render(), LLFontGL::render(), LLTexLayer::renderAlphaMasks(), LLDrawPoolWLSky::renderHeavenlyBodies(), LLDrawPoolSky::renderHeavenlyBody(), and LLDrawPoolSky::renderSunHalo().
Definition at line 353 of file llimagegl.cpp.
References checkSize(), destroyGLTexture(), llendl, llerrs, llformat(), MAX_DISCARD_LEVEL, mComponents, mHeight, mMaxDiscardLevel, mTexName, and mWidth.
Referenced by createGLTexture(), LLImageGL(), and LLViewerImage::reinit().
BOOL LLImageGL::createGLTexture | ( | S32 | discard_level, | |
const LLImageRaw * | imageraw, | |||
S32 | usename = 0 | |||
) |
Definition at line 827 of file llimagegl.cpp.
References FALSE, getComponents(), LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getHeight(), LLImageBase::getWidth(), gGLManager, gNoRender, llassert, llclamp(), llendl, llerrs, llwarns, mComponents, mCurrentDiscardLevel, mFormatInternal, mFormatPrimary, mFormatType, mHasExplicitFormat, LLGLManager::mInited, LLGLManager::mIsDisabled, mMaxDiscardLevel, S32, setSize(), and stop_glerror.
Referenced by LLViewerImage::createTexture(), LLViewerImage::initClass(), LLViewerMediaImpl::initializePlaceholderImage(), LLImageGL(), LLBumpImageList::onSourceLoaded(), restoreGL(), and setDiscardLevel().
BOOL LLImageGL::createGLTexture | ( | S32 | discard_level, | |
const U8 * | data, | |||
BOOL | data_hasmips = FALSE , |
|||
S32 | usename = 0 | |||
) |
Definition at line 886 of file llimagegl.cpp.
References bindTextureInternal(), FALSE, getMipBytes(), gGLManager, llassert, llclamp(), llendl, llerrs, llverify, mAutoGenMips, mBindTarget, mClampS, mClampT, mCurrentDiscardLevel, mFormatInternal, mFormatPrimary, LLGLManager::mHasMipMapGeneration, LLGLManager::mIsGF2or4MX, mLastBindTime, mMaxDiscardLevel, mMipFilterNearest, mTexName, mTextureMemory, mUseMipMaps, S32, setClamp(), setImage(), setMipFilterNearest(), sGlobalTextureMemory, sLastFrameTime, stop_glerror, TRUE, and unbindTexture().
void LLImageGL::setImage | ( | const LLImageRaw * | imageraw | ) |
Definition at line 509 of file llimagegl.cpp.
References FALSE, getComponents(), LLImageBase::getComponents(), LLImageBase::getData(), getHeight(), LLImageBase::getHeight(), getWidth(), LLImageBase::getWidth(), llassert, and mCurrentDiscardLevel.
Referenced by createGLTexture(), and setSubImage().
Definition at line 518 of file llimagegl.cpp.
References bindTextureInternal(), d, dataFormatBytes(), FALSE, LLImageBase::generateMip(), getHeight(), getWidth(), llassert, llassert_always, llendl, llerrs, llverify, mAutoGenMips, mBindTarget, mComponents, mCurrentDiscardLevel, mFormatInternal, mFormatPrimary, mFormatSwapBytes, mFormatType, mHasMipMaps, mMaxDiscardLevel, mTarget, mUseMipMaps, NULL, S32, stop_glerror, and TRUE.
BOOL LLImageGL::setSubImage | ( | const LLImageRaw * | imageraw, | |
S32 | x_pos, | |||
S32 | y_pos, | |||
S32 | width, | |||
S32 | height | |||
) |
Definition at line 807 of file llimagegl.cpp.
References LLImageBase::getData(), LLImageBase::getHeight(), and LLImageBase::getWidth().
Referenced by LLVLComposition::generateTexture(), and LLViewerMediaImpl::onMediaContentsChange().
BOOL LLImageGL::setSubImage | ( | const U8 * | datap, | |
S32 | data_width, | |||
S32 | data_height, | |||
S32 | x_pos, | |||
S32 | y_pos, | |||
S32 | width, | |||
S32 | height | |||
) |
Definition at line 713 of file llimagegl.cpp.
References bindTextureInternal(), dump(), FALSE, getComponents(), getHeight(), getWidth(), llassert_always, llendl, llerrs, llwarns, mCurrentDiscardLevel, mFormatPrimary, mFormatSwapBytes, mFormatType, mTarget, mTexName, mUseMipMaps, NULL, setImage(), stop_glerror, and TRUE.
BOOL LLImageGL::setSubImageFromFrameBuffer | ( | S32 | fb_x, | |
S32 | fb_y, | |||
S32 | x_pos, | |||
S32 | y_pos, | |||
S32 | width, | |||
S32 | height | |||
) |
Definition at line 813 of file llimagegl.cpp.
References bindTextureInternal(), FALSE, stop_glerror, and TRUE.
Definition at line 966 of file llimagegl.cpp.
References createGLTexture(), dump(), FALSE, llassert, llclamp(), llendl, llerrs, mCurrentDiscardLevel, mDontDiscard, mMaxDiscardLevel, mUseMipMaps, readBackRaw(), and S32.
Referenced by LLViewerImage::processTextureStats().
BOOL LLImageGL::readBackRaw | ( | S32 | discard_level, | |
LLImageRaw * | imageraw, | |||
bool | compressed_ok | |||
) |
Definition at line 1033 of file llimagegl.cpp.
References LLImageBase::allocateDataSize(), bindTextureInternal(), LLImageRaw::deleteData(), FALSE, getComponents(), LLImageBase::getData(), getHeight(), getWidth(), llendl, llerrs, llformat(), llverify, llwarns, mCurrentDiscardLevel, mFormatPrimary, mFormatType, mTarget, mTexName, S32, and TRUE.
Referenced by destroyGL(), LLViewerImage::doLoadedCallbacks(), and setDiscardLevel().
void LLImageGL::destroyGLTexture | ( | ) |
Definition at line 1129 of file llimagegl.cpp.
References gGLManager, i, LLGLManager::mNumTextureUnits, mTexName, mTextureMemory, sCurrentBoundTextures, sGlobalTextureMemory, stop_glerror, and unbindTexture().
Referenced by cleanup(), destroyGL(), LLViewerMediaImpl::initializePlaceholderImage(), setSize(), and LLBumpImageList::updateImages().
Definition at line 1156 of file llimagegl.cpp.
References mBindTarget, mClampS, mClampT, mTexName, and stop_glerror.
Referenced by createGLTexture(), LLViewerImageList::doPreloadImages(), LLUIImageList::loadUIImage(), LLTexLayer::render(), and LLTexLayer::renderAlphaMasks().
Definition at line 1168 of file llimagegl.cpp.
References gGLManager, mBindTarget, LLGLManager::mHasAnisotropic, mHasMipMaps, mMipFilterNearest, mTexName, sGlobalUseAnisotropic, and stop_glerror.
Referenced by createGLTexture().
void LLImageGL::setExplicitFormat | ( | LLGLint | internal_format, | |
LLGLenum | primary_format, | |||
LLGLenum | type_format = 0 , |
|||
BOOL | swap_bytes = FALSE | |||
) |
Definition at line 493 of file llimagegl.cpp.
References mFormatInternal, mFormatPrimary, mFormatSwapBytes, mFormatType, mHasExplicitFormat, and TRUE.
Referenced by LLBumpImageList::getBrightnessDarknessImage(), LLViewerMediaImpl::initializePlaceholderImage(), and LLBumpImageList::onSourceLoaded().
void LLImageGL::dontDiscard | ( | ) | [inline] |
Definition at line 105 of file llimagegl.h.
References mDontDiscard.
Referenced by LLViewerImage::initClass().
S32 LLImageGL::getDiscardLevel | ( | ) | const [inline] |
Definition at line 107 of file llimagegl.h.
References mCurrentDiscardLevel.
Referenced by LLViewerImage::calcDecodePriority(), LLViewerImage::doLoadedCallbacks(), LLViewerImageList::dump(), LLVOAvatar::dumpLocalTextures(), LLViewerImage::CompareForRemoval::operator()(), LLViewerImage::processTextureStats(), LLVOAvatar::setLocalTexture(), and LLViewerImage::updateFetch().
S32 LLImageGL::getMaxDiscardLevel | ( | ) | const [inline] |
Definition at line 1240 of file llimagegl.cpp.
References mCurrentDiscardLevel, mWidth, and S32.
Referenced by LLViewerImage::createRawImage(), LLJoystickCameraRotate::drawRotatedImage(), LLViewerImageList::dump(), LLVOAvatar::dumpLocalTextures(), LLVLComposition::generateTexture(), LLTexLayerParamAlpha::getCacheByteCount(), LLFontGL::getEmbeddedCharAdvance(), LLVOAvatar::getLocalTextureByteCount(), gl_draw_image(), gl_draw_rotated_image(), gl_draw_scaled_image_with_border(), handle_selected_texture_info(), LLUIImageList::onUIImageLoaded(), LLViewerImage::CompareForWorstVisibility::operator()(), readBackRaw(), LLFontGL::render(), setImage(), setSubImage(), LLViewerImageList::shutdown(), LLViewerImage::updateFetch(), and LLPanelRegionTextureInfo::validateTextureSizes().
Definition at line 1229 of file llimagegl.cpp.
References mCurrentDiscardLevel, mHeight, and S32.
Referenced by LLViewerImage::createRawImage(), LLJoystickCameraRotate::drawRotatedImage(), LLViewerImageList::dump(), LLVOAvatar::dumpLocalTextures(), LLVLComposition::generateTexture(), LLTexLayerParamAlpha::getCacheByteCount(), LLVOAvatar::getLocalTextureByteCount(), gl_draw_image(), gl_draw_rotated_image(), gl_draw_scaled_image_with_border(), handle_selected_texture_info(), LLUIImageList::onUIImageLoaded(), LLViewerImage::CompareForWorstVisibility::operator()(), readBackRaw(), LLFontGL::render(), setImage(), setSubImage(), LLViewerImageList::shutdown(), LLViewerImage::updateFetch(), and LLPanelRegionTextureInfo::validateTextureSizes().
U8 LLImageGL::getComponents | ( | ) | const [inline] |
Definition at line 112 of file llimagegl.h.
References mComponents.
Referenced by createGLTexture(), LLVLComposition::generateTexture(), LLTexLayerParamAlpha::getCacheByteCount(), LLVOAvatar::getLocalTextureByteCount(), LLPipeline::getPoolTypeFromTE(), handle_selected_texture_info(), LLFace::printDebugInfo(), readBackRaw(), LLTexLayer::renderAlphaMasks(), restoreGL(), setImage(), setSubImage(), LLViewerImage::updateFetch(), and LLPanelRegionTextureInfo::validateTextureSizes().
Definition at line 1251 of file llimagegl.cpp.
References dataFormatBytes(), mCurrentDiscardLevel, mFormatPrimary, mHeight, mWidth, and S32.
Definition at line 1264 of file llimagegl.cpp.
References dataFormatBytes(), mCurrentDiscardLevel, mFormatPrimary, mHeight, mUseMipMaps, mWidth, and S32.
Referenced by createGLTexture().
BOOL LLImageGL::getBoundRecently | ( | ) | const |
Definition at line 1285 of file llimagegl.cpp.
References MIN_TEXTURE_LIFETIME, mLastBindTime, and sLastFrameTime.
Referenced by LLViewerImage::calcDecodePriority(), LLViewerImage::processTextureStats(), and LLBumpImageList::updateImages().
LLGLenum LLImageGL::getPrimaryFormat | ( | ) | const [inline] |
Definition at line 116 of file llimagegl.h.
References mFormatPrimary.
Referenced by calc_shame(), and LLVolumeGeometryManager::rebuildGeom().
BOOL LLImageGL::getClampS | ( | ) | const [inline] |
Definition at line 118 of file llimagegl.h.
References mClampS.
Referenced by LLTexLayer::render(), and LLTexLayer::renderAlphaMasks().
BOOL LLImageGL::getClampT | ( | ) | const [inline] |
Definition at line 119 of file llimagegl.h.
References mClampT.
Referenced by LLTexLayer::render(), and LLTexLayer::renderAlphaMasks().
BOOL LLImageGL::getMipFilterNearest | ( | ) | const [inline] |
BOOL LLImageGL::getHasGLTexture | ( | ) | const [inline] |
Definition at line 122 of file llimagegl.h.
References mTexName.
Referenced by LLWorldMapView::draw(), LLTexLayerParamAlpha::getCacheByteCount(), LLVOAvatar::getLocalTextureByteCount(), LLViewerMediaImpl::onMediaContentsChange(), and LLBumpImageList::updateImages().
LLGLuint LLImageGL::getTexName | ( | ) | const [inline] |
Definition at line 1212 of file llimagegl.cpp.
References FALSE, mIsResident, and mTexName.
Referenced by bindTextureInternal().
BOOL LLImageGL::getUseMipMaps | ( | ) | const [inline] |
Definition at line 129 of file llimagegl.h.
References mUseMipMaps.
Referenced by LLViewerMediaImpl::onMediaContentsChange(), LLViewerImage::processTextureStats(), and LLViewerMediaImpl::updateMovieImage().
void LLImageGL::setUseMipMaps | ( | BOOL | usemips | ) | [inline] |
Definition at line 130 of file llimagegl.h.
References mUseMipMaps.
Referenced by LLViewerMediaImpl::initializePlaceholderImage().
BOOL LLImageGL::getUseDiscard | ( | ) | const [inline] |
Definition at line 131 of file llimagegl.h.
References mDontDiscard, and mUseMipMaps.
Referenced by LLViewerImageList::shutdown().
BOOL LLImageGL::getDontDiscard | ( | ) | const [inline] |
Definition at line 132 of file llimagegl.h.
References mDontDiscard.
Referenced by LLViewerImage::calcDecodePriority().
BOOL LLImageGL::isValidForSculpt | ( | S32 | discard_level, | |
S32 | image_width, | |||
S32 | image_height, | |||
S32 | ncomponents | |||
) |
Definition at line 1018 of file llimagegl.cpp.
References assert_glerror(), mCurrentDiscardLevel, mTarget, and S32.
void LLImageGL::init | ( | BOOL | usemipmaps | ) | [protected] |
Definition at line 289 of file llimagegl.cpp.
References FALSE, mAutoGenMips, MAX_DISCARD_LEVEL, mBindTarget, mClampS, mClampT, mComponents, mCurrentDiscardLevel, mDontDiscard, mFormatInternal, mFormatPrimary, mFormatSwapBytes, mFormatType, mHasExplicitFormat, mHasMipMaps, mHeight, mIsResident, mLastBindTime, mMaxDiscardLevel, mMipFilterNearest, mTarget, mTexName, mTextureMemory, mUseMipMaps, and mWidth.
Referenced by LLImageGL(), and LLViewerImage::reinit().
void LLImageGL::cleanup | ( | ) | [protected, virtual] |
Reimplemented in LLViewerImage.
Definition at line 323 of file llimagegl.cpp.
References destroyGLTexture(), gGLManager, LLGLManager::mIsDisabled, mSaveData, and NULL.
Referenced by LLViewerImage::cleanup(), and ~LLImageGL().
BOOL LLImageGL::getMissed | ( | ) | const [inline] |
Definition at line 142 of file llimagegl.h.
Referenced by bindTextureInternal(), createGLTexture(), destroyGLTexture(), dump(), init(), and LLViewerImage::processTextureStats().
F32 LLImageGL::mLastBindTime [mutable] |
Definition at line 143 of file llimagegl.h.
Referenced by bindTextureInternal(), createGLTexture(), dump(), getBoundRecently(), init(), and LLViewerImage::CompareForRemoval::operator()().
LLPointer<LLImageRaw> LLImageGL::mSaveData [private] |
S8 LLImageGL::mUseMipMaps [private] |
Definition at line 147 of file llimagegl.h.
Referenced by createGLTexture(), dump(), getMipBytes(), getUseDiscard(), getUseMipMaps(), init(), setDiscardLevel(), setImage(), setSubImage(), and setUseMipMaps().
S8 LLImageGL::mHasMipMaps [private] |
Definition at line 148 of file llimagegl.h.
Referenced by dump(), init(), setImage(), and setMipFilterNearest().
S8 LLImageGL::mHasExplicitFormat [private] |
Definition at line 149 of file llimagegl.h.
Referenced by createGLTexture(), dump(), init(), and setExplicitFormat().
S8 LLImageGL::mAutoGenMips [private] |
Definition at line 150 of file llimagegl.h.
Referenced by createGLTexture(), init(), and setImage().
LLGLenum LLImageGL::mTarget [protected] |
Definition at line 153 of file llimagegl.h.
Referenced by dump(), init(), isValidForSculpt(), readBackRaw(), setImage(), setSubImage(), and setTarget().
LLGLenum LLImageGL::mBindTarget [protected] |
Definition at line 154 of file llimagegl.h.
Referenced by bindTextureInternal(), createGLTexture(), dump(), init(), setClamp(), setImage(), setMipFilterNearest(), and setTarget().
LLGLuint LLImageGL::mTexName [protected] |
Definition at line 156 of file llimagegl.h.
Referenced by bindTextureInternal(), createGLTexture(), destroyGL(), destroyGLTexture(), dump(), getHasGLTexture(), getIsResident(), getTexName(), init(), readBackRaw(), setClamp(), setMipFilterNearest(), setSize(), and setSubImage().
LLGLboolean LLImageGL::mIsResident [protected] |
U16 LLImageGL::mWidth [protected] |
Definition at line 160 of file llimagegl.h.
Referenced by getBytes(), getMipBytes(), getWidth(), init(), LLViewerImage::processTextureStats(), and setSize().
U16 LLImageGL::mHeight [protected] |
Definition at line 161 of file llimagegl.h.
Referenced by getBytes(), getHeight(), getMipBytes(), init(), LLViewerImage::processTextureStats(), and setSize().
S8 LLImageGL::mComponents [protected] |
Definition at line 163 of file llimagegl.h.
Referenced by createGLTexture(), LLViewerImage::createRawImage(), destroyGL(), getComponents(), init(), setImage(), setSize(), and LLViewerImage::updateFetch().
S8 LLImageGL::mMaxDiscardLevel [protected] |
Definition at line 164 of file llimagegl.h.
Referenced by LLViewerImage::calcDecodePriority(), createGLTexture(), LLViewerImage::doLoadedCallbacks(), dump(), getMaxDiscardLevel(), init(), LLViewerImage::processTextureStats(), setDiscardLevel(), setImage(), and setSize().
S8 LLImageGL::mCurrentDiscardLevel [protected] |
Definition at line 165 of file llimagegl.h.
Referenced by createGLTexture(), destroyGL(), dump(), getBytes(), getDiscardLevel(), getHeight(), getMipBytes(), getWidth(), init(), isValidForSculpt(), readBackRaw(), restoreGL(), setDiscardLevel(), setImage(), and setSubImage().
S8 LLImageGL::mDontDiscard [protected] |
Definition at line 166 of file llimagegl.h.
Referenced by dontDiscard(), getDontDiscard(), getUseDiscard(), init(), LLViewerImage::processTextureStats(), setDiscardLevel(), and LLViewerImage::updateFetch().
S8 LLImageGL::mClampS [protected] |
Definition at line 168 of file llimagegl.h.
Referenced by createGLTexture(), getClampS(), init(), and setClamp().
S8 LLImageGL::mClampT [protected] |
Definition at line 169 of file llimagegl.h.
Referenced by createGLTexture(), getClampT(), init(), and setClamp().
S8 LLImageGL::mMipFilterNearest [protected] |
Definition at line 170 of file llimagegl.h.
Referenced by createGLTexture(), getMipFilterNearest(), init(), and setMipFilterNearest().
LLGLint LLImageGL::mFormatInternal [protected] |
Definition at line 172 of file llimagegl.h.
Referenced by createGLTexture(), dump(), init(), setExplicitFormat(), and setImage().
LLGLenum LLImageGL::mFormatPrimary [protected] |
Definition at line 173 of file llimagegl.h.
Referenced by createGLTexture(), dump(), getBytes(), getMipBytes(), getPrimaryFormat(), init(), readBackRaw(), setExplicitFormat(), setImage(), and setSubImage().
LLGLenum LLImageGL::mFormatType [protected] |
Definition at line 174 of file llimagegl.h.
Referenced by createGLTexture(), dump(), init(), readBackRaw(), setExplicitFormat(), setImage(), and setSubImage().
BOOL LLImageGL::mFormatSwapBytes [protected] |
Definition at line 175 of file llimagegl.h.
Referenced by dump(), init(), setExplicitFormat(), setImage(), and setSubImage().
std::set< LLImageGL * > LLImageGL::sImageList [static] |
Definition at line 179 of file llimagegl.h.
Referenced by destroyGL(), LLImageGL(), restoreGL(), and ~LLImageGL().
S32 LLImageGL::sCount = 0 [static] |
F32 LLImageGL::sLastFrameTime = 0.f [static] |
Definition at line 182 of file llimagegl.h.
Referenced by LLTexLayerSetBuffer::bindBumpTexture(), LLVOAvatar::bindScratchTexture(), bindTextureInternal(), createGLTexture(), getBoundRecently(), and updateStats().
LLGLuint LLImageGL::sCurrentBoundTextures = { 0 } [static] |
Definition at line 184 of file llimagegl.h.
Referenced by bindExternalTexture(), bindTextureInternal(), destroyGLTexture(), and unbindTexture().
S32 LLImageGL::sGlobalTextureMemory = 0 [static] |
Definition at line 187 of file llimagegl.h.
Referenced by createGLTexture(), LLVOAvatar::deleteCachedImages(), destroyGLTexture(), LLVOAvatar::getScratchTexName(), LLTexLayerSetBuffer::LLTexLayerSetBuffer(), output_statistics(), LLViewerWindow::stopGL(), LLViewerImage::updateClass(), LLViewerImageList::updateImages(), and LLTexLayerSetBuffer::~LLTexLayerSetBuffer().
S32 LLImageGL::sBoundTextureMemory = 0 [static] |
Reimplemented in LLViewerImage.
Definition at line 188 of file llimagegl.h.
Referenced by output_statistics(), LLViewerImage::updateClass(), LLViewerImageList::updateImages(), and updateStats().
S32 LLImageGL::sCurBoundTextureMemory = 0 [static] |
U32 LLImageGL::sBindCount = 0 [static] |
Definition at line 190 of file llimagegl.h.
Referenced by bindTextureInternal(), and LLDebugText::update().
U32 LLImageGL::sUniqueCount = 0 [static] |
Definition at line 191 of file llimagegl.h.
Referenced by bindTextureInternal(), and LLDebugText::update().
BOOL LLImageGL::sGlobalUseAnisotropic = FALSE [static] |
Definition at line 192 of file llimagegl.h.
Referenced by LLFloaterHardwareSettings::apply(), setMipFilterNearest(), and settings_to_globals().