Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/deferredjob/DeferredJobRenderer.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
49 | 49 |
|
50 |
class DeferredJobRenderer implements GLSurfaceView.Renderer |
|
50 |
class DeferredJobRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
51 | 51 |
{ |
52 | 52 |
private GLSurfaceView mView; |
53 | 53 |
private DistortedTexture mTexture; |
... | ... | |
134 | 134 |
DistortedLibrary.setMax(EffectType.VERTEX, 11); |
135 | 135 |
VertexEffectRotate.enable(); |
136 | 136 |
|
137 |
try
|
|
138 |
{
|
|
139 |
DistortedLibrary.onCreate(mView.getContext()); |
|
140 |
}
|
|
141 |
catch(Exception ex) |
|
142 |
{
|
|
143 |
android.util.Log.e("DeferredJob", ex.getMessage() );
|
|
144 |
}
|
|
137 |
DistortedLibrary.onCreate(mView.getContext(),this);
|
|
138 |
}
|
|
139 |
|
|
140 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
141 |
|
|
142 |
public void distortedException(Exception ex)
|
|
143 |
{
|
|
144 |
android.util.Log.e("DeferredJob", ex.getMessage() );
|
|
145 | 145 |
} |
146 | 146 |
|
147 | 147 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.