Destroy the FBO
| 87 | |
| 88 | // Destroy the FBO |
| 89 | void 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 |
| 104 | void FrameBufferObject::attachTexture(uint position, uint textureID) { |
nothing calls this directly
no outgoing calls
no test coverage detected