Revision d218d64e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.distorted.library.DistortedEffects; |
31 | 31 |
import org.distorted.library.DistortedFramebuffer; |
32 |
import org.distorted.library.DistortedScreen; |
|
32 | 33 |
import org.distorted.library.EffectTypes; |
33 | 34 |
import org.distorted.library.Distorted; |
34 | 35 |
import org.distorted.library.DistortedTexture; |
... | ... | |
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 |
|
... | ... | |
89 | 90 |
mEffects.distort(dLeft , pLeft , rLeft ); |
90 | 91 |
mEffects.distort(dRight, pRight, rRight); |
91 | 92 |
|
92 |
mScreen = new DistortedFramebuffer(0);
|
|
93 |
mScreen = new DistortedScreen();
|
|
93 | 94 |
} |
94 | 95 |
|
95 | 96 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Major: change of API.
Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.