Project

General

Profile

« Previous | Next » 

Revision 7589635e

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/examples/interpolator/InterpolatorActivity.java
20 20
package org.distorted.examples.interpolator;
21 21

  
22 22
import org.distorted.library.Distorted;
23
import org.distorted.library.type.Interpolator1D;
23
import org.distorted.library.type.Dynamic1D;
24 24
import org.distorted.examples.R;
25 25

  
26 26
import android.app.Activity;
......
99 99
    
100 100
    public void Loop(View v)
101 101
      {
102
      InterpolatorSurfaceView.setMode(Interpolator1D.MODE_LOOP);
102
      InterpolatorSurfaceView.setMode(Dynamic1D.MODE_LOOP);
103 103
      }     
104 104
    
105 105
///////////////////////////////////////////////////////////////////
106 106

  
107 107
    public void Path(View v)
108 108
      {
109
      InterpolatorSurfaceView.setMode(Interpolator1D.MODE_PATH);
109
      InterpolatorSurfaceView.setMode(Dynamic1D.MODE_PATH);
110 110
      }  
111 111

  
112 112
///////////////////////////////////////////////////////////////////
113 113

  
114 114
    public void Jump(View v)
115 115
      {
116
      InterpolatorSurfaceView.setMode(Interpolator1D.MODE_JUMP);
116
      InterpolatorSurfaceView.setMode(Dynamic1D.MODE_JUMP);
117 117
      }  
118 118
    
119 119
///////////////////////////////////////////////////////////////////

Also available in: Unified diff