Revision 29a06526
Added by Leszek Koltunski over 8 years ago
| src/main/java/org/distorted/library/Distorted.java | ||
|---|---|---|
| 42 | 42 |
* This way we can have two DistortedTextures, both backed up by the same Bitmap, to which we can |
| 43 | 43 |
* apply different effects. Used in the copy constructor. |
| 44 | 44 |
*/ |
| 45 |
public static final int CLONE_RENDERABLE = 0x1;
|
|
| 45 |
public static final int CLONE_SURFACE = 0x1;
|
|
| 46 | 46 |
/** |
| 47 | 47 |
* When creating an instance of a DistortedEffects from another instance, clone the Matrix Effects. |
| 48 | 48 |
* <p> |
| src/main/java/org/distorted/library/DistortedInputSurface.java | ||
|---|---|---|
| 20 | 20 |
package org.distorted.library; |
| 21 | 21 |
|
| 22 | 22 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 23 |
|
|
| 24 | 23 |
/** |
| 25 | 24 |
* A Surface that we can set as Input, i.e. take its rectangle of pixels and skin our Mesh with it. |
| 26 | 25 |
*/ |
| src/main/java/org/distorted/library/DistortedSurface.java | ||
|---|---|---|
| 79 | 79 |
|
| 80 | 80 |
static synchronized void onDestroy() |
| 81 | 81 |
{
|
| 82 |
for( DistortedSurface ren : mList)
|
|
| 82 |
for( DistortedSurface surface : mList)
|
|
| 83 | 83 |
{
|
| 84 |
ren.destroy();
|
|
| 85 |
ren.mMarked = false;
|
|
| 84 |
surface.destroy();
|
|
| 85 |
surface.mMarked = false;
|
|
| 86 | 86 |
} |
| 87 | 87 |
|
| 88 | 88 |
mListMarked = false; |
| 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