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