Revision d218d64e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.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; |
... | ... | |
54 | 55 |
private DistortedEffects[] mEffects; |
55 | 56 |
private DistortedTexture mTexture; |
56 | 57 |
private MeshFlat mMesh; |
57 |
private DistortedFramebuffer mScreen;
|
|
58 |
private DistortedScreen mScreen;
|
|
58 | 59 |
private int bmpHeight, bmpWidth; |
59 | 60 |
|
60 | 61 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
94 | 95 |
|
95 | 96 |
mEffects[2].chroma(chromaDyn, new Static3D(0,1,0) ); |
96 | 97 |
|
97 |
mScreen = new DistortedFramebuffer(0);
|
|
98 |
mScreen = new DistortedScreen();
|
|
98 | 99 |
} |
99 | 100 |
|
100 | 101 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Major: change of API.
Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.