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

Method AttachDepthBuffer

Rendering/OpenGL2/vtkOpenGLFramebufferObject.cxx:756–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756void vtkOpenGLFramebufferObject::AttachDepthBuffer()
757{
758 if (this->FBOIndex != 0)
759 {
760 this->Context->GetState()->PushDrawFramebufferBinding();
761 this->Context->GetState()->vtkBindFramebuffer(GL_DRAW_FRAMEBUFFER, this);
762 this->DepthBuffer->Attach(GL_DRAW_FRAMEBUFFER);
763 this->Context->GetState()->PopDrawFramebufferBinding();
764 }
765}
766
767//------------------------------------------------------------------------------
768void vtkOpenGLFramebufferObject::UnBind()

Callers 1

AddDepthAttachmentMethod · 0.95

Calls 5

vtkBindFramebufferMethod · 0.80
GetStateMethod · 0.45
AttachMethod · 0.45

Tested by

no test coverage detected