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