Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java | ||
---|---|---|
28 | 28 |
import org.distorted.library.Distorted; |
29 | 29 |
import org.distorted.library.DistortedEffects; |
30 | 30 |
import org.distorted.library.DistortedFramebuffer; |
31 |
import org.distorted.library.GridFlat;
|
|
31 |
import org.distorted.library.MeshFlat;
|
|
32 | 32 |
import org.distorted.library.DistortedTexture; |
33 | 33 |
import org.distorted.library.EffectTypes; |
34 | 34 |
import org.distorted.library.type.Static3D; |
... | ... | |
46 | 46 |
private GLSurfaceView mView; |
47 | 47 |
private DistortedEffects mEffects; |
48 | 48 |
private DistortedTexture mTexture; |
49 |
private GridFlat mGrid;
|
|
49 |
private MeshFlat mMesh;
|
|
50 | 50 |
private DistortedFramebuffer mScreen; |
51 | 51 |
private AroundTheWorldEffectsManager mManager; |
52 | 52 |
private int mObjWidth, mObjHeight; |
... | ... | |
77 | 77 |
public void onDrawFrame(GL10 glUnused) |
78 | 78 |
{ |
79 | 79 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
80 |
mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
|
|
80 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
81 | 81 |
} |
82 | 82 |
|
83 | 83 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
132 | 132 |
mTexture = new DistortedTexture(mObjWidth,mObjHeight); |
133 | 133 |
mTexture.setTexture(bitmap); |
134 | 134 |
|
135 |
mGrid = new GridFlat(30,30*mObjHeight/mObjWidth);
|
|
135 |
mMesh = new MeshFlat(30,30*mObjHeight/mObjWidth);
|
|
136 | 136 |
|
137 | 137 |
try |
138 | 138 |
{ |
Also available in: Unified diff
Rename Grid to Mesh