Project

General

Profile

« Previous | Next » 

Revision 568b29d8

Added by Leszek Koltunski almost 8 years ago

Major push towards simplifying DistortedObject's public API.
All MATRIX effects are using the new API - the 'DataND' marker interfaces.

View differences:

src/main/java/org/distorted/library/EffectQueue.java
21 21

  
22 22
import org.distorted.library.message.EffectListener;
23 23
import org.distorted.library.message.EffectMessage;
24
import org.distorted.library.type.Interpolator;
25
import org.distorted.library.type.Interpolator2D;
24
import org.distorted.library.type.Dynamic;
25
import org.distorted.library.type.Dynamic2D;
26 26

  
27 27
import java.util.Vector;
28 28

  
......
35 35
  
36 36
  protected int[] mType;
37 37
  protected float[] mUniforms;
38
  protected Interpolator[] mInterP;  // center of the effect
39
  protected Interpolator[] mInterI;  // all other interpolated values
38
  protected Dynamic[] mInterP;  // center of the effect
39
  protected Dynamic[] mInterI;  // all other interpolated values
40 40
  protected long[] mCurrentDuration;
41 41
  protected byte[] mFreeIndexes;
42 42
  protected byte[] mIDIndex;
......
80 80
      {
81 81
      mType            = new int[mMax[mMaxIndex]];
82 82
      mUniforms        = new float[numUniforms*mMax[mMaxIndex]];
83
      mInterI          = new Interpolator[mMax[mMaxIndex]];
84
      mInterP          = new Interpolator2D[mMax[mMaxIndex]];
83
      mInterI          = new Dynamic[mMax[mMaxIndex]];
84
      mInterP          = new Dynamic2D[mMax[mMaxIndex]];
85 85
      mCurrentDuration = new long[mMax[mMaxIndex]];
86 86
      mID              = new long[mMax[mMaxIndex]];
87 87
      mIDIndex         = new byte[mMax[mMaxIndex]];

Also available in: Unified diff