Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/singlemesh/SingleMeshRenderer.java | ||
---|---|---|
50 | 50 |
|
51 | 51 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
52 | 52 |
|
53 |
class SingleMeshRenderer implements GLSurfaceView.Renderer |
|
53 |
class SingleMeshRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
54 | 54 |
{ |
55 | 55 |
private static final float DIST = 0.5f; |
56 | 56 |
|
... | ... | |
185 | 185 |
DistortedLibrary.setMax(EffectType.VERTEX, 15); |
186 | 186 |
VertexEffectRotate.enable(); |
187 | 187 |
|
188 |
try
|
|
189 |
{
|
|
190 |
DistortedLibrary.onCreate(mView.getContext()); |
|
191 |
}
|
|
192 |
catch(Exception ex) |
|
193 |
{
|
|
194 |
android.util.Log.e("DeferredJob", ex.getMessage() );
|
|
195 |
}
|
|
188 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
189 |
}
|
|
190 |
|
|
191 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
192 |
|
|
193 |
public void distortedException(Exception ex)
|
|
194 |
{
|
|
195 |
android.util.Log.e("SingleMesh", ex.getMessage() );
|
|
196 | 196 |
} |
197 | 197 |
|
198 | 198 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.