Revision 061449ed
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
56 | 56 |
|
57 |
class StarWarsRenderer implements GLSurfaceView.Renderer, EffectListener |
|
57 |
class StarWarsRenderer implements GLSurfaceView.Renderer, EffectListener, DistortedLibrary.ExceptionListener
|
|
58 | 58 |
{ |
59 | 59 |
private final String[] mGFFAString = |
60 | 60 |
|
... | ... | |
186 | 186 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
187 | 187 |
{ |
188 | 188 |
setupBitmaps(); |
189 |
|
|
190 | 189 |
FragmentEffectAlpha.enable(); |
190 |
DistortedLibrary.onCreate(mView.getContext(), this); |
|
191 |
} |
|
191 | 192 |
|
192 |
try |
|
193 |
{ |
|
194 |
DistortedLibrary.onCreate(mView.getContext()); |
|
195 |
} |
|
196 |
catch(Exception ex) |
|
197 |
{ |
|
198 |
android.util.Log.e("Star Wars", ex.getMessage() ); |
|
199 |
} |
|
193 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
194 |
|
|
195 |
public void distortedException(Exception ex) |
|
196 |
{ |
|
197 |
android.util.Log.e("StarWars", ex.getMessage() ); |
|
200 | 198 |
} |
201 |
|
|
199 |
|
|
202 | 200 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
203 | 201 |
|
204 | 202 |
private void setupScreen(int scrW, int scrH) |
Also available in: Unified diff
Only compile the Full, Normal & OIT programs when they are actually needed.