Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/deform/DeformRenderer.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
50 | 50 |
|
51 |
class DeformRenderer implements GLSurfaceView.Renderer, EffectListener |
|
51 |
class DeformRenderer implements GLSurfaceView.Renderer, EffectListener, DistortedLibrary.ExceptionListener
|
|
52 | 52 |
{ |
53 | 53 |
private static final int NUM_VECTORS = 8; |
54 | 54 |
private static final int NUM_LINES = 10; |
... | ... | |
230 | 230 |
VertexEffectDistort.enable(); |
231 | 231 |
VertexEffectDeform.enable(); |
232 | 232 |
|
233 |
try
|
|
234 |
{
|
|
235 |
DistortedLibrary.onCreate(mView.getContext()); |
|
236 |
}
|
|
237 |
catch(Exception ex) |
|
238 |
{
|
|
239 |
android.util.Log.e("Deform", ex.toString() );
|
|
240 |
}
|
|
233 |
DistortedLibrary.onCreate(mView.getContext(),this);
|
|
234 |
}
|
|
235 |
|
|
236 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
237 |
|
|
238 |
public void distortedException(Exception ex)
|
|
239 |
{
|
|
240 |
android.util.Log.e("Deform", ex.getMessage() );
|
|
241 | 241 |
} |
242 | 242 |
|
243 | 243 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.