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/catanddog/CatAndDogRenderer.java
48 48

  
49 49
///////////////////////////////////////////////////////////////////////////////////////////////////
50 50

  
51
class CatAndDogRenderer implements GLSurfaceView.Renderer
51
class CatAndDogRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
52 52
{
53 53
    private GLSurfaceView mView;
54 54
    private DistortedTexture mTexture;
......
158 158
      FragmentEffectChroma.enable();
159 159
      FragmentEffectAlpha.enable();
160 160

  
161
      try
162
        {
163
        DistortedLibrary.onCreate(mView.getContext());
164
        }
165
      catch(Exception ex)
166
        {
167
        android.util.Log.e("CatAndDog", ex.getMessage() );
168
        }
161
      DistortedLibrary.onCreate(mView.getContext(),this);
162
      }
163

  
164
///////////////////////////////////////////////////////////////////////////////////////////////////
165

  
166
    public void distortedException(Exception ex)
167
      {
168
      android.util.Log.e("CatAndDog", ex.getMessage() );
169 169
      }
170 170
}

Also available in: Unified diff