Gl.BindFramebufferEXT (gb.opengl)
Static Sub BindFramebufferEXT ( Target As Integer, Framebuffer As Integer )
Bind a framebuffer to a framebuffer target.
Parameters
- target
-
Specifies the framebuffer target of the binding operation.
- framebuffer
-
Specifies the name of the framebuffer object to bind.
Description
Gl.BindFramebuffer binds the framebuffer object with name
framebuffer to the framebuffer target specified
by
target.
target must be either Gl.DRAW_FRAMEBUFFER,
Gl.READ_FRAMEBUFFER or 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
Gl.BindFramebuffer with
target set to Gl.FRAMEBUFFER binds
framebuffer to both the read and draw framebuffer targets.
framebuffer is the name of a framebuffer
object previously returned from a call to Gl.GenFramebuffers, or zero to break the existing
binding of a framebuffer object to
target.
Errors
Gl.INVALID_ENUM is generated if
target is not Gl.DRAW_FRAMEBUFFER,
Gl.READ_FRAMEBUFFER or Gl.FRAMEBUFFER.
Gl.INVALID_OPERATION is generated if
framebuffer is not zero or the name of a framebuffer
previously returned from a call to Gl.GenFramebuffers.
See also
Gl.GenFramebuffers,
Gl.DeleteFramebuffers,
Gl.FramebufferRenderbuffer,
Gl.FramebufferTexture,
Gl.FramebufferTexture1D,
Gl.FramebufferTexture2D,
Gl.FramebufferTexture3D,
Gl.FramebufferTextureFace,
Gl.FramebufferTextureLayer,
Gl.IsFramebuffer
See original documentation on OpenGL website