Revision d218d64e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/catanddog/CatAndDogRenderer.java | ||
---|---|---|
29 | 29 |
import org.distorted.library.Distorted; |
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.DistortedTexture; |
33 | 34 |
import org.distorted.library.MeshFlat; |
34 | 35 |
import org.distorted.library.EffectTypes; |
... | ... | |
51 | 52 |
private DistortedEffects mEffects; |
52 | 53 |
private DistortedTexture mTexture; |
53 | 54 |
private MeshFlat mMesh; |
54 |
private DistortedFramebuffer mScreen;
|
|
55 |
private DistortedScreen mScreen;
|
|
55 | 56 |
private int bmpHeight, bmpWidth; |
56 | 57 |
|
57 | 58 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
78 | 79 |
|
79 | 80 |
mEffects.alpha( alphaDyn, alphaRegion, false ); |
80 | 81 |
|
81 |
mScreen = new DistortedFramebuffer(0);
|
|
82 |
mScreen = new DistortedScreen();
|
|
82 | 83 |
} |
83 | 84 |
|
84 | 85 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Major: change of API.
Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.