MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / BInitCompositor

Method BInitCompositor

samples/hellovr_vulkan/hellovr_vulkan_main.cpp:1474–1485  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Initialize Compositor. Returns true if the compositor was successfully initialized, false otherwise. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1472// successfully initialized, false otherwise.
1473//-----------------------------------------------------------------------------
1474bool CMainApplication::BInitCompositor()
1475{
1476 vr::EVRInitError peError = vr::VRInitError_None;
1477
1478 if ( !vr::VRCompositor() )
1479 {
1480 dprintf( "Compositor initialization failed. See log file for details\n" );
1481 return false;
1482 }
1483
1484 return true;
1485}
1486
1487
1488//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

dprintfFunction · 0.70

Tested by

no test coverage detected