Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/predeform/PredeformRenderer.java | ||
---|---|---|
43 | 43 |
|
44 | 44 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
45 | 45 |
|
46 |
class PredeformRenderer implements GLSurfaceView.Renderer |
|
46 |
class PredeformRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
47 | 47 |
{ |
48 | 48 |
private static final float FOV = 30.0f; |
49 | 49 |
private static final float NEAR = 0.1f; |
... | ... | |
180 | 180 |
|
181 | 181 |
Effect.enableEffects(EffectType.VERTEX); |
182 | 182 |
|
183 |
try
|
|
184 |
{
|
|
185 |
DistortedLibrary.onCreate(act); |
|
186 |
}
|
|
187 |
catch(Exception ex) |
|
188 |
{
|
|
189 |
android.util.Log.e("Inflate", ex.getMessage() );
|
|
190 |
}
|
|
183 |
DistortedLibrary.onCreate(act, this);
|
|
184 |
}
|
|
185 |
|
|
186 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
187 |
|
|
188 |
public void distortedException(Exception ex)
|
|
189 |
{
|
|
190 |
android.util.Log.e("Predeform", ex.getMessage() );
|
|
191 | 191 |
} |
192 | 192 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.