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/glow/GlowRenderer.java
44 44

  
45 45
///////////////////////////////////////////////////////////////////////////////////////////////////
46 46

  
47
class GlowRenderer implements GLSurfaceView.Renderer
47
class GlowRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
48 48
{
49 49
   private static final float HALO_TO_RADIUS = 0.2f;
50 50

  
......
146 146

  
147 147
     PostprocessEffectGlow.enable();
148 148

  
149
     try
150
       {
151
       DistortedLibrary.onCreate(mView.getContext());
152
       }
153
     catch(Exception ex)
154
       {
155
       android.util.Log.e("Glow", 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("Glow", ex.getMessage() );
157 157
     }
158 158
}

Also available in: Unified diff