Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/surfaceview/RenderThread.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
49 | 49 |
|
50 |
class RenderThread extends Thread |
|
50 |
class RenderThread extends Thread implements DistortedLibrary.ExceptionListener
|
|
51 | 51 |
{ |
52 | 52 |
private static final String TAG = "RenderThread"; |
53 | 53 |
|
... | ... | |
253 | 253 |
mScreen.attach(mTexture,mEffects,mMesh); |
254 | 254 |
|
255 | 255 |
VertexEffectDistort.enable(); |
256 |
DistortedLibrary.onCreate(mView.getContext(), this); |
|
257 |
} |
|
256 | 258 |
|
257 |
try |
|
258 |
{ |
|
259 |
DistortedLibrary.onCreate(mView.getContext()); |
|
260 |
} |
|
261 |
catch(Exception ex) |
|
262 |
{ |
|
263 |
Log.e("PlainMonaLisa", ex.getMessage() ); |
|
264 |
} |
|
259 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
260 |
|
|
261 |
public void distortedException(Exception ex) |
|
262 |
{ |
|
263 |
android.util.Log.e("SurfaceView", ex.getMessage() ); |
|
265 | 264 |
} |
266 | 265 |
|
267 | 266 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.