diff options
| author | Brad Kittenbrink <brad@lindenlab.com> | 2022-04-27 10:27:48 -0700 | 
|---|---|---|
| committer | Brad Kittenbrink <brad@lindenlab.com> | 2022-04-27 10:27:48 -0700 | 
| commit | a3ffa9f006b008b5faad248f700c8c2fbc6b74fd (patch) | |
| tree | f674d4d4e3ab2d4ef4a7419594ea507506238232 /indra/llrender/llrendertarget.h | |
| parent | 030d61ac58be38f9f8aafeb68b383d88d670080b (diff) | |
| parent | bafa869c21cb8b329f94be6fa930a43d11699082 (diff) | |
Merge remote-tracking branch 'origin/DRTVWR-546' into DRTVWR-559
Diffstat (limited to 'indra/llrender/llrendertarget.h')
| -rw-r--r-- | indra/llrender/llrendertarget.h | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/indra/llrender/llrendertarget.h b/indra/llrender/llrendertarget.h index 6c07ac5b1c..584f224dca 100644 --- a/indra/llrender/llrendertarget.h +++ b/indra/llrender/llrendertarget.h @@ -81,6 +81,24 @@ public:  	// 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); +    //point this render target at a particular LLImageGL +    //   Intended usage: +    //      LLRenderTarget target; +    //      target.addColorAttachment(image); +    //      target.bindTarget(); +    //      < issue GL calls> +    //      target.flush(); +    //      target.releaseColorAttachment(); +    //  +    // attachment -- LLImageGL to render into +    // use_name -- optional texture name to target instead of attachment->getTexName() +    // NOTE: setColorAttachment and releaseColorAttachment cannot be used in conjuction with +    // addColorAttachment, allocateDepth, resize, etc. +    void setColorAttachment(LLImageGL* attachment, LLGLuint use_name = 0); + +    // detach from current color attachment +    void releaseColorAttachment(); +  	//add color buffer attachment  	//limit of 4 color attachments per render target  	bool addColorAttachment(U32 color_fmt); | 
