Project

General

Profile

« Previous | Next » 

Revision 061449ed

Added by Leszek Koltunski almost 4 years ago

Only compile the Full, Normal & OIT programs when they are actually needed.

View differences:

src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java
47 47

  
48 48
///////////////////////////////////////////////////////////////////////////////////////////////////
49 49

  
50
class OlimpicRenderer implements GLSurfaceView.Renderer 
50
class OlimpicRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
51 51
{
52 52
   private static final int LEAF_SIZE = 100;
53 53
   private static final int NUM_CIRCLES = 5;
......
207 207

  
208 208
     FragmentEffectChroma.enable();
209 209

  
210
     try
211
       {
212
       DistortedLibrary.onCreate(mView.getContext());
213
       }
214
     catch(Exception ex)
215
       {
216
       android.util.Log.e("Olympic", ex.getMessage() );
217
       }
210
     DistortedLibrary.onCreate(mView.getContext(), this);
211
     }
212

  
213
///////////////////////////////////////////////////////////////////////////////////////////////////
214

  
215
   public void distortedException(Exception ex)
216
     {
217
     android.util.Log.e("Olympic", ex.getMessage() );
218 218
     }
219 219
}

Also available in: Unified diff