Revision d218d64e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java | ||
---|---|---|
33 | 33 |
import org.distorted.library.Distorted; |
34 | 34 |
import org.distorted.library.DistortedEffects; |
35 | 35 |
import org.distorted.library.DistortedFramebuffer; |
36 |
import org.distorted.library.DistortedScreen; |
|
36 | 37 |
import org.distorted.library.MeshFlat; |
37 | 38 |
import org.distorted.library.DistortedTexture; |
38 | 39 |
import org.distorted.library.EffectTypes; |
... | ... | |
64 | 65 |
|
65 | 66 |
private DistortedTexture mTexture; |
66 | 67 |
private DistortedEffects mEffects; |
67 |
private DistortedFramebuffer mScreen;
|
|
68 |
private DistortedScreen mScreen;
|
|
68 | 69 |
private MeshFlat mMesh; |
69 | 70 |
private int bmpHeight, bmpWidth; |
70 | 71 |
private SurfaceView mView; |
... | ... | |
95 | 96 |
mEffects.distort( dLeft, pLeft , rLeft ); |
96 | 97 |
mEffects.distort(dRight, pRight, rRight); |
97 | 98 |
|
98 |
mScreen = new DistortedFramebuffer(0);
|
|
99 |
mScreen = new DistortedScreen();
|
|
99 | 100 |
} |
100 | 101 |
|
101 | 102 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Major: change of API.
Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.