LLDynamicTexture Class Reference

#include <lldynamictexture.h>

Inheritance diagram for LLDynamicTexture:

Inheritance graph
[legend]
Collaboration diagram for LLDynamicTexture:

Collaboration graph
[legend]
List of all members.

Public Types

 ORDER_FIRST = 0
 ORDER_MIDDLE = 1
 ORDER_LAST = 2
 ORDER_RESET = 3
 ORDER_COUNT = 4
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 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< LLImageGLmTexture
F32 mLastBindTime
BOOL mClamp
LLCoordGL mOrigin
LLCamera mCamera

Static Protected Attributes

static LLLinkedList< LLDynamicTexturesInstances [LLDynamicTexture::ORDER_COUNT]
static S32 sNumRenders = 0

Detailed Description

Definition at line 41 of file lldynamictexture.h.


Member Enumeration Documentation

enum LLDynamicTexture::EOrder

Enumerator:
ORDER_FIRST 
ORDER_MIDDLE 
ORDER_LAST 
ORDER_RESET 
ORDER_COUNT 

Definition at line 44 of file lldynamictexture.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 242 of file lldynamictexture.cpp.

Referenced by LLViewerWindow::stopGL().

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]

Definition at line 57 of file lldynamictexture.h.

References mComponents.

S32 LLDynamicTexture::getHeight (  )  [inline]

Definition at line 56 of file lldynamictexture.h.

References mHeight.

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]

Definition at line 55 of file lldynamictexture.h.

References mWidth.

virtual BOOL LLDynamicTexture::needsRender (  )  [inline, virtual]

Reimplemented in LLImagePreviewSculpted, LLImagePreviewAvatar, LLTexLayerSetBuffer, and LLVisualParamHint.

Definition at line 60 of file lldynamictexture.h.

References TRUE.

void LLDynamicTexture::postRender ( BOOL  success  )  [virtual]

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().

void LLDynamicTexture::preRender ( BOOL  clear_depth = TRUE  )  [virtual]

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]

Definition at line 250 of file lldynamictexture.cpp.

Referenced by LLViewerWindow::restoreGL().

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().


Member Data Documentation

LLCamera LLDynamicTexture::mCamera [protected]

Definition at line 86 of file lldynamictexture.h.

Referenced by postRender(), and preRender().

BOOL LLDynamicTexture::mClamp [protected]

Definition at line 83 of file lldynamictexture.h.

Referenced by generateGLTexture().

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]

Definition at line 88 of file lldynamictexture.h.

Referenced by updateAllInstances().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:15 2010 for Second Life Viewer by  doxygen 1.4.7