In OpenGL, this should be quite straightforward, creating thin wrapperss around glGenFramebuffers, glBindFramebuffer, and glDeleteFramebuffers. This is useful to control where and how the scene is rendered.