Revision 4562f295
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/movingeffects/MovingEffectsActivity.java | ||
---|---|---|
73 | 73 |
{ |
74 | 74 |
super.onResume(); |
75 | 75 |
|
76 |
GLSurfaceView mView = (GLSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView);
|
|
77 |
mView.onResume();
|
|
76 |
GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView);
|
|
77 |
view.onResume();
|
|
78 | 78 |
} |
79 | 79 |
|
80 | 80 |
/////////////////////////////////////////////////////////////////// |
... | ... | |
83 | 83 |
{ |
84 | 84 |
Abort(null); |
85 | 85 |
|
86 |
GLSurfaceView mView = (GLSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView);
|
|
87 |
mView.onPause();
|
|
86 |
GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView);
|
|
87 |
view.onPause();
|
|
88 | 88 |
|
89 | 89 |
super.onPause(); |
90 | 90 |
} |
... | ... | |
116 | 116 |
|
117 | 117 |
public void Bubble(View v) |
118 | 118 |
{ |
119 |
MovingEffectsSurfaceView.Bubble(); |
|
119 |
MovingEffectsSurfaceView view = (MovingEffectsSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView); |
|
120 |
view.Bubble(); |
|
120 | 121 |
|
121 | 122 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
122 | 123 |
mChroma.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
130 | 131 |
|
131 | 132 |
public void Sink(View v) |
132 | 133 |
{ |
133 |
MovingEffectsSurfaceView.Sink(); |
|
134 |
MovingEffectsSurfaceView view = (MovingEffectsSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView); |
|
135 |
view.Sink(); |
|
134 | 136 |
|
135 | 137 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
136 | 138 |
mChroma.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
144 | 146 |
|
145 | 147 |
public void Transparency(View v) |
146 | 148 |
{ |
147 |
MovingEffectsSurfaceView.Transparency(); |
|
149 |
MovingEffectsSurfaceView view = (MovingEffectsSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView); |
|
150 |
view.Transparency(); |
|
148 | 151 |
|
149 | 152 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
150 | 153 |
mChroma.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
158 | 161 |
|
159 | 162 |
public void Chroma(View v) |
160 | 163 |
{ |
161 |
MovingEffectsSurfaceView.Chroma(); |
|
164 |
MovingEffectsSurfaceView view = (MovingEffectsSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView); |
|
165 |
view.Chroma(); |
|
162 | 166 |
|
163 | 167 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
164 | 168 |
mChroma.setBackgroundColor(COLOR_PRESSED); |
... | ... | |
172 | 176 |
|
173 | 177 |
public void Swirl(View v) |
174 | 178 |
{ |
175 |
MovingEffectsSurfaceView.Swirl(); |
|
179 |
MovingEffectsSurfaceView view = (MovingEffectsSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView); |
|
180 |
view.Swirl(); |
|
176 | 181 |
|
177 | 182 |
mAbort.setBackgroundColor(COLOR_UNPRESSED); |
178 | 183 |
mChroma.setBackgroundColor(COLOR_UNPRESSED); |
... | ... | |
186 | 191 |
|
187 | 192 |
public void Abort(View v) |
188 | 193 |
{ |
189 |
MovingEffectsSurfaceView.Abort(); |
|
194 |
MovingEffectsSurfaceView view = (MovingEffectsSurfaceView) this.findViewById(R.id.movingeffectsSurfaceView); |
|
195 |
view.Abort(); |
|
190 | 196 |
|
191 | 197 |
mAbort.setBackgroundColor(COLOR_PRESSED); |
192 | 198 |
mChroma.setBackgroundColor(COLOR_UNPRESSED); |
Also available in: Unified diff
Tidy up 'Moving effects'