LLRenderTarget Class Reference

#include <llrendertarget.h>

List of all members.

Public Member Functions

 LLRenderTarget ()
 ~LLRenderTarget ()
void allocate (U32 resx, U32 resy, U32 color_fmt, BOOL depth, U32 usage=GL_TEXTURE_2D, BOOL use_fbo=FALSE)
void allocateDepth ()
void release ()
void bindTarget ()
void clear ()
void getViewport (S32 *viewport)
U32 getWidth () const
U32 getHeight () const
void bindTexture ()
void bindDepth ()
void flush (BOOL fetch_depth=FALSE)
BOOL isComplete () const

Static Public Member Functions

static void unbindTarget ()

Static Public Attributes

static BOOL sUseFBO = FALSE

Private Attributes

U32 mResX
U32 mResY
U32 mTex
U32 mFBO
U32 mDepth
U32 mStencil
BOOL mUseDepth
BOOL mRenderDepth
U32 mUsage


Detailed Description

Definition at line 62 of file llrendertarget.h.


Constructor & Destructor Documentation

LLRenderTarget::LLRenderTarget (  ) 

Definition at line 41 of file llrendertarget.cpp.

LLRenderTarget::~LLRenderTarget (  ) 

Definition at line 54 of file llrendertarget.cpp.

References release().

Here is the call graph for this function:


Member Function Documentation

void LLRenderTarget::allocate ( U32  resx,
U32  resy,
U32  color_fmt,
BOOL  depth,
U32  usage = GL_TEXTURE_2D,
BOOL  use_fbo = FALSE 
)

Definition at line 59 of file llrendertarget.cpp.

References allocateDepth(), gGLManager, mDepth, mFBO, LLGLManager::mHasFramebufferObject, mResX, mResY, mTex, mUsage, mUseDepth, NULL, release(), stop_glerror, and sUseFBO.

Referenced by LLPipeline::createGLBuffers(), LLPipeline::generateImpostor(), LLViewerWindow::rawSnapshot(), and LLPipeline::resizeScreenTexture().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLRenderTarget::allocateDepth (  ) 

Definition at line 120 of file llrendertarget.cpp.

References mDepth, mResX, mResY, mUsage, and NULL.

Referenced by allocate(), and flush().

Here is the caller graph for this function:

void LLRenderTarget::release (  ) 

Definition at line 129 of file llrendertarget.cpp.

References mDepth, mFBO, and mTex.

Referenced by allocate(), LLPipeline::releaseGLBuffers(), LLVOAvatar::resetImpostors(), LLPipeline::resizeScreenTexture(), and ~LLRenderTarget().

Here is the caller graph for this function:

void LLRenderTarget::bindTarget (  ) 

Definition at line 150 of file llrendertarget.cpp.

References mFBO, mResX, and mResY.

Referenced by display(), LLPipeline::generateImpostor(), LLPipeline::generateWaterReflection(), LLViewerWindow::rawSnapshot(), LLPipeline::renderBloom(), and LLPipeline::updateCull().

Here is the caller graph for this function:

void LLRenderTarget::unbindTarget (  )  [static]

Definition at line 161 of file llrendertarget.cpp.

References gGLManager, and LLGLManager::mHasFramebufferObject.

Referenced by LLPipeline::generateWaterReflection(), and LLPipeline::updateCull().

Here is the caller graph for this function:

void LLRenderTarget::clear ( void   ) 

Definition at line 169 of file llrendertarget.cpp.

References mFBO, mResX, mResY, and mUseDepth.

Referenced by LLPipeline::generateWaterReflection(), and LLPipeline::renderBloom().

Here is the caller graph for this function:

void LLRenderTarget::getViewport ( S32 viewport  ) 

Definition at line 229 of file llrendertarget.cpp.

References mResX, and mResY.

Referenced by LLPipeline::generateImpostor(), and LLPipeline::generateWaterReflection().

Here is the caller graph for this function:

U32 LLRenderTarget::getWidth (  )  const [inline]

Definition at line 98 of file llrendertarget.h.

References mResX.

Referenced by LLPipeline::generateImpostor().

Here is the caller graph for this function:

U32 LLRenderTarget::getHeight (  )  const [inline]

Definition at line 101 of file llrendertarget.h.

References mResY.

Referenced by LLPipeline::generateImpostor().

Here is the caller graph for this function:

void LLRenderTarget::bindTexture (  ) 

Definition at line 188 of file llrendertarget.cpp.

References mTex, and mUsage.

Referenced by flush(), LLPipeline::generateImpostor(), LLPipeline::renderBloom(), LLVOAvatar::renderImpostor(), and LLDrawPoolWater::shade().

Here is the caller graph for this function:

void LLRenderTarget::bindDepth (  ) 

Definition at line 193 of file llrendertarget.cpp.

References mDepth, and mUsage.

Referenced by flush().

Here is the caller graph for this function:

void LLRenderTarget::flush ( BOOL  fetch_depth = FALSE  ) 

Definition at line 199 of file llrendertarget.cpp.

References allocateDepth(), bindDepth(), bindTexture(), LLGLImmediate::flush(), gGL, mDepth, mFBO, mResX, mResY, and mUsage.

Referenced by display(), LLPipeline::generateImpostor(), LLPipeline::generateWaterReflection(), LLViewerWindow::rawSnapshot(), LLPipeline::renderBloom(), and LLPipeline::updateCull().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLRenderTarget::isComplete (  )  const

Definition at line 224 of file llrendertarget.cpp.

References FALSE, mDepth, mTex, and TRUE.

Referenced by LLPipeline::generateImpostor(), and LLVOAvatar::renderImpostor().

Here is the caller graph for this function:


Member Data Documentation

BOOL LLRenderTarget::sUseFBO = FALSE [static]

Definition at line 123 of file llrendertarget.h.

Referenced by allocate(), allocateDepth(), bindTarget(), clear(), flush(), getViewport(), and getWidth().

Definition at line 124 of file llrendertarget.h.

Referenced by allocate(), allocateDepth(), bindTarget(), clear(), flush(), getHeight(), and getViewport().

Definition at line 125 of file llrendertarget.h.

Referenced by allocate(), bindTexture(), isComplete(), and release().

Definition at line 126 of file llrendertarget.h.

Referenced by allocate(), bindTarget(), clear(), flush(), and release().

Definition at line 127 of file llrendertarget.h.

Referenced by allocate(), allocateDepth(), bindDepth(), flush(), isComplete(), and release().

Definition at line 128 of file llrendertarget.h.

Definition at line 129 of file llrendertarget.h.

Referenced by allocate(), and clear().

Definition at line 130 of file llrendertarget.h.

Definition at line 131 of file llrendertarget.h.

Referenced by allocate(), allocateDepth(), bindDepth(), bindTexture(), and flush().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:01:30 2008 for SecondLife by  doxygen 1.5.5