Revision d04a4886
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/movingeffects/MovingEffectsSurfaceView.java | ||
---|---|---|
27 | 27 |
import android.view.MotionEvent; |
28 | 28 |
import android.util.AttributeSet; |
29 | 29 |
|
30 |
import org.distorted.library.DistortedEffectQueues;
|
|
30 |
import org.distorted.library.DistortedEffects; |
|
31 | 31 |
import org.distorted.library.EffectTypes; |
32 | 32 |
import org.distorted.library.type.Dynamic3D; |
33 | 33 |
import org.distorted.library.type.Dynamic4D; |
... | ... | |
119 | 119 |
|
120 | 120 |
synchronized(lock) |
121 | 121 |
{ |
122 |
DistortedEffectQueues q = mRenderer.getQueues();
|
|
122 |
DistortedEffects q = mRenderer.getEffects();
|
|
123 | 123 |
q.abortEffects(EffectTypes.VERTEX); |
124 | 124 |
q.abortEffects(EffectTypes.FRAGMENT); |
125 | 125 |
q.distort( new Static3D(0,0,mMax/10) , di3D, dr); |
... | ... | |
135 | 135 |
|
136 | 136 |
synchronized(lock) |
137 | 137 |
{ |
138 |
DistortedEffectQueues q = mRenderer.getQueues();
|
|
138 |
DistortedEffects q = mRenderer.getEffects();
|
|
139 | 139 |
q.abortEffects(EffectTypes.VERTEX); |
140 | 140 |
q.abortEffects(EffectTypes.FRAGMENT); |
141 | 141 |
q.sink(new Static1D(10), di3D, dr); |
... | ... | |
151 | 151 |
|
152 | 152 |
synchronized(lock) |
153 | 153 |
{ |
154 |
DistortedEffectQueues q = mRenderer.getQueues();
|
|
154 |
DistortedEffects q = mRenderer.getEffects();
|
|
155 | 155 |
q.abortEffects(EffectTypes.VERTEX); |
156 | 156 |
q.abortEffects(EffectTypes.FRAGMENT); |
157 | 157 |
q.chroma(new Static1D(0.5f), new Static3D(1,0,0), mRegion, true); |
... | ... | |
167 | 167 |
|
168 | 168 |
synchronized(lock) |
169 | 169 |
{ |
170 |
DistortedEffectQueues q = mRenderer.getQueues();
|
|
170 |
DistortedEffects q = mRenderer.getEffects();
|
|
171 | 171 |
q.abortEffects(EffectTypes.VERTEX); |
172 | 172 |
q.abortEffects(EffectTypes.FRAGMENT); |
173 | 173 |
q.alpha(new Static1D(0.5f), mRegion, true); |
... | ... | |
183 | 183 |
|
184 | 184 |
synchronized(lock) |
185 | 185 |
{ |
186 |
DistortedEffectQueues q = mRenderer.getQueues();
|
|
186 |
DistortedEffects q = mRenderer.getEffects();
|
|
187 | 187 |
q.abortEffects(EffectTypes.VERTEX); |
188 | 188 |
q.abortEffects(EffectTypes.FRAGMENT); |
189 | 189 |
q.swirl( new Static1D(30), di3D, dr); |
... | ... | |
197 | 197 |
{ |
198 | 198 |
synchronized(lock) |
199 | 199 |
{ |
200 |
DistortedEffectQueues q = mRenderer.getQueues();
|
|
200 |
DistortedEffects q = mRenderer.getEffects();
|
|
201 | 201 |
q.abortEffects(EffectTypes.VERTEX); |
202 | 202 |
q.abortEffects(EffectTypes.FRAGMENT); |
203 | 203 |
di3D.removeAll(); |
Also available in: Unified diff
Change of names.