Revision d76638f1
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import org.distorted.examples.R; |
27 | 27 |
import org.distorted.library.effect.EffectName; |
28 |
import org.distorted.library.effect.EffectType; |
|
28 | 29 |
import org.distorted.library.effect.MatrixEffectMove; |
29 | 30 |
import org.distorted.library.effect.MatrixEffectScale; |
30 | 31 |
import org.distorted.library.main.Distorted; |
... | ... | |
57 | 58 |
|
58 | 59 |
AroundTheWorldRenderer(GLSurfaceView view) |
59 | 60 |
{ |
60 |
DistortedEffects.setMaxVertex(12);
|
|
61 |
DistortedEffects.setMaxFragment(9);
|
|
61 |
DistortedEffects.setMax(EffectType.VERTEX,12);
|
|
62 |
DistortedEffects.setMax(EffectType.FRAGMENT,9);
|
|
62 | 63 |
|
63 | 64 |
mMove = new Static3D(0,0,0); |
64 | 65 |
mScale= new Static3D(1,1,1); |
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
28 | 28 |
import org.distorted.examples.R; |
29 | 29 |
|
30 | 30 |
import org.distorted.library.effect.EffectName; |
31 |
import org.distorted.library.effect.EffectType; |
|
31 | 32 |
import org.distorted.library.effect.FragmentEffectChroma; |
32 | 33 |
import org.distorted.library.effect.MatrixEffectMove; |
33 | 34 |
import org.distorted.library.effect.MatrixEffectScale; |
... | ... | |
77 | 78 |
|
78 | 79 |
CheckActivity act = (CheckActivity)mView.getContext(); |
79 | 80 |
|
80 |
DistortedEffects.setMaxVertex(act.getMaxV());
|
|
81 |
DistortedEffects.setMaxFragment(act.getMaxF());
|
|
81 |
DistortedEffects.setMax(EffectType.VERTEX ,act.getMaxV());
|
|
82 |
DistortedEffects.setMax(EffectType.FRAGMENT,act.getMaxF());
|
|
82 | 83 |
DistortedEffects.enableEffect(EffectName.SWIRL); |
83 | 84 |
DistortedEffects.enableEffect(EffectName.DEFORM); |
84 | 85 |
DistortedEffects.enableEffect(EffectName.CHROMA); |
src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java | ||
---|---|---|
424 | 424 |
|
425 | 425 |
public void Create(View v) |
426 | 426 |
{ |
427 |
DistortedEffects.setMaxVertex(20); // those have to be called before
|
|
428 |
DistortedEffects.setMaxFragment(3); // any DistortedEffect get created!
|
|
427 |
DistortedEffects.setMax(EffectType.VERTEX ,20); // those have to be called before
|
|
428 |
DistortedEffects.setMax(EffectType.FRAGMENT,3); // any DistortedEffect get created!
|
|
429 | 429 |
|
430 | 430 |
if( mObjectType==1 ) |
431 | 431 |
{ |
src/main/java/org/distorted/examples/listener/ListenerRenderer.java | ||
---|---|---|
29 | 29 |
import org.distorted.examples.R; |
30 | 30 |
|
31 | 31 |
import org.distorted.library.effect.EffectName; |
32 |
import org.distorted.library.effect.EffectType; |
|
32 | 33 |
import org.distorted.library.effect.MatrixEffectMove; |
33 | 34 |
import org.distorted.library.effect.MatrixEffectScale; |
34 | 35 |
import org.distorted.library.effect.VertexEffectDistort; |
... | ... | |
66 | 67 |
|
67 | 68 |
ListenerRenderer(GLSurfaceView v) |
68 | 69 |
{ |
69 |
DistortedEffects.setMaxVertex(NUM_BUBBLES);
|
|
70 |
DistortedEffects.setMax(EffectType.VERTEX,NUM_BUBBLES);
|
|
70 | 71 |
mView = v; |
71 | 72 |
mEffects = new DistortedEffects(); |
72 | 73 |
mEffects.registerForMessages(this); |
Also available in: Unified diff
Small API simplification.