commit 07d8ef093daf8170e5395ec6697f7f2d824bef29
Author: Leszek Koltunski <leszek@distoretedandroid.org>
Date:   Thu Dec 15 16:42:31 2016 +0000

    Cleanup.

diff --git a/src/main/java/org/distorted/library/DistortedTree.java b/src/main/java/org/distorted/library/DistortedTree.java
index e6dfa1c..232cf31 100644
--- a/src/main/java/org/distorted/library/DistortedTree.java
+++ b/src/main/java/org/distorted/library/DistortedTree.java
@@ -26,7 +26,7 @@ import android.opengl.GLES20;
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 /**
- * Class which represents a Node in a Tree of (Texture,EffectQueue,Grid) set.
+ * Class which represents a Node in a Tree of (Texture,Grid,Effects) objects.
  *  
  * Having organized such sets into a Tree, we can then render any Node to any Framebuffer.
  * That recursively renders the set held in the Node and all its children.
@@ -37,7 +37,7 @@ public class DistortedTree
   private static long mNextNodeID =0;
 
   private GridObject mGrid;
-  private DistortedEffects mQueues;
+  private DistortedEffects mEffects;
   private DistortedTexture mTexture;
   private NodeData mData;
 
@@ -224,7 +224,7 @@ public class DistortedTree
         if( mTexture.mBitmapSet[0] )
           {
           GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTexture.mTextureDataH[0]);
-          mQueues.drawNoEffectsPriv(mTexture, mGrid, mData.mDF);
+          mEffects.drawNoEffectsPriv(mTexture, mGrid, mData.mDF);
           }
 
         synchronized(this)
@@ -243,7 +243,7 @@ public class DistortedTree
       GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mData.mDF.texIds[0]);
       }
 
-    mQueues.drawPriv(currTime, mTexture, mGrid, df);
+    mEffects.drawPriv(currTime, mTexture, mGrid, df);
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -253,13 +253,13 @@ public class DistortedTree
  * Constructs new Node of the Tree.
  *     
  * @param texture DistortedTexture to put into the new Node.
- * @param queues  DistortedEffects to put into the new Node.
+ * @param effects DistortedEffects to put into the new Node.
  * @param grid GridObject to put into the new Node.
  */
-  public DistortedTree(DistortedTexture texture, DistortedEffects queues, GridObject grid)
+  public DistortedTree(DistortedTexture texture, DistortedEffects effects, GridObject grid)
     {
     mTexture= texture;
-    mQueues = queues;
+    mEffects= effects;
     mGrid   = grid;
     mParent = null;
     mChildren = null;
@@ -296,7 +296,7 @@ public class DistortedTree
     {
     mParent = null;
     mTexture= new DistortedTexture(node.mTexture,flags);
-    mQueues = new DistortedEffects(node.mQueues, flags);
+    mEffects = new DistortedEffects(node.mEffects, flags);
     mGrid   = node.mGrid;
 
     if( (flags & Distorted.CLONE_CHILDREN) != 0 )
@@ -350,16 +350,16 @@ public class DistortedTree
  * Adds a new child to the last position in the list of our Node's children.
  * 
  * @param texture DistortedTexture to initialize our child Node with.
- * @param queues DistortedEffects to initialize our child Node with.
+ * @param effects DistortedEffects to initialize our child Node with.
  * @param grid GridObject to initialize our child Node with.
  * @return the newly constructed child Node, or null if we couldn't allocate resources.
  */
-  public synchronized DistortedTree attach(DistortedTexture texture, DistortedEffects queues, GridObject grid)
+  public synchronized DistortedTree attach(DistortedTexture texture, DistortedEffects effects, GridObject grid)
     {
     ArrayList<Long> prev = generateIDList(); 
       
     if( mChildren==null ) mChildren = new ArrayList<>(2);
-    DistortedTree node = new DistortedTree(texture,queues,grid);
+    DistortedTree node = new DistortedTree(texture,effects,grid);
     node.mParent = this;
     mChildren.add(node);
     mNumChildren[0]++;
@@ -400,19 +400,19 @@ public class DistortedTree
 /**
  * Removes the first occurrence of a specified child from the list of children of our Node.
  * 
- * @param queues DistortedEffects to remove.
+ * @param effects DistortedEffects to remove.
  * @return <code>true</code> if the child was successfully removed.
  */
-  public synchronized boolean detach(DistortedEffects queues)
+  public synchronized boolean detach(DistortedEffects effects)
     {
-    long id = queues.getID();
+    long id = effects.getID();
     DistortedTree node;
    
     for(int i=0; i<mNumChildren[0]; i++)
       {
       node = mChildren.get(i);
      
-      if( node.mQueues.getID()==id )
+      if( node.mEffects.getID()==id )
         {
         ArrayList<Long> prev = generateIDList();   
      
@@ -458,7 +458,7 @@ public class DistortedTree
  */
   public DistortedEffects getEffects()
     {
-    return mQueues;
+    return mEffects;
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -472,6 +472,5 @@ public class DistortedTree
     return mTexture;
     }
 
-///////////////////////////////////////////////////////////////////////////////////////////////////
   }
 
