void glBindFramebuffer( GLenum target,GLuint framebuffer);
参数
- target :指定绑定操作的帧缓冲区目标。
- GL_DRAW_FRAMEBUFFER,
- GL_READ_FRAMEBUFFER
- GL_FRAMEBUFFER.
If a framebuffer object is bound to GL_DRAW_FRAMEBUFFER or GL_READ_FRAMEBUFFER, it becomes the target for rendering or readback operations, respectively, until it is deleted or another framebuffer is bound to the corresponding bind point. Calling glBindFramebuffer with target set to GL_FRAMEBUFFER binds framebuffer to both the read and draw framebuffer targets.
- framebuffer:指定要绑定的帧缓冲区对象的名称。
- framebuffer is the name of a framebuffer object previously returned from a call to glGenFramebuffers,
- zero to break the existing binding of a framebuffer object to target.