diff options
author | Logan Dethrow <log@lindenlab.com> | 2012-12-11 17:14:24 -0500 |
---|---|---|
committer | Logan Dethrow <log@lindenlab.com> | 2012-12-11 17:14:24 -0500 |
commit | 2807c0b9424f9d3f80e49a3c150af0a459676d79 (patch) | |
tree | 2fdf21ef5429e112cc767bf3f594c8fe5c3d950b /indra/newview/pipeline.h | |
parent | 5798dd54ccbf2728725eae397a235c89d111cf93 (diff) | |
parent | 03025733484f7f1ea46d0356e65b0d142bc1dbdb (diff) |
Automated merge with ssh://bitbucket.org/lindenlab/sunshine-internal
Diffstat (limited to 'indra/newview/pipeline.h')
-rw-r--r-- | indra/newview/pipeline.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/indra/newview/pipeline.h b/indra/newview/pipeline.h index 5e69d4a951..a8db93585e 100644 --- a/indra/newview/pipeline.h +++ b/indra/newview/pipeline.h @@ -119,8 +119,25 @@ public: void createGLBuffers(); void createLUTBuffers(); - void allocateScreenBuffer(U32 resX, U32 resY); + //allocate the largest screen buffer possible up to resX, resY + //returns true if full size buffer allocated, false if some other size is allocated + bool allocateScreenBuffer(U32 resX, U32 resY); + + typedef enum { + FBO_SUCCESS_FULLRES = 0, + FBO_SUCCESS_LOWRES, + FBO_FAILURE + } eFBOStatus; + +private: + //implementation of above, wrapped for easy error handling + eFBOStatus doAllocateScreenBuffer(U32 resX, U32 resY); +public: + + //attempt to allocate screen buffers at resX, resY + //returns true if allocation successful, false otherwise bool allocateScreenBuffer(U32 resX, U32 resY, U32 samples); + void allocatePhysicsBuffer(); void resetVertexBuffers(LLDrawable* drawable); |