engine/particle/src/test/test_particle.cpp
/**
 * Verify that emitter uses the start_delay_spread when calculating delay
 */
Verify that emitter uses the start_delay_spread when calculating delay
Verify that emitter uses the start_delay_spread when calculating delay
TEST_F(ParticleTest, DelaySpread)
{
    ASSERT_TRUE(LoadPrototype("delay_spread.particlefxc", &m_Prototype));
    dmParticle::HInstance instance = dmParticle::CreateInstance(m_Context, m_Prototype, 0x0);
    dmParticle::Emitter* e1 = GetEmitter(m_Context, instance, 0);
    dmParticle::Emitter* e2 = GetEmitter(m_Context, instance, 1);
    ASSERT_NE(e1->m_StartDelay, e2->m_StartDelay);
    dmParticle::DestroyInstance(m_Context, instance);
}
TEST_F ( ParticleTest , DelaySpread ) { ASSERT_TRUE ( LoadPrototype ( " " , & m_Prototype ) ) ; dmParticle :: HInstance instance = dmParticle :: CreateInstance ( m_Context , m_Prototype , 0x0 ) ; dmParticle :: Emitter * e1 = GetEmitter ( m_Context , instance , 0 ) ; dmParticle :: Emitter * e2 = GetEmitter ( m_Context , instance , 1 ) ; ASSERT_NE ( e1 -> m_StartDelay , e2 -> m_StartDelay ) ; dmParticle :: DestroyInstance ( m_Context , instance ) ; }
Verify that emitter uses the start_delay_spread when calculating delay
Verify that emitter uses the start_delay_spread when calculating delay
// Verify that the start delay is calculated upon creation and that the // start_delay_spread value is applied