Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/monalisa/MonaLisaRenderer.java | ||
---|---|---|
43 | 43 |
|
44 | 44 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
45 | 45 |
|
46 |
class MonaLisaRenderer implements GLSurfaceView.Renderer
|
|
46 |
class MonaLisaRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
47 | 47 |
{ |
48 | 48 |
private GLSurfaceView mView; |
49 | 49 |
private DistortedEffects mEffects; |
... | ... | |
161 | 161 |
// before the call to DistortedLibrary.onCreate(). Best done here. |
162 | 162 |
VertexEffectDistort.enable(); |
163 | 163 |
|
164 |
try
|
|
165 |
{
|
|
166 |
DistortedLibrary.onCreate(mView.getContext()); |
|
167 |
}
|
|
168 |
catch(Exception ex) |
|
169 |
{
|
|
170 |
android.util.Log.e("MonaLisa", ex.getMessage() );
|
|
171 |
}
|
|
164 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
165 |
}
|
|
166 |
|
|
167 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
168 |
|
|
169 |
public void distortedException(Exception ex)
|
|
170 |
{
|
|
171 |
android.util.Log.e("MonaLisa", ex.getMessage() );
|
|
172 | 172 |
} |
173 | 173 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.