MCPcopy Create free account
hub / github.com/Kitware/VTK / AttachColorBuffer

Method AttachColorBuffer

Rendering/OpenGL2/vtkOpenGLFramebufferObject.cxx:741–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741void vtkOpenGLFramebufferObject::AttachColorBuffer(unsigned int index)
742{
743 if (this->FBOIndex != 0)
744 {
745 foIter i = this->ColorBuffers.find(index);
746 this->Context->GetState()->PushDrawFramebufferBinding();
747 this->Context->GetState()->vtkBindFramebuffer(GL_DRAW_FRAMEBUFFER, this);
748 if (i != this->ColorBuffers.end())
749 {
750 i->second->Attach(GL_DRAW_FRAMEBUFFER);
751 }
752 this->Context->GetState()->PopDrawFramebufferBinding();
753 }
754}
755
756void vtkOpenGLFramebufferObject::AttachDepthBuffer()
757{

Callers 1

AddColorAttachmentMethod · 0.95

Calls 7

vtkBindFramebufferMethod · 0.80
findMethod · 0.45
GetStateMethod · 0.45
endMethod · 0.45
AttachMethod · 0.45

Tested by

no test coverage detected