#include <lldynamictexture.h>
Inheritance diagram for LLDynamicTexture:
Definition at line 41 of file lldynamictexture.h.
Definition at line 44 of file lldynamictexture.h.
LLDynamicTexture::LLDynamicTexture | ( | S32 | width, | |
S32 | height, | |||
S32 | components, | |||
EOrder | order, | |||
BOOL | clamp | |||
) |
Definition at line 52 of file lldynamictexture.cpp.
References LLLinkedList< DATA_TYPE >::addData(), generateGLTexture(), llassert, ORDER_COUNT, and sInstances.
LLDynamicTexture::~LLDynamicTexture | ( | ) | [virtual] |
Definition at line 71 of file lldynamictexture.cpp.
References order, ORDER_COUNT, releaseGLTexture(), S32, and sInstances.
void LLDynamicTexture::bindTexture | ( | ) | [virtual] |
Reimplemented in LLTexLayerSetBuffer.
Definition at line 188 of file lldynamictexture.cpp.
References LLViewerImage::bindTexture(), and mTexture.
Referenced by LLTexLayerSetBuffer::bindTexture(), LLVisualParamHint::draw(), LLFloaterImagePreview::draw(), and LLFloaterAnimPreview::draw().
void LLDynamicTexture::destroyGL | ( | ) | [static] |
void LLDynamicTexture::generateGLTexture | ( | LLGLint | internal_format, | |
LLGLenum | primary_format, | |||
LLGLenum | type_format, | |||
BOOL | swap_bytes = FALSE | |||
) | [protected] |
Definition at line 100 of file lldynamictexture.cpp.
References FALSE, llendl, llerrs, mClamp, mComponents, mHeight, mTexture, mWidth, and releaseGLTexture().
void LLDynamicTexture::generateGLTexture | ( | ) | [protected] |
Definition at line 95 of file lldynamictexture.cpp.
References FALSE.
Referenced by LLDynamicTexture().
S32 LLDynamicTexture::getComponents | ( | ) | [inline] |
S32 LLDynamicTexture::getHeight | ( | ) | [inline] |
S32 LLDynamicTexture::getOriginX | ( | ) | [inline] |
Definition at line 53 of file lldynamictexture.h.
References mOrigin, and LLCoord::mX.
Referenced by LLTexLayerSet::gatherAlphaMasks().
S32 LLDynamicTexture::getOriginY | ( | ) | [inline] |
Definition at line 54 of file lldynamictexture.h.
References mOrigin, and LLCoord::mY.
Referenced by LLTexLayerSet::gatherAlphaMasks().
S32 LLDynamicTexture::getSize | ( | ) | [inline] |
Definition at line 58 of file lldynamictexture.h.
References mComponents, mHeight, and mWidth.
Referenced by LLTexLayerSetBuffer::LLTexLayerSetBuffer(), and LLTexLayerSetBuffer::~LLTexLayerSetBuffer().
S32 LLDynamicTexture::getWidth | ( | ) | [inline] |
virtual BOOL LLDynamicTexture::needsRender | ( | ) | [inline, virtual] |
Reimplemented in LLImagePreviewSculpted, LLImagePreviewAvatar, LLTexLayerSetBuffer, and LLVisualParamHint.
Definition at line 60 of file lldynamictexture.h.
References TRUE.
Reimplemented in LLTexLayerSetBuffer.
Definition at line 165 of file lldynamictexture.cpp.
References gCamera, LLCamera::getAspect(), LLCamera::getNear(), LLCamera::getView(), gViewerWindow, mCamera, mHeight, mOrigin, mTexture, mWidth, LLCoord::mX, LLCoord::mY, LLCamera::setAspect(), LLCoordFrame::setAxes(), LLCamera::setNear(), LLCoordFrame::setOrigin(), LLViewerWindow::setupViewport(), and LLCamera::setView().
Referenced by LLTexLayerSetBuffer::postRender().
Reimplemented in LLTexLayerSetBuffer, and LLVisualParamHint.
Definition at line 129 of file lldynamictexture.cpp.
References gCamera, LLCamera::getAspect(), LLCamera::getNear(), LLWindow::getPosition(), LLCamera::getView(), LLViewerWindow::getWindow(), LLViewerWindow::getWindowDisplayHeight(), glClear, gViewerWindow, mCamera, mHeight, mOrigin, mWidth, LLCoord::mX, LLCoord::mY, LLCoord::set(), LLCamera::setAspect(), LLCoordFrame::setAxes(), LLCamera::setNear(), LLCoordFrame::setOrigin(), LLCamera::setView(), and LLImageGL::unbindTexture().
Referenced by LLVisualParamHint::preRender(), and LLTexLayerSetBuffer::preRender().
void LLDynamicTexture::releaseGLTexture | ( | ) | [protected] |
Definition at line 83 of file lldynamictexture.cpp.
References mTexture, LLPointer< Type >::notNull(), and NULL.
Referenced by generateGLTexture(), and ~LLDynamicTexture().
BOOL LLDynamicTexture::render | ( | ) | [virtual] |
Reimplemented in LLPreviewAnimation, LLImagePreviewSculpted, LLImagePreviewAvatar, LLTexLayerSetBuffer, LLVisualParamHint, and LLVisualParamReset.
Definition at line 121 of file lldynamictexture.cpp.
References FALSE.
void LLDynamicTexture::restoreGL | ( | ) | [static] |
void LLDynamicTexture::unbindTexture | ( | ) | [virtual] |
Definition at line 193 of file lldynamictexture.cpp.
References LLImageGL::unbindTexture().
Referenced by LLFloaterImagePreview::draw(), and LLFloaterAnimPreview::draw().
BOOL LLDynamicTexture::updateAllInstances | ( | ) | [static] |
Definition at line 203 of file lldynamictexture.cpp.
References FALSE, LLLinkedList< DATA_TYPE >::getNextData(), gGLManager, LLGLManager::mIsDisabled, order, ORDER_COUNT, S32, sInstances, sNumRenders, LLVertexBuffer::startRender(), LLVertexBuffer::stopRender(), and TRUE.
Referenced by display(), and display_startup().
LLCamera LLDynamicTexture::mCamera [protected] |
BOOL LLDynamicTexture::mClamp [protected] |
S32 LLDynamicTexture::mComponents [protected] |
Definition at line 80 of file lldynamictexture.h.
Referenced by generateGLTexture(), getComponents(), and getSize().
S32 LLDynamicTexture::mHeight [protected] |
Definition at line 79 of file lldynamictexture.h.
Referenced by LLTexLayerSetBuffer::bindBumpTexture(), LLVisualParamHint::draw(), generateGLTexture(), getHeight(), getSize(), LLTexLayerSetBuffer::LLTexLayerSetBuffer(), postRender(), preRender(), LLTexLayerSetBuffer::pushProjection(), LLTexLayerSetBuffer::readBackAndUpload(), LLVisualParamHint::render(), LLTexLayerSetBuffer::render(), LLImagePreviewSculpted::render(), LLImagePreviewAvatar::render(), LLPreviewAnimation::render(), and LLTexLayerSetBuffer::~LLTexLayerSetBuffer().
F32 LLDynamicTexture::mLastBindTime [protected] |
Definition at line 82 of file lldynamictexture.h.
Referenced by LLTexLayerSetBuffer::bindBumpTexture().
LLCoordGL LLDynamicTexture::mOrigin [protected] |
Definition at line 84 of file lldynamictexture.h.
Referenced by getOriginX(), getOriginY(), postRender(), preRender(), LLTexLayerSetBuffer::readBackAndUpload(), LLVisualParamHint::render(), LLTexLayerSetBuffer::render(), LLImagePreviewSculpted::render(), LLImagePreviewAvatar::render(), and LLPreviewAnimation::render().
LLPointer<LLImageGL> LLDynamicTexture::mTexture [protected] |
Definition at line 81 of file lldynamictexture.h.
Referenced by bindTexture(), generateGLTexture(), postRender(), and releaseGLTexture().
S32 LLDynamicTexture::mWidth [protected] |
Definition at line 78 of file lldynamictexture.h.
Referenced by LLTexLayerSetBuffer::bindBumpTexture(), LLVisualParamHint::draw(), generateGLTexture(), getSize(), getWidth(), LLTexLayerSetBuffer::LLTexLayerSetBuffer(), postRender(), preRender(), LLTexLayerSetBuffer::pushProjection(), LLTexLayerSetBuffer::readBackAndUpload(), LLVisualParamHint::render(), LLTexLayerSetBuffer::render(), LLImagePreviewSculpted::render(), LLImagePreviewAvatar::render(), LLPreviewAnimation::render(), and LLTexLayerSetBuffer::~LLTexLayerSetBuffer().
LLLinkedList< LLDynamicTexture > LLDynamicTexture::sInstances [static, protected] |
Reimplemented in LLVisualParamHint.
Definition at line 87 of file lldynamictexture.h.
Referenced by LLDynamicTexture(), updateAllInstances(), and ~LLDynamicTexture().
S32 LLDynamicTexture::sNumRenders = 0 [static, protected] |