diff options
author | Oz Linden <oz@lindenlab.com> | 2012-07-13 13:04:16 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-07-13 13:04:16 -0400 |
commit | c3d9f0e41cc0cde6f1383225a8937d128e5838d8 (patch) | |
tree | 24d60b5329c102c672ccd55e31527a1f304eca6a /indra/llrender/llrendertarget.h | |
parent | 254c2703632ef5d7a875597d4907804c63ed8e72 (diff) | |
parent | e51a60536dc082be563c2f5b3b4f86df843d3a14 (diff) |
merge changes for DRTVWR-179
Diffstat (limited to 'indra/llrender/llrendertarget.h')
-rw-r--r-- | indra/llrender/llrendertarget.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/llrender/llrendertarget.h b/indra/llrender/llrendertarget.h index 8360458840..e1a51304f1 100644 --- a/indra/llrender/llrendertarget.h +++ b/indra/llrender/llrendertarget.h @@ -57,8 +57,6 @@ */ -class LLMultisampleBuffer; - class LLRenderTarget { public: @@ -74,6 +72,12 @@ public: //multiple calls will release previously allocated resources bool allocate(U32 resx, U32 resy, U32 color_fmt, bool depth, bool stencil, LLTexUnit::eTextureType usage = LLTexUnit::TT_TEXTURE, bool use_fbo = false, S32 samples = 0); + //resize existing attachments to use new resolution and color format + // CAUTION: if the GL runs out of memory attempting to resize, this render target will be undefined + // DO NOT use for screen space buffers or for scratch space for an image that might be uploaded + // DO use for render targets that resize often and aren't likely to ruin someone's day if they break + void resize(U32 resx, U32 resy, U32 color_fmt); + //add color buffer attachment //limit of 4 color attachments per render target bool addColorAttachment(U32 color_fmt); |