MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / destroy

Method destroy

testbed/opengl-framework/src/FrameBufferObject.cpp:89–101  ·  view source on GitHub ↗

Destroy the FBO

Source from the content-addressed store, hash-verified

87
88// Destroy the FBO
89void FrameBufferObject::destroy() {
90
91 // Delete the frame buffer object
92 if (mFrameBufferID) {
93 glDeleteFramebuffers(1, &mFrameBufferID);
94 mFrameBufferID = 0;
95 }
96
97 // Delete the render buffer
98 if (mRenderBufferID) {
99 glDeleteRenderbuffers(1, &mRenderBufferID);
100 }
101}
102
103// Attach a texture to the frame buffer object
104void FrameBufferObject::attachTexture(uint position, uint textureID) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected