コード例 #1
0
ファイル: ntl_world.cpp プロジェクト: rexbron/blender-ocio
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
}
コード例 #2
0
ファイル: mtth_mayaScene.cpp プロジェクト: MassW/OpenMaya
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;
}
コード例 #3
0
ファイル: mtco_mayaScene.cpp プロジェクト: MassW/OpenMaya
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;
}