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

Method IsDirect

Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:1655–1669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1653}
1654
1655vtkTypeBool vtkXOpenGLRenderWindow::IsDirect()
1656{
1657 this->MakeCurrent();
1658 // load GLX
1659 if (!this->EnsureGLX())
1660 {
1661 return false;
1662 }
1663 this->UsingHardware = 0;
1664 if (this->DisplayId && this->Internal->ContextId)
1665 {
1666 this->UsingHardware = glXIsDirect(this->DisplayId, this->Internal->ContextId) ? 1 : 0;
1667 }
1668 return this->UsingHardware;
1669}
1670
1671void vtkXOpenGLRenderWindow::SetWindowName(const char* cname)
1672{

Callers

nothing calls this directly

Calls 2

MakeCurrentMethod · 0.95
EnsureGLXMethod · 0.95

Tested by

no test coverage detected