Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
50 | 50 |
|
51 |
class AroundTheWorldRenderer implements GLSurfaceView.Renderer |
|
51 |
class AroundTheWorldRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
52 | 52 |
{ |
53 | 53 |
private GLSurfaceView mView; |
54 | 54 |
private DistortedEffects mEffects; |
... | ... | |
146 | 146 |
FragmentEffectChroma.enable(); |
147 | 147 |
FragmentEffectContrast.enable(); |
148 | 148 |
|
149 |
try
|
|
150 |
{
|
|
151 |
DistortedLibrary.onCreate(mView.getContext()); |
|
152 |
}
|
|
153 |
catch(Exception ex) |
|
154 |
{
|
|
155 |
android.util.Log.e("AroundTheWorld", 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("AroundTheWorld", ex.getMessage() );
|
|
157 | 157 |
} |
158 | 158 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.