Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/catanddog/CatAndDogRenderer.java | ||
---|---|---|
30 | 30 |
import org.distorted.library.DistortedEffects; |
31 | 31 |
import org.distorted.library.DistortedFramebuffer; |
32 | 32 |
import org.distorted.library.DistortedTexture; |
33 |
import org.distorted.library.GridFlat;
|
|
33 |
import org.distorted.library.MeshFlat;
|
|
34 | 34 |
import org.distorted.library.EffectTypes; |
35 | 35 |
import org.distorted.library.type.Dynamic1D; |
36 | 36 |
import org.distorted.library.type.Dynamic3D; |
... | ... | |
50 | 50 |
private GLSurfaceView mView; |
51 | 51 |
private DistortedEffects mEffects; |
52 | 52 |
private DistortedTexture mTexture; |
53 |
private GridFlat mGrid;
|
|
53 |
private MeshFlat mMesh;
|
|
54 | 54 |
private DistortedFramebuffer mScreen; |
55 | 55 |
private int bmpHeight, bmpWidth; |
56 | 56 |
|
... | ... | |
60 | 60 |
{ |
61 | 61 |
mView = v; |
62 | 62 |
|
63 |
mGrid = new GridFlat(1,1); // no vertex effects, grid can be a (1x1) quad.
|
|
63 |
mMesh = new MeshFlat(1,1); // no vertex effects, grid can be a (1x1) quad.
|
|
64 | 64 |
mEffects = new DistortedEffects(); |
65 | 65 |
|
66 | 66 |
Static4D chromaRegion= new Static4D( 530, 200,100,100); |
... | ... | |
86 | 86 |
public void onDrawFrame(GL10 glUnused) |
87 | 87 |
{ |
88 | 88 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
89 |
mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
|
|
89 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
90 | 90 |
} |
91 | 91 |
|
92 | 92 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Rename Grid to Mesh