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

Method RemoveColorAttachment

Rendering/OpenGL2/vtkOpenGLFramebufferObject.cxx:931–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931void vtkOpenGLFramebufferObject::RemoveColorAttachment(unsigned int index)
932{
933 foIter i = this->ColorBuffers.find(index);
934
935 if (i != this->ColorBuffers.end())
936 {
937 if (this->FBOIndex != 0)
938 {
939 this->Context->GetState()->PushDrawFramebufferBinding();
940 this->Context->GetState()->vtkBindFramebuffer(GL_DRAW_FRAMEBUFFER, this);
941 i->second->Detach(GL_DRAW_FRAMEBUFFER);
942 this->Context->GetState()->PopDrawFramebufferBinding();
943 }
944 delete i->second;
945 i->second = nullptr;
946 this->ColorBuffers.erase(i);
947 }
948}
949
950//------------------------------------------------------------------------------
951// Description:

Callers 11

RenderOnFaceMethod · 0.80
LoadMethod · 0.80
RenderMethod · 0.80
ExitRenderToTextureMethod · 0.80
RestoreActiveFBOMethod · 0.80
StreamingFindMinMaxMethod · 0.80
CompletedGeometryMethod · 0.80
CombineColorsAndLICMethod · 0.80
StreamingFindMinMaxFunction · 0.80
GatherMethod · 0.80

Calls 7

vtkBindFramebufferMethod · 0.80
findMethod · 0.45
endMethod · 0.45
GetStateMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected