| 526 | } |
| 527 | |
| 528 | void 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 | //------------------------------------------------------------------------------ |
| 549 | bool vtkOpenGLFramebufferObject::Start(int width, int height) |
no test coverage detected