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

Method InitFramebuffer

Rendering/OpenGL2/vtkDualDepthPeelingPass.cxx:970–977  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

968
969//------------------------------------------------------------------------------
970void vtkDualDepthPeelingPass::InitFramebuffer(const vtkRenderState* s)
971{
972 this->Framebuffer->SetContext(
973 static_cast<vtkOpenGLRenderWindow*>(s->GetRenderer()->GetRenderWindow()));
974
975 // Save the current FBO bindings to restore them later.
976 this->State->PushDrawFramebufferBinding();
977}
978
979//------------------------------------------------------------------------------
980void vtkDualDepthPeelingPass::ActivateDrawBuffers(const TextureName* ids, size_t numTex)

Callers 1

InitializeMethod · 0.95

Calls 4

SetContextMethod · 0.45
GetRenderWindowMethod · 0.45
GetRendererMethod · 0.45

Tested by

no test coverage detected