#include <lldynamictexture.h>


Public Types | |
| enum | EOrder { ORDER_FIRST = 0, ORDER_MIDDLE = 1, ORDER_LAST = 2, ORDER_RESET = 3, ORDER_COUNT = 4 } |
Public Member Functions | |
| LLDynamicTexture (S32 width, S32 height, S32 components, EOrder order, BOOL clamp) | |
| virtual | ~LLDynamicTexture () |
| S32 | getOriginX () |
| S32 | getOriginY () |
| S32 | getWidth () |
| S32 | getHeight () |
| S32 | getComponents () |
| S32 | getSize () |
| virtual BOOL | needsRender () |
| virtual void | preRender (BOOL clear_depth=TRUE) |
| virtual BOOL | render () |
| virtual void | postRender (BOOL success) |
| virtual void | bindTexture () |
| virtual void | unbindTexture () |
Static Public Member Functions | |
| static BOOL | updateAllInstances () |
| static void | destroyGL () |
| static void | restoreGL () |
Protected Types | |
| typedef std::set < LLDynamicTexture * > | instance_list_t |
Protected Member Functions | |
| void | releaseGLTexture () |
| void | generateGLTexture () |
| void | generateGLTexture (LLGLint internal_format, LLGLenum primary_format, LLGLenum type_format, BOOL swap_bytes=FALSE) |
Protected Attributes | |
| S32 | mWidth |
| S32 | mHeight |
| S32 | mComponents |
| LLPointer< LLImageGL > | mTexture |
| F32 | mLastBindTime |
| BOOL | mClamp |
| LLCoordGL | mOrigin |
| LLCamera | mCamera |
Static Protected Attributes | |
| static instance_list_t | sInstances [LLDynamicTexture::ORDER_COUNT] |
| static S32 | sNumRenders = 0 |
Definition at line 40 of file lldynamictexture.h.
typedef std::set<LLDynamicTexture*> LLDynamicTexture::instance_list_t [protected] |
Definition at line 43 of file lldynamictexture.h.
| LLDynamicTexture::LLDynamicTexture | ( | S32 | width, | |
| S32 | height, | |||
| S32 | components, | |||
| EOrder | order, | |||
| BOOL | clamp | |||
| ) |
Definition at line 54 of file lldynamictexture.cpp.
References generateGLTexture(), llassert, ORDER_COUNT, and sInstances.

| LLDynamicTexture::~LLDynamicTexture | ( | ) | [virtual] |
Definition at line 73 of file lldynamictexture.cpp.
References ORDER_COUNT, releaseGLTexture(), S32, and sInstances.

| S32 LLDynamicTexture::getOriginX | ( | ) | [inline] |
Definition at line 52 of file lldynamictexture.h.
References mOrigin, and LLCoord::mX.
Referenced by LLTexLayerSet::gatherAlphaMasks().

| S32 LLDynamicTexture::getOriginY | ( | ) | [inline] |
Definition at line 53 of file lldynamictexture.h.
References mOrigin, and LLCoord::mY.
Referenced by LLTexLayerSet::gatherAlphaMasks().

| S32 LLDynamicTexture::getWidth | ( | ) | [inline] |
Definition at line 54 of file lldynamictexture.h.
References mWidth.
Referenced by LLWebBrowserCtrl::draw().

| S32 LLDynamicTexture::getHeight | ( | ) | [inline] |
Definition at line 55 of file lldynamictexture.h.
References mHeight.
Referenced by LLWebBrowserCtrl::draw().

| S32 LLDynamicTexture::getComponents | ( | ) | [inline] |
| S32 LLDynamicTexture::getSize | ( | ) | [inline] |
Definition at line 57 of file lldynamictexture.h.
References mComponents, mHeight, and mWidth.
Referenced by LLTexLayerSetBuffer::LLTexLayerSetBuffer(), and LLTexLayerSetBuffer::~LLTexLayerSetBuffer().

| virtual BOOL LLDynamicTexture::needsRender | ( | ) | [inline, virtual] |
Reimplemented in LLImagePreviewSculpted, LLImagePreviewAvatar, LLTexLayerSetBuffer, LLVisualParamHint, and LLWebBrowserTexture.
Definition at line 59 of file lldynamictexture.h.
References TRUE.
Referenced by updateAllInstances().

| void LLDynamicTexture::preRender | ( | BOOL | clear_depth = TRUE |
) | [virtual] |
Reimplemented in LLTexLayerSetBuffer, LLVisualParamHint, and LLWebBrowserTexture.
Definition at line 131 of file lldynamictexture.cpp.
References LLSingleton< LLViewerCamera >::getInstance(), LLWindow::getPosition(), LLViewerWindow::getWindow(), LLViewerWindow::getWindowDisplayHeight(), 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(), LLTexLayerSetBuffer::preRender(), and updateAllInstances().


