Project

General

Profile

« Previous | Next » 

Revision 885b9cca

Added by Leszek Koltunski almost 7 years ago

Move all the knowledge about Vertex and Fragment effects to their respective classes.

View differences:

src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java
29 29
import android.opengl.GLSurfaceView;
30 30

  
31 31
import org.distorted.library.effect.EffectName;
32
import org.distorted.library.effect.FragmentEffectAlpha;
33
import org.distorted.library.effect.FragmentEffectChroma;
34
import org.distorted.library.effect.VertexEffectDistort;
35
import org.distorted.library.effect.VertexEffectSink;
36
import org.distorted.library.effect.VertexEffectSwirl;
32 37
import org.distorted.library.main.DistortedScreen;
33 38
import org.distorted.library.main.DistortedTexture;
34 39
import org.distorted.library.main.DistortedEffects;
......
109 114

  
110 115
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
111 116
     {
112
     DistortedEffects.enableEffect(EffectName.SWIRL);
113
     DistortedEffects.enableEffect(EffectName.SMOOTH_ALPHA);
114
     DistortedEffects.enableEffect(EffectName.SMOOTH_CHROMA);
115
     DistortedEffects.enableEffect(EffectName.DISTORT);
116
     DistortedEffects.enableEffect(EffectName.SINK);
117
     VertexEffectSwirl.enable();
118
     VertexEffectDistort.enable();
119
     VertexEffectSink.enable();
120
     FragmentEffectChroma.enable();
121
     FragmentEffectAlpha.enable();
117 122

  
118 123
     try
119 124
       {

Also available in: Unified diff