Project

General

Profile

« Previous | Next » 

Revision 2878c554

Added by Leszek Koltunski about 7 years ago

- workaround for the issue with flashing in StarWars
- return number of objects rendered from OutputSurface.render() and use this in Olympic
- rework tree isomorphism so that it now works even if we don't render the whole tree (and also we don't have to reset() the Tree anymore!)
- current a buf with tree isomorphism: Leaf Nodes have the same NodeData only if they agree in Surface AND Effects!

View differences:

src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java
374 374
      if( objectID == gffaID )
375 375
        {
376 376
        mScreen.detach(mGFFAEffects);
377
        mGFFAEffects.abortAllEffects();
378 377
        mGFFATexture.markForDeletion();
379 378

  
380 379
        int screenW=mScreen.getWidth();
......
400 399
      else if( objectID==logoID )
401 400
        {
402 401
        mScreen.detach(mLogoEffects);
403
        mLogoEffects.abortAllEffects();
404 402
        mLogoTexture.markForDeletion();
405 403
        
406 404
        int crawlW = mCrawlTexture.getWidth();
......
433 431
        {
434 432
        mScreen.detach(mBackground);
435 433
        mBackground.detach(mCrawlEffects);
436
        mCrawlEffects.abortAllEffects();
437 434
        mCrawlTexture.markForDeletion();
438 435
        mCrawlBackgroundEffects.abortAllEffects();
439 436
        mCrawlBackgroundTexture.markForDeletion();

Also available in: Unified diff