----------------------------------------------------------------------------- Purpose: Initialize Compositor. Returns true if the compositor was successfully initialized, false otherwise. -----------------------------------------------------------------------------
| 663 | // successfully initialized, false otherwise. |
| 664 | //----------------------------------------------------------------------------- |
| 665 | bool CMainApplication::BInitCompositor() |
| 666 | { |
| 667 | vr::EVRInitError peError = vr::VRInitError_None; |
| 668 | |
| 669 | if ( !vr::VRCompositor() ) |
| 670 | { |
| 671 | dprintf( "Compositor initialization failed. See log file for details\n" ); |
| 672 | return false; |
| 673 | } |
| 674 | |
| 675 | return true; |
| 676 | } |
| 677 | |
| 678 | |
| 679 | //----------------------------------------------------------------------------- |