Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
45 | 45 |
|
46 | 46 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
47 | 47 |
|
48 |
class SinkRenderer implements GLSurfaceView.Renderer
|
|
48 |
class SinkRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
49 | 49 |
{ |
50 | 50 |
private GLSurfaceView mView; |
51 | 51 |
private DistortedEffects mEffects; |
... | ... | |
125 | 125 |
mScreen.attach(mTexture,mEffects,mMesh); |
126 | 126 |
|
127 | 127 |
VertexEffectSink.enable(); |
128 |
DistortedLibrary.onCreate(mView.getContext(), this); |
|
129 |
} |
|
128 | 130 |
|
129 |
try |
|
130 |
{ |
|
131 |
DistortedLibrary.onCreate(mView.getContext()); |
|
132 |
} |
|
133 |
catch(Exception ex) |
|
134 |
{ |
|
135 |
android.util.Log.e("Sink", ex.getMessage() ); |
|
136 |
} |
|
131 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
132 |
|
|
133 |
public void distortedException(Exception ex) |
|
134 |
{ |
|
135 |
android.util.Log.e("Sink", ex.getMessage() ); |
|
137 | 136 |
} |
138 | 137 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.