Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/inflate/InflateRenderer.java | ||
---|---|---|
40 | 40 |
|
41 | 41 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
42 | 42 |
|
43 |
class InflateRenderer implements GLSurfaceView.Renderer |
|
43 |
class InflateRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
44 | 44 |
{ |
45 | 45 |
private static final float FOV = 30.0f; |
46 | 46 |
private static final float NEAR = 0.1f; |
... | ... | |
154 | 154 |
VertexEffectScale.enable(); |
155 | 155 |
FragmentEffectAlpha.enable(); |
156 | 156 |
|
157 |
try
|
|
158 |
{
|
|
159 |
DistortedLibrary.onCreate(act); |
|
160 |
}
|
|
161 |
catch(Exception ex) |
|
162 |
{
|
|
163 |
android.util.Log.e("Inflate", ex.getMessage() );
|
|
164 |
}
|
|
157 |
DistortedLibrary.onCreate(act,this);
|
|
158 |
}
|
|
159 |
|
|
160 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
161 |
|
|
162 |
public void distortedException(Exception ex)
|
|
163 |
{
|
|
164 |
android.util.Log.e("Inflate", ex.getMessage() );
|
|
165 | 165 |
} |
166 | 166 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.