Ejemplo n.º 1
0
void CVegetableEditor::init()
{
	//H_AUTO2
	nldebug("CVegetableEditor::init");

	NL3D::CDriverUser *driver = dynamic_cast<NL3D::CDriverUser *>(Modules::objView().getDriver());
	_Driver = driver->getDriver();

	NL3D::CSceneUser *scene = dynamic_cast<NL3D::CSceneUser *>(Modules::objView().getScene());
	_Scene = &scene->getScene();
}
void CParticleEditor::init()
{	
	NL3D::CDriverUser *driver = dynamic_cast<NL3D::CDriverUser*>(Modules::objView().getDriver());
	_Driver = driver->getDriver();
	
	NL3D::CSceneUser *scene = dynamic_cast<NL3D::CSceneUser*>(Modules::objView().getScene());
	_Scene = &scene->getScene();

	NL3D::CTextContextUser *textContext = dynamic_cast<NL3D::CTextContextUser*>(Modules::objView().getTextContext());
	_FontManager = textContext->getTextContext().getFontManager();
	_FontGen = textContext->getTextContext().getFontGenerator();
	NL3D::CParticleSystem::setSerializeIdentifierFlag(true);
}