Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/stencil/StencilRenderer.java | ||
---|---|---|
50 | 50 |
|
51 | 51 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
52 | 52 |
|
53 |
class StencilRenderer implements GLSurfaceView.Renderer |
|
53 |
class StencilRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
54 | 54 |
{ |
55 | 55 |
private GLSurfaceView mView; |
56 | 56 |
private DistortedScreen mScreen; |
... | ... | |
226 | 226 |
|
227 | 227 |
VertexEffectScale.enable(); |
228 | 228 |
FragmentEffectBrightness.enable(); |
229 |
DistortedLibrary.onCreate(mView.getContext(), this); |
|
230 |
} |
|
229 | 231 |
|
230 |
try |
|
231 |
{ |
|
232 |
DistortedLibrary.onCreate(mView.getContext()); |
|
233 |
} |
|
234 |
catch(Exception ex) |
|
235 |
{ |
|
236 |
android.util.Log.e("Stencil", ex.getMessage() ); |
|
237 |
} |
|
232 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
233 |
|
|
234 |
public void distortedException(Exception ex) |
|
235 |
{ |
|
236 |
android.util.Log.e("Stencil", ex.getMessage() ); |
|
238 | 237 |
} |
239 | 238 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.