Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
50 | 50 |
|
51 | 51 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
52 | 52 |
|
53 |
class GirlRenderer implements GLSurfaceView.Renderer
|
|
53 |
class GirlRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
54 | 54 |
{ |
55 | 55 |
private GLSurfaceView mView; |
56 | 56 |
private DistortedEffects mEffects; |
... | ... | |
212 | 212 |
VertexEffectSink.enable(); |
213 | 213 |
VertexEffectSwirl.enable(); |
214 | 214 |
|
215 |
try
|
|
216 |
{
|
|
217 |
DistortedLibrary.onCreate(mView.getContext()); |
|
218 |
}
|
|
219 |
catch(Exception ex) |
|
220 |
{
|
|
221 |
android.util.Log.e("Girl", ex.getMessage() );
|
|
222 |
}
|
|
215 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
216 |
}
|
|
217 |
|
|
218 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
219 |
|
|
220 |
public void distortedException(Exception ex)
|
|
221 |
{
|
|
222 |
android.util.Log.e("Girl", ex.getMessage() );
|
|
223 | 223 |
} |
224 | 224 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.