Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/flag/FlagRenderer.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.GridCubes;
|
|
31 |
import org.distorted.library.MeshCubes;
|
|
32 | 32 |
import org.distorted.library.DistortedTexture; |
33 | 33 |
import org.distorted.library.EffectTypes; |
34 | 34 |
import org.distorted.library.type.Dynamic; |
... | ... | |
52 | 52 |
private DistortedEffects mEffects; |
53 | 53 |
private DistortedTexture mTexture; |
54 | 54 |
private DistortedFramebuffer mScreen; |
55 |
private GridCubes mGrid;
|
|
55 |
private MeshCubes mMesh;
|
|
56 | 56 |
private DynamicQuat mQuatInt1, mQuatInt2; |
57 | 57 |
private Dynamic5D mWaveDyn; |
58 | 58 |
private Static5D mWaveSta1, mWaveSta2; |
... | ... | |
68 | 68 |
mView = v; |
69 | 69 |
|
70 | 70 |
mEffects = new DistortedEffects(); |
71 |
mGrid = new GridCubes(50,30,false);
|
|
71 |
mMesh = new MeshCubes(50,30,false);
|
|
72 | 72 |
mTexture = new DistortedTexture(500,300); |
73 | 73 |
|
74 | 74 |
mObjWidth = mTexture.getWidth(); |
... | ... | |
143 | 143 |
public void onDrawFrame(GL10 glUnused) |
144 | 144 |
{ |
145 | 145 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
146 |
mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
|
|
146 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
147 | 147 |
} |
148 | 148 |
|
149 | 149 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Rename Grid to Mesh