Revision f3ca895f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java | ||
---|---|---|
35 | 35 |
import org.distorted.library.main.DistortedScreen; |
36 | 36 |
import org.distorted.library.main.DistortedTexture; |
37 | 37 |
import org.distorted.library.main.DistortedEffects; |
38 |
import org.distorted.library.mesh.MeshFlat;
|
|
38 |
import org.distorted.library.mesh.MeshRectangles;
|
|
39 | 39 |
import org.distorted.library.type.Dynamic3D; |
40 | 40 |
import org.distorted.library.type.Static1D; |
41 | 41 |
import org.distorted.library.type.Static3D; |
... | ... | |
54 | 54 |
private GLSurfaceView mView; |
55 | 55 |
private DistortedEffects[] mEffects; |
56 | 56 |
private DistortedTexture[] mTexture; |
57 |
private MeshFlat mMesh;
|
|
57 |
private MeshRectangles mMesh;
|
|
58 | 58 |
private DistortedScreen mScreen; |
59 | 59 |
private int bmpHeight, bmpWidth; |
60 | 60 |
private Static3D mScale; |
... | ... | |
186 | 186 |
mTexture[1].setTexture(bitmap1); |
187 | 187 |
mTexture[2].setTexture(bitmap2); |
188 | 188 |
|
189 |
if( mMesh==null ) mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
189 |
if( mMesh==null ) mMesh = new MeshRectangles(30,30*bmpHeight/bmpWidth);
|
|
190 | 190 |
|
191 | 191 |
mScreen.detachAll(); |
192 | 192 |
for(int i=NUM-1; i>=0; i--) mScreen.attach(mTexture[i], mEffects[i], mMesh); |
Also available in: Unified diff
Rename MeshFlat MeshRectangles.