Пример #1
0
void cOSG::InitOSG(std::string modelname)
{
    // Store the name of the model to load
    m_ModelName = modelname;

    // Init different parts of OSG
    InitManipulators();
    InitSceneGraph();
    InitCameraConfig();
}
Пример #2
0
bool cOSG::InitOSG(std::string modelname)
{
	bErrModel = false;
    // Store the name of the model to load
    m_ModelName = modelname;

    // Init different parts of OSG
    InitManipulators();
   if(!InitSceneGraph()) 
	   return false;
    InitCameraConfig();

	return true;
}