src/ofxOpenVR.cpp
//-----------------------------------------------------------------------------
// Purpose: Create/destroy GL Render Models
//-----------------------------------------------------------------------------
Create/destroy GL Render Models
Create / destroy GL Render Models
void ofxOpenVR::setupRenderModels()
{	
	memset(_rTrackedDeviceToRenderModel, 0, sizeof(_rTrackedDeviceToRenderModel));
	if (!_pHMD) {
		return;
	}
	for (uint32_t unTrackedDevice = vr::k_unTrackedDeviceIndex_Hmd + 1; unTrackedDevice < vr::k_unMaxTrackedDeviceCount; unTrackedDevice++) {
		if (!_pHMD->IsTrackedDeviceConnected(unTrackedDevice)) {
			continue;
		}
		setupRenderModelForTrackedDevice(unTrackedDevice);
	}
}
void ofxOpenVR :: setupRenderModels ( ) { memset ( _rTrackedDeviceToRenderModel , 0 , sizeof ( _rTrackedDeviceToRenderModel ) ) ; if ( ! _pHMD ) { return ; } for ( uint32_t unTrackedDevice = vr :: k_unTrackedDeviceIndex_Hmd + 1 ; unTrackedDevice < vr :: k_unMaxTrackedDeviceCount ; unTrackedDevice ++ ) { if ( ! _pHMD -> IsTrackedDeviceConnected ( unTrackedDevice ) ) { continue ; } setupRenderModelForTrackedDevice ( unTrackedDevice ) ; } }
Purpose: Create/destroy GL Render Models
Purpose : Create / destroy GL Render Models