Revision 26a4e5f6
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/main/DistortedOutputSurface.java | ||
---|---|---|
317 | 317 |
|
318 | 318 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
319 | 319 |
|
320 |
void newJob(int t, DistortedNode n)
|
|
320 |
ArrayList<DistortedNode> getChildren()
|
|
321 | 321 |
{ |
322 |
mJobs.add(new Job(t,n));
|
|
322 |
return mChildren;
|
|
323 | 323 |
} |
324 | 324 |
|
325 | 325 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
341 | 341 |
*/ |
342 | 342 |
public void setDebug(int bitmask) |
343 | 343 |
{ |
344 |
mDebugLevel = bitmask; |
|
344 |
if( this instanceof DistortedScreen ) |
|
345 |
mDebugLevel = bitmask; |
|
345 | 346 |
} |
346 | 347 |
|
347 | 348 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
356 | 357 |
*/ |
357 | 358 |
public int render(long time) |
358 | 359 |
{ |
359 |
boolean showDebug = ( mDebugLevel!=0 && this instanceof DistortedScreen ); |
|
360 |
|
|
361 |
if( showDebug ) prepareDebug(time); |
|
360 |
if( mDebugLevel!=0 ) prepareDebug(time); |
|
362 | 361 |
|
363 | 362 |
// change tree topology (attach and detach children) |
364 | 363 |
/* |
... | ... | |
404 | 403 |
setAsOutput(time); |
405 | 404 |
numRenders += renderChildren(time,mNumChildren,mChildren); |
406 | 405 |
|
407 |
if( showDebug ) renderDebug(time);
|
|
406 |
if( mDebugLevel != 0 ) renderDebug(time);
|
|
408 | 407 |
|
409 | 408 |
return numRenders; |
410 | 409 |
} |
Also available in: Unified diff
Reorganize the way we add and remove all Effects (do it through DistortedMaster and is POSTPROCES - adjust Bucket and SORT Nodes).
Buggy: removing effects does not work.