Project

General

Profile

« Previous | Next » 

Revision 3543a3cf

Added by Leszek Koltunski over 3 years ago

Put new things to the StackFrame.

View differences:

src/main/java/org/distorted/library/effect/Effect.java
20 20
package org.distorted.library.effect;
21 21

  
22 22
import org.distorted.library.effectqueue.EffectQueue;
23
import org.distorted.library.main.InternalStackFrameList;
23 24
import org.distorted.library.message.EffectListener;
24 25

  
25 26
import java.lang.reflect.Method;
......
44 45
  private ArrayList<EffectListener> mListeners =null;
45 46
  private int mNumListeners=0;  // ==mListeners.length(), but we only create mListeners if the first one gets added
46 47

  
47
  private static long mNextID = 0;
48

  
49 48
  private final static float[] mUnity= new float[MAX_UNITY_DIM*NUM_EFFECTS];
50 49
  private final static int[]   mUnityDim = new int[NUM_EFFECTS];
51 50

  
......
85 84

  
86 85
    mUnityDim[n] = l;
87 86

  
88
    mID = ((mNextID++)<<EffectType.LENGTH) + mType.ordinal();
87
    mID = (InternalStackFrameList.getNextEffectID()<<EffectType.LENGTH) + mType.ordinal();
89 88
    }
90 89

  
91 90
///////////////////////////////////////////////////////////////////////////////////////////////////
......
96 95
 */
97 96
  public static void onDestroy()
98 97
    {
99
    mNextID = 0;
100

  
101 98
    for(int i=0; i<NUM_EFFECTS; i++) mEnabled[i] = false;
102 99

  
103 100
    MatrixEffect.destroyStatics();

Also available in: Unified diff