End the rendering process and display the image.
| 363 | |
| 364 | // End the rendering process and display the image. |
| 365 | void vtkXOpenGLRenderWindow::Frame() |
| 366 | { |
| 367 | if (!this->EnsureGLX()) |
| 368 | { |
| 369 | return; |
| 370 | } |
| 371 | this->MakeCurrent(); |
| 372 | this->Superclass::Frame(); |
| 373 | if (!this->AbortRender && this->DoubleBuffer && this->SwapBuffers && this->WindowId != 0) |
| 374 | { |
| 375 | this->RenderTimer->MarkStartEvent("glXSwapBuffers (may stall for VSync)"); |
| 376 | glXSwapBuffers(this->DisplayId, this->WindowId); |
| 377 | this->RenderTimer->MarkEndEvent(); |
| 378 | |
| 379 | vtkDebugMacro(<< " glXSwapBuffers\n"); |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | bool vtkXOpenGLRenderWindow::InitializeFromCurrentContext() |
| 384 | { |
nothing calls this directly
no test coverage detected