Name

glDeleteFramebuffers — delete named framebuffer objects

C Specification

void glDeleteFramebuffers(GLsizei n,
 const GLuint * framebuffers);
 

Parameters

n

Specifies the number of framebuffer objects to be deleted.

framebuffers

Specifies an array of framebuffer objects to be deleted.

Description

glDeleteFramebuffers deletes n framebuffer objects named by the elements of the array framebuffers. After a framebuffer object is deleted, it has no attachments, and its name is free for reuse (for example by glGenFramebuffers). If a framebuffer object that is currently bound is deleted, the binding reverts to 0 (the window-system-provided framebuffer).

glDeleteFramebuffers silently ignores 0's and names that do not correspond to existing framebuffer objects.

Errors

GL_INVALID_VALUE is generated if n is negative.

Associated Gets

glIsFramebuffer

See Also

glBindFramebuffer, glGenFramebuffers, glIsFramebuffer

Copyright

Copyright © 2008 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.