Revision d218d64e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.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.DistortedTree; |
33 | 34 |
import org.distorted.library.EffectTypes; |
34 | 35 |
import org.distorted.library.MeshFlat; |
... | ... | |
54 | 55 |
private GLSurfaceView mView; |
55 | 56 |
private DistortedTree mRoot; |
56 | 57 |
private DistortedTexture mLeaf; |
57 |
private DistortedFramebuffer mScreen;
|
|
58 |
private DistortedScreen mScreen;
|
|
58 | 59 |
private int mScreenW, mScreenH; |
59 | 60 |
|
60 | 61 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
112 | 113 |
effects.chroma( new Static1D(0.5f), new Static3D(colors[3*i],colors[3*i+1], colors[3*i+2]) ); |
113 | 114 |
} |
114 | 115 |
|
115 |
mScreen = new DistortedFramebuffer(0);
|
|
116 |
mScreen = new DistortedScreen();
|
|
116 | 117 |
} |
117 | 118 |
|
118 | 119 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Major: change of API.
Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.