| BOOL LLDynamicTexture::render | ( | ) | [virtual] |
Reimplemented in LLPreviewAnimation, LLImagePreviewSculpted, LLImagePreviewAvatar, LLTexLayerSetBuffer, LLVisualParamHint, LLVisualParamReset, and LLWebBrowserTexture.
Definition at line 123 of file lldynamictexture.cpp.
References FALSE.
Referenced by updateAllInstances().

| void LLDynamicTexture::postRender | ( | BOOL | success | ) | [virtual] |
Reimplemented in LLTexLayerSetBuffer, and LLWebBrowserTexture.
Definition at line 167 of file lldynamictexture.cpp.
References LLCamera::getAspect(), LLSingleton< LLViewerCamera >::getInstance(), 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(), and updateAllInstances().


| void LLDynamicTexture::bindTexture | ( | ) | [virtual] |
Reimplemented in LLTexLayerSetBuffer.
Definition at line 190 of file lldynamictexture.cpp.
References LLViewerImage::bindTexture(), and mTexture.
Referenced by LLTexLayerSetBuffer::bindTexture(), LLWebBrowserCtrl::draw(), LLVisualParamHint::draw(), LLFloaterImagePreview::draw(), and LLFloaterAnimPreview::draw().


| void LLDynamicTexture::unbindTexture | ( | ) | [virtual] |
Definition at line 195 of file lldynamictexture.cpp.
References LLImageGL::unbindTexture().
Referenced by LLFloaterImagePreview::draw(), and LLFloaterAnimPreview::draw().


| BOOL LLDynamicTexture::updateAllInstances | ( | ) | [static] |
Definition at line 205 of file lldynamictexture.cpp.
References LLGLImmediate::color4f(), FALSE, LLGLImmediate::flush(), gDisplaySwapBuffers, gGL, gGLManager, LLGLManager::mIsDisabled, needsRender(), ORDER_COUNT, postRender(), preRender(), render(), render_ui_and_swap_if_needed(), S32, sInstances, sNumRenders, TRUE, and LLVertexBuffer::unbind().
Referenced by display(), and display_startup().


| void LLDynamicTexture::destroyGL | ( | ) | [static] |
Definition at line 250 of file lldynamictexture.cpp.
Referenced by LLViewerWindow::stopGL().

| void LLDynamicTexture::restoreGL | ( | ) | [static] |
Definition at line 258 of file lldynamictexture.cpp.
Referenced by LLViewerWindow::restoreGL().

| void LLDynamicTexture::releaseGLTexture | ( | ) | [protected] |
Definition at line 85 of file lldynamictexture.cpp.
References mTexture, LLPointer< Type >::notNull(), and NULL.
Referenced by generateGLTexture(), LLWebBrowserTexture::resize(), and ~LLDynamicTexture().


| void LLDynamicTexture::generateGLTexture | ( | ) | [protected] |
Definition at line 97 of file lldynamictexture.cpp.
References FALSE.
Referenced by LLDynamicTexture(), and LLWebBrowserTexture::resize().

| void LLDynamicTexture::generateGLTexture | ( | LLGLint | internal_format, | |
| LLGLenum | primary_format, | |||
| LLGLenum | type_format, | |||
| BOOL | swap_bytes = FALSE | |||
| ) | [protected] |
Definition at line 102 of file lldynamictexture.cpp.
References FALSE, llendl, llerrs, mClamp, mComponents, mHeight, mTexture, mWidth, and releaseGLTexture().

S32 LLDynamicTexture::mWidth [protected] |
Definition at line 77 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(), LLWebBrowserTexture::resize(), and LLTexLayerSetBuffer::~LLTexLayerSetBuffer().
S32 LLDynamicTexture::mHeight [protected] |
Definition at line 78 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(), LLWebBrowserTexture::resize(), and LLTexLayerSetBuffer::~LLTexLayerSetBuffer().
S32 LLDynamicTexture::mComponents [protected] |
Definition at line 79 of file lldynamictexture.h.
Referenced by generateGLTexture(), getComponents(), and getSize().
LLPointer<LLImageGL> LLDynamicTexture::mTexture [protected] |
Definition at line 80 of file lldynamictexture.h.
Referenced by bindTexture(), generateGLTexture(), postRender(), releaseGLTexture(), LLWebBrowserTexture::render(), and LLWebBrowserTexture::resize().
F32 LLDynamicTexture::mLastBindTime [protected] |
Definition at line 81 of file lldynamictexture.h.
Referenced by LLTexLayerSetBuffer::bindBumpTexture().
BOOL LLDynamicTexture::mClamp [protected] |
LLCoordGL LLDynamicTexture::mOrigin [protected] |
Definition at line 83 of file lldynamictexture.h.
Referenced by getOriginX(), getOriginY(), postRender(), preRender(), LLTexLayerSetBuffer::readBackAndUpload(), LLVisualParamHint::render(), LLTexLayerSetBuffer::render(), LLImagePreviewSculpted::render(), LLImagePreviewAvatar::render(), and LLPreviewAnimation::render().
LLCamera LLDynamicTexture::mCamera [protected] |
LLDynamicTexture::instance_list_t 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] |
1.5.5