Project

General

Profile

« Previous | Next » 

Revision 8fca4a82

Added by Leszek Koltunski over 5 years ago

Move all Program-related stuff to Distorted. Now the DistortedEffects class is very simple.

View differences:

src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java
144 144
      mScreen.detachAll();
145 145
      mScreen.attach(mTexture, mEffects, mMesh);
146 146

  
147
      DistortedEffects.setMax(EffectType.VERTEX  ,12);
148
      DistortedEffects.setMax(EffectType.FRAGMENT, 9);
147
      Distorted.setMax(EffectType.VERTEX  ,12);
148
      Distorted.setMax(EffectType.FRAGMENT, 9);
149 149

  
150 150
      VertexEffectDistort.enable();
151 151
      VertexEffectSink.enable();
src/main/java/org/distorted/examples/check/CheckRenderer.java
77 77

  
78 78
      CheckActivity act = (CheckActivity)mView.getContext();
79 79

  
80
      DistortedEffects.setMax(EffectType.VERTEX  ,act.getMaxV());
81
      DistortedEffects.setMax(EffectType.FRAGMENT,act.getMaxF());
80
      Distorted.setMax(EffectType.VERTEX  ,act.getMaxV());
81
      Distorted.setMax(EffectType.FRAGMENT,act.getMaxF());
82 82

  
83 83
      VertexEffectSwirl.enable();
84 84
      VertexEffectDeform.enable();
src/main/java/org/distorted/examples/earth/EarthRenderer.java
280 280
      Effect.enableEffects(EffectType.FRAGMENT);
281 281
      Effect.enableEffects(EffectType.VERTEX);
282 282

  
283
      DistortedEffects.setMax(EffectType.VERTEX  , MAX_EFF);
284
      DistortedEffects.setMax(EffectType.FRAGMENT, MAX_EFF);
283
      Distorted.setMax(EffectType.VERTEX  , MAX_EFF);
284
      Distorted.setMax(EffectType.FRAGMENT, MAX_EFF);
285 285

  
286 286
      try
287 287
        {
src/main/java/org/distorted/examples/generic/GenericRenderer.java
313 313
      mCenterTexture.setTexture(bitmapC);
314 314
      mRegionTexture.setTexture(bitmapR);
315 315

  
316
      DistortedEffects.setMax(EffectType.VERTEX  ,10);
317
      DistortedEffects.setMax(EffectType.FRAGMENT,10);
316
      Distorted.setMax(EffectType.VERTEX  ,10);
317
      Distorted.setMax(EffectType.FRAGMENT,10);
318 318

  
319 319
      Effect.enableEffects(EffectType.VERTEX);
320 320
      Effect.enableEffects(EffectType.FRAGMENT);
src/main/java/org/distorted/examples/listener/ListenerRenderer.java
178 178

  
179 179
     // one more than we have bubbles at any given time because it can sometimes
180 180
     // happen that the old bubble is not yet removed when we add a new one
181
     DistortedEffects.setMax(EffectType.VERTEX,NUM_BUBBLES+1);
181
     Distorted.setMax(EffectType.VERTEX,NUM_BUBBLES+1);
182 182
     VertexEffectDistort.enable();
183 183

  
184 184
     try

Also available in: Unified diff