logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glDeleteFramebuffers - delete framebuffer objects

C Specification

voidglDeleteFramebuffers(GLsizein,GLuint*framebuffers);

Description

glDeleteFramebuffers 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 glBindFramebuffer() had been
       executed with the corresponding target and framebuffer zero.

Errors

GL_INVALID_VALUE is generated if n is negative.

Name

       glDeleteFramebuffers - 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.

See Also

glGenFramebuffers(), glBindFramebuffer(), glCheckFramebufferStatus()

Version Support

       ┌──────────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                      │                OpenGLVersion                                         │
       ├──────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                    │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature              │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name                 │     │     │     │     │     │     │     │     │     │     │     │     │
       ├──────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glDeleteFramebuffers │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └──────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also