Revision b6f7c7f2
Added by Leszek Koltunski about 3 years ago
- ID b6f7c7f2d18f73e783a704491325378bf67e696d
- Parent 09784afd
src/main/java/org/distorted/tutorial/TutorialRenderer.java | ||
---|---|---|
22 | 22 |
import android.opengl.GLSurfaceView; |
23 | 23 |
|
24 | 24 |
import org.distorted.effects.BaseEffect; |
25 |
import org.distorted.library.effect.EffectType; |
|
26 | 25 |
import org.distorted.library.effect.VertexEffectQuaternion; |
27 | 26 |
import org.distorted.library.effect.VertexEffectRotate; |
28 | 27 |
import org.distorted.library.main.DistortedLibrary; |
29 | 28 |
import org.distorted.library.main.DistortedScreen; |
29 |
import org.distorted.main.RubikDebug; |
|
30 | 30 |
|
31 | 31 |
import javax.microedition.khronos.egl.EGLConfig; |
32 | 32 |
import javax.microedition.khronos.opengles.GL10; |
... | ... | |
38 | 38 |
private final TutorialSurfaceView mView; |
39 | 39 |
private final DistortedScreen mScreen; |
40 | 40 |
|
41 |
static boolean mStartDebug = false; |
|
42 |
|
|
41 | 43 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
42 | 44 |
|
43 | 45 |
TutorialRenderer(TutorialSurfaceView v) |
... | ... | |
57 | 59 |
long time = System.currentTimeMillis(); |
58 | 60 |
mView.getPreRender().preRender(); |
59 | 61 |
mScreen.render(time); |
62 |
|
|
63 |
if( mStartDebug ) |
|
64 |
{ |
|
65 |
mStartDebug = false; |
|
66 |
RubikDebug debug = RubikDebug.getInstance(); |
|
67 |
debug.onFirstDraw(); |
|
68 |
} |
|
60 | 69 |
} |
61 | 70 |
|
62 | 71 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Improve the test - now it will hopefully not crash on slow devices (part 2)