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/blur/BlurRenderer.java
45 45

  
46 46
///////////////////////////////////////////////////////////////////////////////////////////////////
47 47

  
48
class BlurRenderer implements GLSurfaceView.Renderer
48
class BlurRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
49 49
{
50 50
    private final static int SIZE = 500;
51 51

  
......
146 146

  
147 147
     PostprocessEffectBlur.enable();
148 148

  
149
     try
150
       {
151
       DistortedLibrary.onCreate(mView.getContext());
152
       }
153
     catch(Exception ex)
154
       {
155
       android.util.Log.e("Blur", ex.getMessage() );
156
       }
149
     DistortedLibrary.onCreate(mView.getContext(),this);
150
     }
151

  
152
///////////////////////////////////////////////////////////////////////////////////////////////////
153

  
154
   public void distortedException(Exception ex)
155
     {
156
     android.util.Log.e("Blur", ex.getMessage() );
157 157
     }
158 158
}

Also available in: Unified diff