Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.distorted.library.Distorted; |
31 | 31 |
import org.distorted.library.DistortedFramebuffer; |
32 |
import org.distorted.library.GridFlat;
|
|
32 |
import org.distorted.library.MeshFlat;
|
|
33 | 33 |
import org.distorted.library.DistortedTexture; |
34 | 34 |
import org.distorted.library.DistortedEffects; |
35 | 35 |
import org.distorted.library.EffectTypes; |
... | ... | |
52 | 52 |
private DistortedTexture mTexture; |
53 | 53 |
private DistortedEffects mEffects; |
54 | 54 |
private DistortedFramebuffer mScreen; |
55 |
private GridFlat mGrid;
|
|
55 |
private MeshFlat mMesh;
|
|
56 | 56 |
private Static3D v0,v1,v2,v3; |
57 | 57 |
private Static1D dBegin, dMiddle, dEnd, s0; |
58 | 58 |
private int bmpHeight, bmpWidth; |
... | ... | |
154 | 154 |
public void onDrawFrame(GL10 glUnused) |
155 | 155 |
{ |
156 | 156 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
157 |
mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
|
|
157 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
158 | 158 |
} |
159 | 159 |
|
160 | 160 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
208 | 208 |
bmpHeight = bitmap.getHeight(); |
209 | 209 |
bmpWidth = bitmap.getWidth(); |
210 | 210 |
|
211 |
mGrid = new GridFlat(30,30*bmpHeight/bmpWidth);
|
|
211 |
mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
212 | 212 |
mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
213 | 213 |
mTexture.setTexture(bitmap); |
214 | 214 |
|
Also available in: Unified diff
Rename Grid to Mesh