----------------------------------------------------------------------------- Purpose: Initialize Compositor. Returns true if the compositor was successfully initialized, false otherwise. -----------------------------------------------------------------------------
| 1472 | // successfully initialized, false otherwise. |
| 1473 | //----------------------------------------------------------------------------- |
| 1474 | bool 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 | //----------------------------------------------------------------------------- |