From Tim Moore, "This contains a couple of fixes to support changing FrameBufferObject configurations on the fly; the user changes the camera attachments and calls Renderer::setCameraRequiresSetUp(). The major part of this submission is a comprehensive example of setting up floating point depth buffers. The user can change the near plane value and cycle through the available combinations of depth format and multisample buffer formats."

This commit is contained in:
Robert Osfield
2010-04-19 11:43:06 +00:00
parent 488eac94f7
commit c0e9fcbb67
8 changed files with 1045 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ FBOExtensions::FBOExtensions(unsigned int contextID)
LOAD_FBO_EXT(glFramebufferTextureLayer);
LOAD_FBO_EXT(glFramebufferRenderbuffer);
LOAD_FBO_EXT(glGenerateMipmap);
LOAD_FBO_EXT(glGetRenderbufferParameteriv);
_supported =
glBindRenderbuffer != 0 &&
@@ -89,7 +90,8 @@ FBOExtensions::FBOExtensions(unsigned int contextID)
glFramebufferTexture2D != 0 &&
glFramebufferTexture3D != 0 &&
glFramebufferRenderbuffer != 0 &&
glGenerateMipmap != 0;
glGenerateMipmap != 0 &&
glGetRenderbufferParameteriv != 0;
LOAD_FBO_EXT(glBlitFramebuffer);
LOAD_FBO_EXT(glRenderbufferStorageMultisample);