Revision d5b709df
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/main/DistortedOutputSurface.java | ||
---|---|---|
352 | 352 |
|
353 | 353 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
354 | 354 |
|
355 |
void clear() |
|
355 |
private void clear()
|
|
356 | 356 |
{ |
357 | 357 |
DistortedRenderState.colorDepthStencilOn(); |
358 | 358 |
GLES31.glClearColor(mClearR, mClearG, mClearB, mClearA); |
... | ... | |
503 | 503 |
|
504 | 504 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
505 | 505 |
/** |
506 |
* This is not really part of the public API. Has to be public only because it is a part of the |
|
507 |
* DistortedChildrenList.Parent interface. |
|
506 |
* Not part of the public API. |
|
508 | 507 |
* |
509 | 508 |
* @y.exclude |
510 | 509 |
*/ |
511 |
public DistortedChildrenList getChildren() |
|
512 |
{ |
|
513 |
return mChildren; |
|
514 |
} |
|
515 |
|
|
516 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
517 |
/** |
|
518 |
* This is not really part of the public API. Has to be public only because it is a part of the |
|
519 |
* DistortedChildrenList.Parent interface. |
|
520 |
* |
|
521 |
* @y.exclude |
|
522 |
*/ |
|
523 |
public void adjustIsomorphism() |
|
524 |
{ |
|
525 |
|
|
526 |
} |
|
510 |
public void adjustIsomorphism() { } |
|
527 | 511 |
|
528 | 512 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
529 | 513 |
/** |
... | ... | |
599 | 583 |
DistortedRenderState.reset(); |
600 | 584 |
|
601 | 585 |
int numRenders=0, numChildren = mChildren.getNumChildren(); |
586 |
DistortedNode node; |
|
587 |
long oldBucket=0, newBucket; |
|
602 | 588 |
|
603 | 589 |
for(int i=0; i<numChildren; i++) |
604 | 590 |
{ |
605 |
numRenders += mChildren.getChild(i).renderRecursive(time); |
|
591 |
node = mChildren.getChild(i); |
|
592 |
newBucket = node.getBucket(); |
|
593 |
numRenders += node.renderRecursive(time); |
|
594 |
if( newBucket<oldBucket ) mChildren.rearrangeByBuckets(i,newBucket); |
|
595 |
else oldBucket=newBucket; |
|
606 | 596 |
} |
607 | 597 |
|
608 | 598 |
numRenders += renderChildren(time,numChildren,mChildren,fbo, mRenderWayOIT); |
Also available in: Unified diff
Cut another interdependency between the Queues and the rest: it is no longer necessary to add DNodes to PostprocessQueue to rearrange the Nodes by buckets. The rearranging is now done on next render instead.