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

Method Resize

Rendering/OpenGL2/vtkOpenGLFramebufferObject.cxx:528–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528void vtkOpenGLFramebufferObject::Resize(int width, int height)
529{
530 // resize all items
531 this->LastSize[0] = width;
532 this->LastSize[1] = height;
533
534 // loop through all attachments and
535 // verify they are of the same size.
536 for (foIter i = this->ColorBuffers.begin(); i != this->ColorBuffers.end(); ++i)
537 {
538 i->second->Resize(this->LastSize);
539 }
540
541 // now resize any buffers we created that are the wrong size
542 if (this->DepthBuffer->IsSet())
543 {
544 this->DepthBuffer->Resize(this->LastSize);
545 }
546}
547
548//------------------------------------------------------------------------------
549bool vtkOpenGLFramebufferObject::Start(int width, int height)

Callers 2

ResizeFunction · 0.45
UpdateSizeMethod · 0.45

Calls 3

IsSetMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected