Ejemplo n.º 1
0
ntlWorld::ntlWorld(string filename, bool commandlineMode) 
{
#ifndef ELBEEM_PLUGIN

		initDefaults();
#	ifdef NOGUI
		commandlineMode = true; // remove warning...
#	endif // NOGUI

		// load config
		setPointers( getRenderGlobals() );
		parseFile( filename.c_str() );
#	ifndef NOGUI
		// setup opengl display, save first animation step for start time 
		// init after parsing file...
		if(!commandlineMode) {
			mpOpenGLRenderer = new ntlOpenGLRenderer( mpGlob );
		}
#	endif // NOGUI
		finishWorldInit();

#else // ELBEEM_PLUGIN
	errFatal("ntlWorld::init","Cfg file parsing not supported for API version! "<<filename<<" "<<commandlineMode, SIMWORLD_INITERROR);
#endif // ELBEEM_PLUGIN
}
Ejemplo n.º 2
0
mtth_MayaScene::mtth_MayaScene():MayaScene()
{
	getRenderGlobals();
	this->mtth_renderer.mtth_scene = this;
	this->mtth_renderer.mtth_renderGlobals = this->renderGlobals;
	this->needsUserThread = true;
	this->userThreadUpdateInterval = 50;
}
Ejemplo n.º 3
0
mtco_MayaScene::mtco_MayaScene():MayaScene()
{
	getRenderGlobals();
	this->mtco_renderer.mtco_scene = this;
	this->cando_ipr = false;
	this->mtco_renderer.mtco_renderGlobals = this->renderGlobals;
	this->userThreadUpdateInterval = 200;
	this->needsUserThread = true;
}