Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/wind/WindRenderer.java | ||
---|---|---|
27 | 27 |
import org.distorted.examples.R; |
28 | 28 |
import org.distorted.library.Distorted; |
29 | 29 |
import org.distorted.library.DistortedFramebuffer; |
30 |
import org.distorted.library.GridCubes;
|
|
30 |
import org.distorted.library.MeshCubes;
|
|
31 | 31 |
import org.distorted.library.DistortedEffects; |
32 | 32 |
import org.distorted.library.DistortedTexture; |
33 | 33 |
import org.distorted.library.type.Static1D; |
... | ... | |
47 | 47 |
private DistortedEffects mEffects; |
48 | 48 |
private DistortedTexture mTexture; |
49 | 49 |
private DistortedFramebuffer mScreen; |
50 |
private GridCubes mGrid;
|
|
50 |
private MeshCubes mMesh;
|
|
51 | 51 |
private WindEffectsManager mManager; |
52 | 52 |
private int mObjWidth, mObjHeight; |
53 | 53 |
private int mWind; |
... | ... | |
58 | 58 |
{ |
59 | 59 |
mView = view; |
60 | 60 |
|
61 |
mGrid = new GridCubes(50,30,false);
|
|
61 |
mMesh = new MeshCubes(50,30,false);
|
|
62 | 62 |
mEffects = new DistortedEffects(); |
63 | 63 |
mTexture = new DistortedTexture(50,30); |
64 | 64 |
mManager = new WindEffectsManager(mTexture); |
... | ... | |
81 | 81 |
public void onDrawFrame(GL10 glUnused) |
82 | 82 |
{ |
83 | 83 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
84 |
mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
|
|
84 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
85 | 85 |
} |
86 | 86 |
|
87 | 87 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Rename Grid to Mesh