Project

General

Profile

« Previous | Next » 

Revision c5a28eb8

Added by Leszek Koltunski almost 8 years ago

Cleanup, consistent variable names, minor details.

View differences:

src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java
28 28

  
29 29
import org.distorted.examples.R;
30 30

  
31
import org.distorted.library.EffectNames;
31 32
import org.distorted.library.type.Dynamic1D;
32 33
import org.distorted.library.type.Dynamic3D;
33 34
import org.distorted.library.DistortedNode;
......
325 326
    }
326 327
    
327 328
///////////////////////////////////////////////////////////////////////////////////////////////////
329
// the library sending messages to us. This is running on a library 'MessageSender' thread.
328 330

  
329
  public void effectMessage(final EffectMessage em, final long effectID, final int effectName, final long bitmapID, final String message)
331
  public void effectMessage(final EffectMessage em, final long effectID, final EffectNames effectName, final long objectID, final String message)
330 332
    {
331 333
    if( em==EffectMessage.EFFECT_FINISHED )
332 334
      {
333
      if( bitmapID == gffaID )
335
      if( objectID == gffaID )
334 336
        {
335 337
        mRoot.detach(mGFFA);   
336 338
        mGFFA.removeEventListener(this);
......
355 357
        mRoot.attach(mLogo);
356 358
        mLogo.addEventListener(this);
357 359
        }
358
      else if( bitmapID==logoID )
360
      else if( objectID==logoID )
359 361
        {
360 362
        mRoot.detach(mLogo);   
361 363
        mLogo.removeEventListener(this);
......
386 388
        mBackground.attach(mCrawl);
387 389
        mCrawl.addEventListener(this);
388 390
        }
389
      else if( bitmapID==crawlID )
391
      else if( objectID==crawlID )
390 392
        {
391 393
        mRoot.detach(mBackground);
392 394
        mBackground.detach(mCrawl);

Also available in: Unified diff