Revision 460a2b7d
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/library/main/DistortedNode.java | ||
---|---|---|
540 | 540 |
return mChildren.getNumChildren()==0 ? mSurface : mData.mFBO; |
541 | 541 |
} |
542 | 542 |
|
543 |
////////////////////////////////////////////////////////////////////////////////////////////////// |
|
544 |
/** |
|
545 |
* Returns the FBO contained in this object, even if it is a leaf. |
|
546 |
* |
|
547 |
* @return The DistortedFramebuffer. |
|
548 |
*/ |
|
549 |
public DistortedFramebuffer getFramebuffer() |
|
550 |
{ |
|
551 |
return mData.mFBO; |
|
552 |
} |
|
553 |
|
|
543 | 554 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
544 | 555 |
/** |
545 | 556 |
* Returns the Mesh object that's in the Node. |
Also available in: Unified diff
Major change: separate the notion of a TwistyObject and its Node. Now,
1) the Node stays when we change objects (this makes transitions faster)
2) it's possible to just create an Object without adding it to the Screen (now app needs to explicitly create the Node and add it to its Screen itself)