#include "VrEyeCommon.h"

#include "VZNL_Common.h"
#include "VrError.h"

CVrEyeCommon::CVrEyeCommon()
{

}

CVrEyeCommon* CVrEyeCommon::GetInstance()
{
    static CVrEyeCommon instance;
    return &instance;
}   

int CVrEyeCommon::InitDevice()
{
    int nErrCode = SUCCESS;
    if(m_bInit) return nErrCode;

    // 初始化SDK
    SVzNLConfigParam sVzNlConfigParam;
    nErrCode = VzNL_Init(&sVzNlConfigParam);

    m_bInit = (SUCCESS == nErrCode);

    return nErrCode;
}


