Revision 81b1577b
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/main/DistortedScreen.java | ||
---|---|---|
30 | 30 |
import android.opengl.GLES30; |
31 | 31 |
import android.opengl.GLSurfaceView; |
32 | 32 |
|
33 |
import org.distorted.library.effect.MatrixEffectMove; |
|
33 | 34 |
import org.distorted.library.type.Static3D; |
34 | 35 |
|
35 | 36 |
/** |
... | ... | |
53 | 54 |
private long lastTime=0; |
54 | 55 |
private long[] durations; |
55 | 56 |
private int currDuration; |
57 |
private static MatrixEffectMove mMoveEffect = new MatrixEffectMove( new Static3D(5,5,0) ); |
|
56 | 58 |
|
57 | 59 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
58 | 60 |
// here we don't manage underlying OpenGL assets ourselves |
... | ... | |
130 | 132 |
fpsTexture.setTexture(fpsBitmap); |
131 | 133 |
fpsCanvas = new Canvas(fpsBitmap); |
132 | 134 |
fpsEffects = new DistortedEffects(); |
133 |
fpsEffects.move( new Static3D(5,5,0) );
|
|
135 |
fpsEffects.apply(mMoveEffect);
|
|
134 | 136 |
|
135 | 137 |
mPaint = new Paint(); |
136 | 138 |
mPaint.setAntiAlias(true); |
Also available in: Unified diff
Progress with support for Effect classes. Last error in the library before it compiles!