Revision b01acdaf
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.GridFlat;
|
|
33 |
import org.distorted.library.MeshFlat;
|
|
34 | 34 |
import org.distorted.library.DistortedTexture; |
35 | 35 |
import org.distorted.library.EffectTypes; |
36 | 36 |
import org.distorted.library.type.Dynamic1D; |
... | ... | |
53 | 53 |
private GLSurfaceView mView; |
54 | 54 |
private DistortedEffects[] mEffects; |
55 | 55 |
private DistortedTexture mTexture; |
56 |
private GridFlat mGrid;
|
|
56 |
private MeshFlat mMesh;
|
|
57 | 57 |
private DistortedFramebuffer mScreen; |
58 | 58 |
private int bmpHeight, bmpWidth; |
59 | 59 |
|
... | ... | |
105 | 105 |
|
106 | 106 |
long time = System.currentTimeMillis(); |
107 | 107 |
|
108 |
for(int i=NUM-1; i>=0; i--) mScreen.renderTo(mTexture, mGrid, mEffects[i], time);
|
|
108 |
for(int i=NUM-1; i>=0; i--) mScreen.renderTo(mTexture, mMesh, mEffects[i], time);
|
|
109 | 109 |
} |
110 | 110 |
|
111 | 111 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
169 | 169 |
bmpHeight = bitmap.getHeight(); |
170 | 170 |
bmpWidth = bitmap.getWidth(); |
171 | 171 |
|
172 |
mGrid = new GridFlat(30,30*bmpHeight/bmpWidth);
|
|
172 |
mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
173 | 173 |
mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
174 | 174 |
|
175 | 175 |
mTexture.setTexture(bitmap); |
Also available in: Unified diff
Rename Grid to Mesh