Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
31 | 31 |
import org.distorted.library.DistortedEffects; |
32 | 32 |
import org.distorted.library.DistortedFramebuffer; |
33 | 33 |
import org.distorted.library.DistortedTexture; |
34 |
import org.distorted.library.GridFlat;
|
|
34 |
import org.distorted.library.MeshFlat;
|
|
35 | 35 |
import org.distorted.library.EffectTypes; |
36 | 36 |
import org.distorted.library.type.Dynamic3D; |
37 | 37 |
import org.distorted.library.type.Static1D; |
... | ... | |
58 | 58 |
private GLSurfaceView mView; |
59 | 59 |
private DistortedTexture mTexture; |
60 | 60 |
private DistortedEffects mEffects; |
61 |
private GridFlat mGrid;
|
|
61 |
private MeshFlat mMesh;
|
|
62 | 62 |
private DistortedFramebuffer mScreen; |
63 | 63 |
private int bmpHeight, bmpWidth; |
64 | 64 |
|
... | ... | |
82 | 82 |
public void onDrawFrame(GL10 glUnused) |
83 | 83 |
{ |
84 | 84 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
85 |
mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
|
|
85 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
86 | 86 |
} |
87 | 87 |
|
88 | 88 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
138 | 138 |
|
139 | 139 |
mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
140 | 140 |
mTexture.setTexture(bitmap); |
141 |
mGrid = new GridFlat(30,30*bmpHeight/bmpWidth);
|
|
141 |
mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
142 | 142 |
|
143 | 143 |
// Try adding 2 Vertex Effects to the Bitmap. |
144 | 144 |
// This will fail if we have set maxVertexEffects to something < 2. |
Also available in: Unified diff
Rename Grid to Mesh