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