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

Method GetSizeFromAPI

Rendering/OpenVR/vtkOpenVRRenderWindow.cxx:320–335  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

318
319//------------------------------------------------------------------------------
320bool vtkOpenVRRenderWindow::GetSizeFromAPI()
321{
322 if (!this->HMD)
323 {
324 return false;
325 }
326
327 uint32_t renderWidth;
328 uint32_t renderHeight;
329 this->HMD->GetRecommendedRenderTargetSize(&renderWidth, &renderHeight);
330
331 this->Size[0] = renderWidth;
332 this->Size[1] = renderHeight;
333
334 return true;
335}
336
337//------------------------------------------------------------------------------
338std::string vtkOpenVRRenderWindow::GetWindowTitleFromAPI()

Callers 1

InitializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected