Revision fe3c72ce
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/dynamic/DynamicRenderer.java | ||
---|---|---|
36 | 36 |
|
37 | 37 |
class DynamicRenderer implements GLSurfaceView.Renderer |
38 | 38 |
{ |
39 |
private GLSurfaceView mView;
|
|
39 |
private DynamicSurfaceView mView;
|
|
40 | 40 |
private DistortedBitmap mBackground; |
41 | 41 |
private Canvas mCanvas; |
42 | 42 |
private Bitmap mBitmap; |
... | ... | |
46 | 46 |
|
47 | 47 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
48 | 48 |
|
49 |
DynamicRenderer(GLSurfaceView v)
|
|
49 |
DynamicRenderer(DynamicSurfaceView v)
|
|
50 | 50 |
{ |
51 | 51 |
mPaint = new Paint(); |
52 | 52 |
mPaint.setAntiAlias(true); |
... | ... | |
83 | 83 |
mCanvas = new Canvas(mBitmap); |
84 | 84 |
|
85 | 85 |
Distorted.onSurfaceChanged(texW,texH); |
86 |
DynamicSurfaceView.onSurfaceChanged(texW,texH);
|
|
86 |
mView.onSurfaceChanged(texW,texH);
|
|
87 | 87 |
} |
88 | 88 |
|
89 | 89 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
95 | 95 |
long time = System.currentTimeMillis(); |
96 | 96 |
|
97 | 97 |
mCanvas.drawRect(0, 0, texW, texH, mPaint); |
98 |
DynamicSurfaceView.drawCurve(mCanvas,time);
|
|
98 |
mView.drawCurve(mCanvas,time);
|
|
99 | 99 |
mBackground.setBitmap(mBitmap); |
100 | 100 |
mBackground.draw(time); |
101 | 101 |
} |
Also available in: Unified diff
remote unneeded 'static' variables and methods from the 'Dynamic' app