Revision d1e740c5
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
456 | 456 |
*/ |
457 | 457 |
public void draw(long currTime) |
458 | 458 |
{ |
459 |
GLES20.glActiveTexture(GLES20.GL_TEXTURE0); |
|
460 | 459 |
GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0); |
461 | 460 |
|
462 | 461 |
markRecursive(); |
463 | 462 |
drawRecursive(currTime,Distorted.mFramebuffer); |
464 | 463 |
} |
465 |
|
|
464 |
|
|
465 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
466 |
/** |
|
467 |
* Draws the Node, and all its children, to the Framebuffer passed. |
|
468 |
* |
|
469 |
* @param currTime Current time, in milliseconds. |
|
470 |
* @param df Framebuffer to render this to. |
|
471 |
*/ |
|
472 |
public void draw(long currTime, DistortedFramebuffer df) |
|
473 |
{ |
|
474 |
df.setAsOutput(); |
|
475 |
markRecursive(); |
|
476 |
drawRecursive(currTime,df); |
|
477 |
} |
|
478 |
|
|
466 | 479 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
467 | 480 |
/** |
468 | 481 |
* Returns the DistortedObject object that's in the Node. |
Also available in: Unified diff
Move the 'Save' app to using a DistortedFramebuffer.