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

Method PopDrawFramebufferBinding

Rendering/OpenGL2/vtkOpenGLState.cxx:2011–2026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2009}
2010
2011void vtkOpenGLState::PopDrawFramebufferBinding()
2012{
2013 if (!this->DrawBindings.empty())
2014 {
2015 auto& cs = this->Stack.top();
2016 BufferBindingState& bbs = this->DrawBindings.back();
2017 ::glBindFramebuffer(GL_DRAW_FRAMEBUFFER, bbs.GetBinding());
2018 cs.DrawBinding = bbs;
2019 this->DrawBindings.pop_back();
2020 }
2021 else
2022 {
2023 vtkGenericWarningMacro("Attempt to pop framebuffer beyond beginning of the stack.");
2024 abort();
2025 }
2026}
2027
2028void vtkOpenGLState::PopReadFramebufferBinding()
2029{

Callers 15

CopyOpaqueDepthBufferMethod · 0.80
FinalizeMethod · 0.80
ReadPixelsMethod · 0.80
SetPixelDataMethod · 0.80
SetRGBAPixelDataMethod · 0.80
SetRGBACharPixelDataMethod · 0.80
GetZbufferDataMethod · 0.80
SetZbufferDataMethod · 0.80
EndPassMethod · 0.80
PopFramebufferBindingsFunction · 0.80
AttachColorBufferMethod · 0.80

Calls 4

backMethod · 0.80
GetBindingMethod · 0.80
pop_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected