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/mirror/MirrorRenderer.java
45 45

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

  
48
class MirrorRenderer implements GLSurfaceView.Renderer
48
class MirrorRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
49 49
{
50 50
   private static final float MIRROR_SCALE     =0.70f;  // each next mirror will be 70% of the size or the previous
51 51
   private static final float HEAD_SCALE       =0.30f;  // Head's height will be 30% of the height of the mirror
......
219 219
      VertexEffectScale.enable();
220 220
      FragmentEffectBrightness.enable();
221 221

  
222
      try
223
        {
224
        DistortedLibrary.onCreate(mView.getContext());
225
        }
226
      catch(Exception ex)
227
        {
228
        android.util.Log.e("Mirror", ex.getMessage() );
229
        }
222
      DistortedLibrary.onCreate(mView.getContext(), this);
223
      }
224

  
225
///////////////////////////////////////////////////////////////////////////////////////////////////
226

  
227
    public void distortedException(Exception ex)
228
      {
229
      android.util.Log.e("Mirror", ex.getMessage() );
230 230
      }
231 231
}

Also available in: Unified diff