Revision 29a06526
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedTree.java | ||
---|---|---|
281 | 281 |
* |
282 | 282 |
* @param node The DistortedTree to copy data from. |
283 | 283 |
* @param flags bit field composed of a subset of the following: |
284 |
* {@link Distorted#CLONE_RENDERABLE}, {@link Distorted#CLONE_MATRIX}, {@link Distorted#CLONE_VERTEX},
|
|
284 |
* {@link Distorted#CLONE_SURFACE}, {@link Distorted#CLONE_MATRIX}, {@link Distorted#CLONE_VERTEX},
|
|
285 | 285 |
* {@link Distorted#CLONE_FRAGMENT} and {@link Distorted#CLONE_CHILDREN}. |
286 |
* For example flags = CLONE_RENDERABLE | CLONE_CHILDREN.
|
|
286 |
* For example flags = CLONE_SURFACE | CLONE_CHILDREN.
|
|
287 | 287 |
*/ |
288 | 288 |
public DistortedTree(DistortedTree node, int flags) |
289 | 289 |
{ |
... | ... | |
291 | 291 |
mEffects= new DistortedEffects(node.mEffects,flags); |
292 | 292 |
mMesh = node.mMesh; |
293 | 293 |
|
294 |
if( (flags & Distorted.CLONE_RENDERABLE) != 0 )
|
|
294 |
if( (flags & Distorted.CLONE_SURFACE) != 0 )
|
|
295 | 295 |
{ |
296 | 296 |
mSurface = node.mSurface; |
297 | 297 |
} |
Also available in: Unified diff
Minor