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

Method CMainApplication

samples/hmd_opencv_sandbox/hmd_opencv_sandbox.cpp:62–96  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Constructor -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

60// Purpose: Constructor
61//-----------------------------------------------------------------------------
62CMainApplication::CMainApplication( int argc, char *argv[] )
63 : m_nCompanionWindowWidth( 2048 )
64 , m_nCompanionWindowHeight( 1024 )
65 , m_shdCompanionWindowProgram( CONTENT_FOLDER"/companion" )
66 , m_pIVRSystem( NULL )
67 , m_bDebugOpenGL( false )
68 , m_bVerbose( false )
69 , m_bPerf( false )
70 , m_bVblank( false )
71 , m_strPoseClasses( "" )
72 , m_CameraApp( this )
73 , bQuit( false )
74 , m_geoCompanion( "CompanionGeo" )
75 , m_shdRenderModel( CONTENT_FOLDER"/rendermodel" )
76{
77 APP = this;
78
79 for( int i = 1; i < argc; i++ )
80 {
81 if( !stricmp( argv[i], "-gldebug" ) )
82 {
83 m_bDebugOpenGL = true;
84 }
85 else if( !stricmp( argv[i], "-verbose" ) )
86 {
87 m_bVerbose = true;
88 }
89 else if( !stricmp( argv[i], "-novblank" ) )
90 {
91 m_bVblank = false;
92 }
93 }
94 // other initialization tasks are done in BInit
95 memset(m_rDevClassChar, 0, sizeof(m_rDevClassChar));
96};
97
98
99//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

stricmpFunction · 0.50

Tested by

no test coverage detected