diff options
author | richard <none@none> | 2009-11-11 12:21:23 -0800 |
---|---|---|
committer | richard <none@none> | 2009-11-11 12:21:23 -0800 |
commit | b34ee7f9f405e25ac606a16435ed49c7187387d8 (patch) | |
tree | 6af5fd639854dff2bb81f6d633725091e2c2fb4e /indra/llrender/llrendertarget.h | |
parent | 41a2849a2075f8c5b787e7ed5ac170aa9a339e19 (diff) | |
parent | 0a095bdaed81f4df90bceac3373fa3481787e7fb (diff) |
merge
Diffstat (limited to 'indra/llrender/llrendertarget.h')
-rw-r--r-- | indra/llrender/llrendertarget.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llrender/llrendertarget.h b/indra/llrender/llrendertarget.h index b7ebfc8f7f..125747424c 100644 --- a/indra/llrender/llrendertarget.h +++ b/indra/llrender/llrendertarget.h @@ -107,6 +107,9 @@ public: //uses scissor rect if in copy-to-texture mode void clear(U32 mask = 0xFFFFFFFF); + // override default viewport to a smaller size + void setViewport(U32 width, U32 height); + //get applied viewport void getViewport(S32* viewport); @@ -150,12 +153,16 @@ protected: friend class LLMultisampleBuffer; U32 mResX; U32 mResY; + U32 mViewportWidth; + U32 mViewportHeight; std::vector<U32> mTex; U32 mFBO; + U32 mColorFmt; U32 mDepth; BOOL mStencil; BOOL mUseDepth; BOOL mRenderDepth; + LLTexUnit::eTextureType mUsage; U32 mSamples; LLMultisampleBuffer* mSampleBuffer; |