Light | Dark

glDeleteFramebuffers

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

Tutorials

Think you can improve this page? Edit this page on GitHub.