Commit 4c464ee0 authored by hybrid's avatar hybrid

Add a test for particle system to exist before working with it

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4486 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5de4ef87
......@@ -165,6 +165,8 @@ int main()
scene::IParticleSystemSceneNode* ps =
smgr->addParticleSystemSceneNode(false);
if (ps)
{
scene::IParticleEmitter* em = ps->createBoxEmitter(
core::aabbox3d<f32>(-7,0,-7,7,1,7), // emitter size
core::vector3df(0.0f,0.06f,0.0f), // initial direction
......@@ -189,6 +191,7 @@ int main()
ps->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false);
ps->setMaterialTexture(0, driver->getTexture("../../media/fire.bmp"));
ps->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
}
/*
Next we add a volumetric light node, which adds a glowing fake area light to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment