Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/flag/FlagRenderer.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
49 | 49 |
|
50 |
class FlagRenderer implements GLSurfaceView.Renderer |
|
50 |
class FlagRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
51 | 51 |
{ |
52 | 52 |
private GLSurfaceView mView; |
53 | 53 |
private DistortedTexture mTexture; |
... | ... | |
191 | 191 |
VertexEffectScale.enable(); |
192 | 192 |
VertexEffectWave.enable(); |
193 | 193 |
|
194 |
try
|
|
195 |
{
|
|
196 |
DistortedLibrary.onCreate(mView.getContext()); |
|
197 |
}
|
|
198 |
catch(Exception ex) |
|
199 |
{
|
|
200 |
android.util.Log.e("Flag", ex.getMessage() );
|
|
201 |
}
|
|
194 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
195 |
}
|
|
196 |
|
|
197 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
198 |
|
|
199 |
public void distortedException(Exception ex)
|
|
200 |
{
|
|
201 |
android.util.Log.e("Flag", ex.getMessage() );
|
|
202 | 202 |
} |
203 | 203 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.