Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/generic/GenericRenderer.java | ||
---|---|---|
49 | 49 |
|
50 | 50 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
51 | 51 |
|
52 |
class GenericRenderer implements GLSurfaceView.Renderer |
|
52 |
class GenericRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
53 | 53 |
{ |
54 | 54 |
private static final float FOV = 30.0f; |
55 | 55 |
private static final float NEAR = 0.1f; |
... | ... | |
322 | 322 |
Effect.enableEffects(EffectType.FRAGMENT); |
323 | 323 |
Effect.enableEffects(EffectType.POSTPROCESS); |
324 | 324 |
|
325 |
try
|
|
326 |
{
|
|
327 |
DistortedLibrary.onCreate(mView.getContext()); |
|
328 |
}
|
|
329 |
catch(Exception ex) |
|
330 |
{
|
|
331 |
android.util.Log.e("Effects3D", ex.getMessage() );
|
|
332 |
}
|
|
325 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
326 |
}
|
|
327 |
|
|
328 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
329 |
|
|
330 |
public void distortedException(Exception ex)
|
|
331 |
{
|
|
332 |
android.util.Log.e("Generic", ex.getMessage() );
|
|
333 | 333 |
} |
334 | 334 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.