Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.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; |
... | ... | |
50 | 50 |
private DistortedTexture mTexture; |
51 | 51 |
private DistortedEffects mEffects; |
52 | 52 |
private DistortedFramebuffer mScreen; |
53 |
private GridFlat mGrid;
|
|
53 |
private MeshFlat mMesh;
|
|
54 | 54 |
private int bmpHeight, bmpWidth; |
55 | 55 |
|
56 | 56 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
74 | 74 |
public void onDrawFrame(GL10 glUnused) |
75 | 75 |
{ |
76 | 76 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
77 |
mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
|
|
77 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
78 | 78 |
} |
79 | 79 |
|
80 | 80 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
128 | 128 |
bmpHeight = bitmap.getHeight(); |
129 | 129 |
bmpWidth = bitmap.getWidth(); |
130 | 130 |
|
131 |
mGrid = new GridFlat(30,30*bmpHeight/bmpWidth);
|
|
131 |
mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
132 | 132 |
mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
133 | 133 |
mTexture.setTexture(bitmap); |
134 | 134 |
|
Also available in: Unified diff
Rename Grid to Mesh