Revision d218d64e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
30 | 30 |
import org.distorted.library.Distorted; |
31 | 31 |
import org.distorted.library.DistortedEffects; |
32 | 32 |
import org.distorted.library.DistortedFramebuffer; |
33 |
import org.distorted.library.DistortedScreen; |
|
33 | 34 |
import org.distorted.library.MeshFlat; |
34 | 35 |
import org.distorted.library.DistortedTexture; |
35 | 36 |
import org.distorted.library.EffectTypes; |
... | ... | |
49 | 50 |
private GLSurfaceView mView; |
50 | 51 |
private DistortedTexture mTexture; |
51 | 52 |
private DistortedEffects mEffects; |
52 |
private DistortedFramebuffer mScreen;
|
|
53 |
private DistortedScreen mScreen;
|
|
53 | 54 |
private MeshFlat mMesh; |
54 | 55 |
private int bmpHeight, bmpWidth; |
55 | 56 |
|
... | ... | |
66 | 67 |
mEffects = new DistortedEffects(); |
67 | 68 |
mEffects.sink( sink, new Static3D(297, 320, 0), null); |
68 | 69 |
|
69 |
mScreen = new DistortedFramebuffer(0);
|
|
70 |
mScreen = new DistortedScreen();
|
|
70 | 71 |
} |
71 | 72 |
|
72 | 73 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Major: change of API.
Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.