Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/multiblur/MultiblurRenderer.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
49 | 49 |
|
50 |
class MultiblurRenderer implements GLSurfaceView.Renderer |
|
50 |
class MultiblurRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
51 | 51 |
{ |
52 | 52 |
private static final int[] MOVE_VEC = |
53 | 53 |
{ |
... | ... | |
196 | 196 |
|
197 | 197 |
PostprocessEffectBlur.enable(); |
198 | 198 |
|
199 |
try
|
|
200 |
{
|
|
201 |
DistortedLibrary.onCreate(mView.getContext()); |
|
202 |
}
|
|
203 |
catch(Exception ex) |
|
204 |
{
|
|
205 |
android.util.Log.e("Multiblur", ex.getMessage() );
|
|
206 |
}
|
|
199 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
200 |
}
|
|
201 |
|
|
202 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
203 |
|
|
204 |
public void distortedException(Exception ex)
|
|
205 |
{
|
|
206 |
android.util.Log.e("Multiblur", ex.getMessage() );
|
|
207 | 207 |
} |
208 | 208 |
|
209 | 209 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.