Пример #1
0
 void Framebuffer::attachDepthBuffer(const Renderbuffer& rb)
 {
     bind();
     glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, rb.getHandle());
     _depth = true;
 }
Пример #2
0
 void Framebuffer::attachColorBuffer(const Renderbuffer& rb)
 {
     bind();
     glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rb.getHandle());
     _color = true;
 }