Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/wind/WindRenderer.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
48 | 48 |
|
49 |
class WindRenderer implements GLSurfaceView.Renderer |
|
49 |
class WindRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
50 | 50 |
{ |
51 | 51 |
private static final int X = 50; |
52 | 52 |
private static final int Y = 30; |
... | ... | |
150 | 150 |
VertexEffectScale.enable(); |
151 | 151 |
VertexEffectDeform.enable(); |
152 | 152 |
VertexEffectWave.enable(); |
153 |
DistortedLibrary.onCreate(mView.getContext(), this); |
|
154 |
} |
|
153 | 155 |
|
154 |
try |
|
155 |
{ |
|
156 |
DistortedLibrary.onCreate(mView.getContext()); |
|
157 |
} |
|
158 |
catch(Exception ex) |
|
159 |
{ |
|
160 |
android.util.Log.e("Wind", ex.getMessage() ); |
|
161 |
} |
|
156 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
157 |
|
|
158 |
public void distortedException(Exception ex) |
|
159 |
{ |
|
160 |
android.util.Log.e("Wind", ex.getMessage() ); |
|
162 | 161 |
} |
163 | 162 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.