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

Method Frame

Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:365–381  ·  view source on GitHub ↗

End the rendering process and display the image.

Source from the content-addressed store, hash-verified

363
364// End the rendering process and display the image.
365void 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
383bool vtkXOpenGLRenderWindow::InitializeFromCurrentContext()
384{

Callers

nothing calls this directly

Calls 4

EnsureGLXMethod · 0.95
MakeCurrentMethod · 0.95
MarkStartEventMethod · 0.45
MarkEndEventMethod · 0.45

Tested by

no test coverage detected