summaryrefslogtreecommitdiff
path: root/indra/llrender/llrendertarget.h
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2008-11-07 17:51:03 +0000
committerMark Palange <palange@lindenlab.com>2008-11-07 17:51:03 +0000
commitf89f19990cbb9f3f2e7473ac6c159098bdfabec7 (patch)
treee7fa406e2db5e9adc2e24e00557d7b3d3f93203a /indra/llrender/llrendertarget.h
parentb2bfb128e7d30e1cdb293a2ac192a0cbe63fe528 (diff)
QAR-992 Merging revisions 101012-101170,101686-101687 of svn+ssh://svn.lindenlab.com/svn/linden/qa/viewer_combo_1-22-merge into linden/release
Diffstat (limited to 'indra/llrender/llrendertarget.h')
-rw-r--r--indra/llrender/llrendertarget.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/indra/llrender/llrendertarget.h b/indra/llrender/llrendertarget.h
index df88640970..bb6131741c 100644
--- a/indra/llrender/llrendertarget.h
+++ b/indra/llrender/llrendertarget.h
@@ -33,6 +33,7 @@
#define LL_LLRENDERTARGET_H
#include "llgl.h"
+#include "llrender.h"
/*
SAMPLE USAGE:
@@ -53,7 +54,7 @@
...
//use target as a texture
- target.bindTexture();
+ gGL.getTexUnit(INDEX)->bind(&target);
... <issue drawing commands> ...
*/
@@ -71,7 +72,7 @@ public:
//allocate resources for rendering
//must be called before use
//multiple calls will release previously allocated resources
- void allocate(U32 resx, U32 resy, U32 color_fmt, BOOL depth, U32 usage = GL_TEXTURE_2D, BOOL use_fbo = FALSE);
+ void allocate(U32 resx, U32 resy, U32 color_fmt, BOOL depth, LLTexUnit::eTextureType usage = LLTexUnit::TT_TEXTURE, BOOL use_fbo = FALSE);
//allocate a depth texture
void allocateDepth();
@@ -100,11 +101,11 @@ public:
//get Y resolution
U32 getHeight() const { return mResY; }
- //bind results of render for sampling
- void bindTexture();
+ LLTexUnit::eTextureType getUsage(void) const { return mUsage; }
- //bind results of render for sampling depth buffer
- void bindDepth();
+ U32 getTexture(void) const { return mTex; }
+
+ U32 getDepth(void) const { return mDepth; }
//flush rendering operations
//must be called when rendering is complete
@@ -128,7 +129,7 @@ private:
U32 mStencil;
BOOL mUseDepth;
BOOL mRenderDepth;
- U32 mUsage;
+ LLTexUnit::eTextureType mUsage;
};