Revision d218d64e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import org.distorted.library.Distorted; |
34 | 34 |
import org.distorted.library.DistortedEffects; |
35 |
import org.distorted.library.DistortedScreen; |
|
35 | 36 |
import org.distorted.library.DistortedTexture; |
36 | 37 |
import org.distorted.library.MeshFlat; |
37 | 38 |
import org.distorted.library.DistortedFramebuffer; |
... | ... | |
56 | 57 |
private DistortedTexture mTexture; |
57 | 58 |
private DistortedEffects mEffects; |
58 | 59 |
private MeshFlat mMesh; |
59 |
private DistortedFramebuffer mScreen, mOffscreen; |
|
60 |
private DistortedFramebuffer mOffscreen; |
|
61 |
private DistortedScreen mScreen; |
|
60 | 62 |
private Static1D s0; |
61 | 63 |
private Dynamic3D mScaleDyn; |
62 | 64 |
private Static3D mScaleFactor; |
... | ... | |
95 | 97 |
mEffects.sink( diSink, pLeft , sinkRegion); |
96 | 98 |
mEffects.sink( diSink, pRight, sinkRegion); |
97 | 99 |
|
98 |
mScreen = new DistortedFramebuffer(0);
|
|
100 |
mScreen = new DistortedScreen();
|
|
99 | 101 |
} |
100 | 102 |
|
101 | 103 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Major: change of API.
Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.