Project

General

Profile

« Previous | Next » 

Revision cb0e1940

Added by Leszek Koltunski over 8 years ago

remove the remains of DistortedBitmaps from DistortedNode

View differences:

src/main/java/org/distorted/library/DistortedNode.java
7 7

  
8 8
///////////////////////////////////////////////////////////////////////////////////////////////////
9 9
/**
10
 * Class which represents a Node in a Tree of DistortedBitmaps.
10
 * Class which represents a Node in a Tree of DistortedObjects.
11 11
 *  
12
 * Having organized a set of DistortedBitmaps into a Tree, we can then render any Node to any Framebuffer.
13
 * That recursively renders the Bitmap held in the Node and all its children, along with whatever effects
12
 * Having organized a set of DistortedObjects into a Tree, we can then render any Node to any Framebuffer.
13
 * That recursively renders the Object held in the Node and all its children, along with whatever effects
14 14
 * each one of them has. 
15 15
 */
16 16
public class DistortedNode 
......
359 359
/**
360 360
 * Adds a new child to the last position in the list of our Node's children.
361 361
 * 
362
 * @param bmp DistortedBitmap to initialize our child Node with.
362
 * @param obj DistortedObject to initialize our child Node with.
363 363
 * @return the newly constructed child Node, or null if we couldn't allocate resources.
364 364
 */
365
  public synchronized DistortedNode attach(DistortedBitmap bmp)
365
  public synchronized DistortedNode attach(DistortedObject obj)
366 366
    {
367 367
    ArrayList<Long> prev = generateIDList(); 
368 368
      
369 369
    if( mChildren==null ) mChildren = new ArrayList<>(2);
370
    DistortedNode node = new DistortedNode(bmp);
370
    DistortedNode node = new DistortedNode(obj);
371 371
    node.mParent = this;
372 372
    mChildren.add(node);
373 373
    mNumChildren[0]++;

Also available in: Unified diff