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

Method AddDepthAttachment

Rendering/OpenGL2/vtkOpenGLFramebufferObject.cxx:784–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784void vtkOpenGLFramebufferObject::AddDepthAttachment()
785{
786 // create as needed
787 if (!this->DepthBuffer->IsSet())
788 {
789 // create a renderbuffer
790 vtkRenderbuffer* rb = vtkRenderbuffer::New();
791 rb->SetContext(this->Context);
792 rb->CreateDepthAttachment(this->LastSize[0], this->LastSize[1]);
793
794 this->AddDepthAttachment(rb);
795 this->DepthBuffer->CreatedByFO = true;
796 rb->Delete();
797 }
798}
799
800//------------------------------------------------------------------------------
801void vtkOpenGLFramebufferObject::DestroyDepthBuffer(vtkWindow*)

Callers 15

PopulateFramebufferMethod · 0.95
RenderDelegateMethod · 0.80
InitOpenGLResourcesMethod · 0.80
RenderDelegateMethod · 0.80
RenderMethod · 0.80
InitializeFBOMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderDelegateMethod · 0.80
RenderMethod · 0.80
SetupBuffersMethod · 0.80

Calls 7

AttachDepthBufferMethod · 0.95
IsSetMethod · 0.80
CreateDepthAttachmentMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
SetContextMethod · 0.45
SetTextureMethod · 0.45

Tested by

no test coverage detected