Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/objecttree/ObjectTreeRenderer.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
56 | 56 |
|
57 |
class ObjectTreeRenderer implements GLSurfaceView.Renderer |
|
57 |
class ObjectTreeRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
58 | 58 |
{ |
59 | 59 |
private static final int NODE_FBO_SIZE = 300; |
60 | 60 |
private static final int GRID = 10; |
... | ... | |
201 | 201 |
VertexEffectSink.enable(); |
202 | 202 |
FragmentEffectChroma.enable(); |
203 | 203 |
|
204 |
try
|
|
205 |
{
|
|
206 |
DistortedLibrary.onCreate(mView.getContext()); |
|
207 |
}
|
|
208 |
catch(Exception ex) |
|
209 |
{
|
|
210 |
android.util.Log.e("ObjectTree", ex.getMessage() );
|
|
211 |
}
|
|
204 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
205 |
}
|
|
206 |
|
|
207 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
208 |
|
|
209 |
public void distortedException(Exception ex)
|
|
210 |
{
|
|
211 |
android.util.Log.e("ObjectTree", ex.getMessage() );
|
|
212 | 212 |
} |
213 | 213 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.