Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
50 | 50 |
|
51 |
class MeshFileRenderer implements GLSurfaceView.Renderer |
|
51 |
class MeshFileRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
|
|
52 | 52 |
{ |
53 | 53 |
private GLSurfaceView mView; |
54 | 54 |
private DistortedTexture mTexture; |
... | ... | |
114 | 114 |
{ |
115 | 115 |
if( mTexture==null ) mTexture = new DistortedTexture(); |
116 | 116 |
|
117 |
try
|
|
118 |
{
|
|
119 |
DistortedLibrary.onCreate(mView.getContext()); |
|
120 |
}
|
|
121 |
catch(Exception ex) |
|
122 |
{
|
|
123 |
android.util.Log.e("MeshFile", ex.getMessage() );
|
|
124 |
}
|
|
117 |
DistortedLibrary.onCreate(mView.getContext(), this);
|
|
118 |
}
|
|
119 |
|
|
120 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
121 |
|
|
122 |
public void distortedException(Exception ex)
|
|
123 |
{
|
|
124 |
android.util.Log.e("MeshFile", ex.getMessage() );
|
|
125 | 125 |
} |
126 | 126 |
|
127 | 127 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.