Gambas Documentation - /comp/gb.opengl/gl/deleteframebuffersext

# Gl.DeleteFramebuffersEXT (gb.opengl)

Static Sub DeleteFramebuffersEXT ( Framebuffers As Integer[] )

Delete framebuffer objects.

### Parameters

n

  Specifies the number of framebuffer objects to be deleted.

framebuffers

  A pointer to an array containing n framebuffer objects to be deleted.

### Description

Gl.DeleteFramebuffers deletes the n framebuffer objects whose names are stored in the array addressed by framebuffers. The name zero is reserved by the GL and is silently ignored, should it occur in framebuffers, as are other unused names. Once a framebuffer object is deleted, its name is again unused and it has no attachments. If a framebuffer that is currently bound to one or more of the targets Gl.DRAW_FRAMEBUFFER or Gl.READ_FRAMEBUFFER is deleted, it is as though Gl.BindFramebuffer had been executed with the corresponding target and framebuffer zero.

### Errors

Gl.INVALID_VALUE is generated if n is negative.

### See also

Gl.GenFramebuffers Gl.BindFramebuffer Gl.CheckFramebufferStatus

See original documentation on OpenGL website