Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
---|---|---|
52 | 52 |
|
53 | 53 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
54 | 54 |
|
55 |
class SaveRenderer implements GLSurfaceView.Renderer |
|
55 |
class SaveRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
56 | 56 |
{ |
57 | 57 |
private GLSurfaceView mView; |
58 | 58 |
private DistortedEffects mEffects; |
... | ... | |
249 | 249 |
VertexEffectScale.enable(); |
250 | 250 |
VertexEffectSink.enable(); |
251 | 251 |
|
252 |
try
|
|
253 |
{
|
|
254 |
DistortedLibrary.onCreate(mView.getContext()); |
|
255 |
}
|
|
256 |
catch(Exception ex) |
|
257 |
{
|
|
258 |
android.util.Log.e("Renderer", ex.getMessage() );
|
|
259 |
}
|
|
252 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
253 |
}
|
|
254 |
|
|
255 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
256 |
|
|
257 |
public void distortedException(Exception ex)
|
|
258 |
{
|
|
259 |
android.util.Log.e("Save", ex.getMessage() );
|
|
260 | 260 |
} |
261 | 261 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.