Project

General

Profile

« Previous | Next » 

Revision 40f0cea6

Added by Leszek Koltunski over 1 year ago

Debugging the Node piraminds - print the whole piramind along with all the Effects attached to each Node.

View differences:

src/main/java/org/distorted/library/main/DistortedNode.java
778 778
    {
779 779
    mState.glClear(mask);
780 780
    }
781

  
782
///////////////////////////////////////////////////////////////////////////////////////////////////
783
/**
784
 * Recursively print all the effect queues attached to the children Nodes and to this Node.
785
 */
786
  public void debug(int depth)
787
    {
788
    String dbg = mEffects.debug(depth);
789
    android.util.Log.e("D", dbg);
790

  
791
    int numChildren = mChildren.getNumChildren();
792

  
793
    for(int i=0; i<numChildren; i++)
794
      {
795
      DistortedNode node = mChildren.getChild(i);
796
      node.debug(depth+1);
797
      }
798
    }
781 799
  }

Also available in: Unified diff