Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java | ||
---|---|---|
50 | 50 |
|
51 | 51 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
52 | 52 |
|
53 |
class DifferentEffectsRenderer implements GLSurfaceView.Renderer
|
|
53 |
class DifferentEffectsRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
54 | 54 |
{ |
55 | 55 |
private static final int NUM = 3; |
56 | 56 |
|
... | ... | |
188 | 188 |
VertexEffectDistort.enable(); |
189 | 189 |
FragmentEffectChroma.enable(); |
190 | 190 |
|
191 |
try
|
|
192 |
{
|
|
193 |
DistortedLibrary.onCreate(mView.getContext()); |
|
194 |
}
|
|
195 |
catch(Exception ex) |
|
196 |
{
|
|
197 |
android.util.Log.e("DifferentEffects", ex.getMessage() );
|
|
198 |
}
|
|
191 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
192 |
}
|
|
193 |
|
|
194 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
195 |
|
|
196 |
public void distortedException(Exception ex)
|
|
197 |
{
|
|
198 |
android.util.Log.e("DifferentEffects", ex.getMessage() );
|
|
199 | 199 |
} |
200 | 200 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.