Project

General

Profile

« Previous | Next » 

Revision 7b8086eb

Added by Leszek Koltunski about 8 years ago

Minor.

View differences:

src/main/java/org/distorted/library/Distorted.java
375 375
 */
376 376
  public static void onDestroy()
377 377
    {
378
    DistortedTexture.release();
379
    DistortedFramebuffer.release();
380
    DistortedObjectTree.release();
381
    EffectQueue.release();
382
    DistortedEffectQueues.release();
378
    DistortedTexture.onDestroy();
379
    DistortedFramebuffer.onDestroy();
380
    DistortedObjectTree.onDestroy();
381
    EffectQueue.onDestroy();
382
    DistortedEffectQueues.onDestroy();
383 383
    EffectMessageSender.stopSending();
384 384
   
385 385
    mInitialized = false;
src/main/java/org/distorted/library/DistortedEffectQueues.java
132 132

  
133 133
///////////////////////////////////////////////////////////////////////////////////////////////////
134 134

  
135
  static void release()
135
  static void onDestroy()
136 136
    {
137 137
    mNextID = 0;
138 138
    }
src/main/java/org/distorted/library/DistortedFramebuffer.java
178 178

  
179 179
///////////////////////////////////////////////////////////////////////////////////////////////////
180 180

  
181
  static synchronized void release()
181
  static synchronized void onDestroy()
182 182
    {
183 183
    mListMarked = false;
184 184
    mList.clear();
src/main/java/org/distorted/library/DistortedObjectTree.java
26 26

  
27 27
///////////////////////////////////////////////////////////////////////////////////////////////////
28 28
/**
29
 * Class which represents a Node in a Tree of DistortedObjects.
29
 * Class which represents a Node in a Tree of (Texture,EffectQueue,Grid) set.
30 30
 *  
31
 * Having organized a set of DistortedObjects into a Tree, we can then render any Node to any Framebuffer.
32
 * That recursively renders the Object held in the Node and all its children, along with whatever effects
33
 * each one of them has. 
31
 * Having organized such sets into a Tree, we can then render any Node to any Framebuffer.
32
 * That recursively renders the set held in the Node and all its children.
34 33
 */
35 34
public class DistortedObjectTree
36 35
  {
......
64 63
 
65 64
///////////////////////////////////////////////////////////////////////////////////////////////////
66 65

  
67
  static void release()
66
  static synchronized void onDestroy()
68 67
    {
69 68
    mNextNodeID = 0;
70 69
    mMapNodeID.clear();
src/main/java/org/distorted/library/DistortedTexture.java
110 110

  
111 111
///////////////////////////////////////////////////////////////////////////////////////////////////
112 112

  
113
  static synchronized void release()
113
  static synchronized void onDestroy()
114 114
    {
115 115
    mListMarked = false;
116 116
    mList.clear();
src/main/java/org/distorted/library/EffectQueue.java
50 50

  
51 51
  static
52 52
    {
53
    release();
53
    onDestroy();
54 54
    }
55 55
  
56 56
///////////////////////////////////////////////////////////////////////////////////////////////////
......
139 139

  
140 140
///////////////////////////////////////////////////////////////////////////////////////////////////
141 141

  
142
  static void release()
142
  static void onDestroy()
143 143
    {
144 144
    EffectTypes.reset(mMax);
145 145
    mCreated = false;  
src/main/java/org/distorted/library/EffectTypes.java
58 58

  
59 59
  static void reset(int[] maxtable)
60 60
    {
61
    maxtable[0] =10;  // By default, there can be a maximum 10 MATRIX effects acting on a single
62
                      // DistortedObject at any given time. This can be changed with a call to
63
                      // EffectQueueMatrix.setMax(int)
61
    maxtable[0] =10;  // By default, there can be a maximum 10 MATRIX effects in a single
62
                      // EffectQueueMatrix at any given time. This can be changed with a call
63
                      // to EffectQueueMatrix.setMax(int)
64 64

  
65 65
    maxtable[1] = 5;  // Max 5 VERTEX Effects
66 66
    maxtable[2] = 5;  // Max 3 FRAGMENT Effects

Also available in: Unified diff