Revision d218d64e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/blur/BlurRenderer.java | ||
---|---|---|
28 | 28 |
import org.distorted.library.Distorted; |
29 | 29 |
import org.distorted.library.DistortedEffects; |
30 | 30 |
import org.distorted.library.DistortedFramebuffer; |
31 |
import org.distorted.library.DistortedScreen; |
|
31 | 32 |
import org.distorted.library.DistortedTexture; |
32 | 33 |
import org.distorted.library.EffectTypes; |
33 | 34 |
import org.distorted.library.MeshFlat; |
... | ... | |
48 | 49 |
private GLSurfaceView mView; |
49 | 50 |
private DistortedTexture mTexture; |
50 | 51 |
private DistortedEffects mEffects; |
51 |
private DistortedFramebuffer mScreen;
|
|
52 |
private DistortedScreen mScreen;
|
|
52 | 53 |
private MeshFlat mMesh; |
53 | 54 |
private Static1D mRadiusSta; |
54 | 55 |
private int bmpHeight, bmpWidth; |
... | ... | |
60 | 61 |
mView = v; |
61 | 62 |
mMesh = new MeshFlat(1,1); |
62 | 63 |
mEffects = new DistortedEffects(); |
63 |
mScreen = new DistortedFramebuffer(0);
|
|
64 |
mScreen = new DistortedScreen();
|
|
64 | 65 |
|
65 | 66 |
mRadiusSta = new Static1D(5); |
66 | 67 |
Dynamic1D radiusDyn = new Dynamic1D(); |
Also available in: Unified diff
Major: change of API.
Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.