Revision 40f0cea6
Added by Leszek Koltunski almost 3 years ago
| src/main/java/org/distorted/library/main/DistortedEffects.java | ||
|---|---|---|
| 221 | 221 |
/** |
| 222 | 222 |
* Return a string describing all effects in the queues. |
| 223 | 223 |
*/ |
| 224 |
|
|
| 225 |
public String debug() |
|
| 224 |
public String debug(int depth) |
|
| 226 | 225 |
{
|
| 226 |
StringBuilder s = new StringBuilder(); |
|
| 227 |
for(int i=0; i<depth; i++) s.append(" ");
|
|
| 228 |
String space = s.toString(); |
|
| 229 |
|
|
| 227 | 230 |
String mat = mQueues[0].retEffects(); |
| 228 | 231 |
String ver = mQueues[1].retEffects(); |
| 229 | 232 |
String fra = mQueues[2].retEffects(); |
| 230 | 233 |
String pos = mQueues[3].retEffects(); |
| 231 | 234 |
|
| 232 |
return "MAT: "+mat+"\nVER: "+ver+"\nFRA: "+fra+"\nPOS: "+pos;
|
|
| 235 |
return space+"MAT: "+mat+"\n"+space+"VER: "+ver+"\n"+space+"FRA: "+fra+"\n"+space+"POS: "+pos;
|
|
| 233 | 236 |
} |
| 234 | 237 |
} |
| 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 |
} |
| src/main/java/org/distorted/library/main/InternalOutputSurface.java | ||
|---|---|---|
| 616 | 616 |
return numRenders; |
| 617 | 617 |
} |
| 618 | 618 |
|
| 619 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 620 |
/** |
|
| 621 |
* Recursively print all the effect queues attached to the children Nodes and to this Node. |
|
| 622 |
*/ |
|
| 623 |
public void debug() |
|
| 624 |
{
|
|
| 625 |
int numChildren = mChildren.getNumChildren(); |
|
| 626 |
|
|
| 627 |
for(int i=0; i<numChildren; i++) |
|
| 628 |
{
|
|
| 629 |
DistortedNode node = mChildren.getChild(i); |
|
| 630 |
node.debug(0); |
|
| 631 |
} |
|
| 632 |
} |
|
| 633 |
|
|
| 619 | 634 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 620 | 635 |
/** |
| 621 | 636 |
* Bind this Surface as a Framebuffer we can render to. |
Also available in: Unified diff
Debugging the Node piraminds - print the whole piramind along with all the Effects attached to each Node.