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

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< LLImageGLmTexture
F32 mLastBindTime
BOOL mClamp
LLCoordGL mOrigin
LLCamera mCamera

Static Protected Attributes

static instance_list_t sInstances [LLDynamicTexture::ORDER_COUNT]
static S32 sNumRenders = 0


Detailed Description

Definition at line 40 of file lldynamictexture.h.


Member Typedef Documentation

typedef std::set<LLDynamicTexture*> LLDynamicTexture::instance_list_t [protected]

Reimplemented in LLVisualParamHint.

Definition at line 86 of file lldynamictexture.h.


Member Enumeration Documentation

Enumerator:
ORDER_FIRST 
ORDER_MIDDLE 
ORDER_LAST 
ORDER_RESET 
ORDER_COUNT 

Definition at line 43 of file lldynamictexture.h.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:

LLDynamicTexture::~LLDynamicTexture (  )  [virtual]

Definition at line 73 of file lldynamictexture.cpp.

References ORDER_COUNT, releaseGLTexture(), S32, and sInstances.

Here is the call graph for this function:


Member Function Documentation

S32 LLDynamicTexture::getOriginX (  )  [inline]

Definition at line 52 of file lldynamictexture.h.

References mOrigin, and LLCoord::mX.

Referenced by LLTexLayerSet::gatherAlphaMasks().

Here is the caller graph for this function:

S32 LLDynamicTexture::getOriginY (  )  [inline]

Definition at line 53 of file lldynamictexture.h.

References mOrigin, and LLCoord::mY.

Referenced by LLTexLayerSet::gatherAlphaMasks().

Here is the caller graph for this function:

S32 LLDynamicTexture::getWidth (  )  [inline]

Definition at line 54 of file lldynamictexture.h.

References mWidth.

Referenced by LLWebBrowserCtrl::draw().

Here is the caller graph for this function:

S32 LLDynamicTexture::getHeight (  )  [inline]

Definition at line 55 of file lldynamictexture.h.

References mHeight.

Referenced by LLWebBrowserCtrl::draw().

Here is the caller graph for this function:

S32 LLDynamicTexture::getComponents (  )  [inline]

Definition at line 56 of file lldynamictexture.h.

References mComponents.

S32 LLDynamicTexture::getSize (  )  [inline]

Definition at line 57 of file lldynamictexture.h.

References mComponents, mHeight, and mWidth.

Referenced by LLTexLayerSetBuffer::LLTexLayerSetBuffer(), and LLTexLayerSetBuffer::~LLTexLayerSetBuffer().

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

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

Here is the caller graph for this function:

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDynamicTexture::unbindTexture (  )  [virtual]

Definition at line 195 of file lldynamictexture.cpp.

References LLImageGL::unbindTexture().

Referenced by LLFloaterImagePreview::draw(), and LLFloaterAnimPreview::draw().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLDynamicTexture::updateAllInstances (  )  [static]

void LLDynamicTexture::destroyGL (  )  [static]

Definition at line 250 of file lldynamictexture.cpp.

Referenced by LLViewerWindow::stopGL().

Here is the caller graph for this function:

void LLDynamicTexture::restoreGL (  )  [static]

Definition at line 258 of file lldynamictexture.cpp.

Referenced by LLViewerWindow::restoreGL().

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDynamicTexture::generateGLTexture (  )  [protected]

Definition at line 97 of file lldynamictexture.cpp.

References FALSE.

Referenced by LLDynamicTexture(), and LLWebBrowserTexture::resize().

Here is the caller graph for this function:

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

Here is the call graph for this function:


Member Data Documentation

Definition at line 79 of file lldynamictexture.h.

Referenced by generateGLTexture(), getComponents(), and getSize().

Definition at line 81 of file lldynamictexture.h.

Referenced by LLTexLayerSetBuffer::bindBumpTexture().

Definition at line 82 of file lldynamictexture.h.

Referenced by generateGLTexture().

Definition at line 85 of file lldynamictexture.h.

Referenced by postRender(), and preRender().

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 Fri May 16 08:44:14 2008 for SecondLife by  doxygen 1.5.5