Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/projection/ProjectionRenderer.java | ||
---|---|---|
41 | 41 |
|
42 | 42 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
43 | 43 |
|
44 |
class ProjectionRenderer implements GLSurfaceView.Renderer |
|
44 |
class ProjectionRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
45 | 45 |
{ |
46 | 46 |
private GLSurfaceView mView; |
47 | 47 |
private DistortedEffects mEffects; |
... | ... | |
146 | 146 |
{ |
147 | 147 |
VertexEffectDeform.enable(); |
148 | 148 |
|
149 |
try
|
|
150 |
{
|
|
151 |
DistortedLibrary.onCreate(mView.getContext()); |
|
152 |
}
|
|
153 |
catch(Exception ex) |
|
154 |
{
|
|
155 |
android.util.Log.e("Projection", ex.getMessage() );
|
|
156 |
}
|
|
149 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
150 |
}
|
|
151 |
|
|
152 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
153 |
|
|
154 |
public void distortedException(Exception ex)
|
|
155 |
{
|
|
156 |
android.util.Log.e("Projection", ex.getMessage() );
|
|
157 | 157 |
} |
158 | 158 |
} |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.