Project

General

Profile

« Previous | Next » 

Revision 4562f295

Added by Leszek Koltunski over 7 years ago

Tidy up 'Moving effects'

View differences:

src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java
36 36

  
37 37
class MovingEffectsRenderer implements GLSurfaceView.Renderer
38 38
   {  
39
   private GLSurfaceView mView;
39
   private MovingEffectsSurfaceView mView;
40 40
   private Canvas mCanvas;
41 41
   private Bitmap mBitmap;
42 42
   private Paint mPaint;
......
46 46

  
47 47
///////////////////////////////////////////////////////////////////////////////////////////////////
48 48

  
49
   MovingEffectsRenderer(GLSurfaceView v)
49
   MovingEffectsRenderer(MovingEffectsSurfaceView v)
50 50
     {    
51 51
     mPaint = new Paint();
52 52
     mPaint.setAntiAlias(true);
......
107 107
     mCanvas = new Canvas(mBitmap);
108 108

  
109 109
     Distorted.onSurfaceChanged(texW, texH);
110
     MovingEffectsSurfaceView.onSurfaceChanged(texW,texH);
110
     mView.onSurfaceChanged(texW,texH);
111 111
     }
112 112
   
113 113
///////////////////////////////////////////////////////////////////////////////////////////////////
......
118 118
       
119 119
     long time = System.currentTimeMillis();
120 120
      
121
     if (MovingEffectsSurfaceView.getCurrentEffect() == MovingEffectsSurfaceView.EFFECT_POINTS )
121
     if (mView.getCurrentEffect() == MovingEffectsSurfaceView.EFFECT_POINTS )
122 122
       {
123 123
       drawBackground();   
124
       MovingEffectsSurfaceView.drawCurve(mCanvas,time);
124
       mView.drawCurve(mCanvas,time);
125 125
       mBackground.setBitmap(mBitmap);  
126 126
       }
127 127
      

Also available in: Unified diff