Revision f2085b96
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java | ||
---|---|---|
36 | 36 |
import org.distorted.library.main.DistortedScreen; |
37 | 37 |
import org.distorted.library.main.DistortedTexture; |
38 | 38 |
import org.distorted.library.main.DistortedEffects; |
39 |
import org.distorted.library.mesh.MeshRectangles;
|
|
39 |
import org.distorted.library.mesh.MeshSquare;
|
|
40 | 40 |
import org.distorted.library.type.Dynamic3D; |
41 | 41 |
import org.distorted.library.type.Static1D; |
42 | 42 |
import org.distorted.library.type.Static3D; |
... | ... | |
56 | 56 |
private GLSurfaceView mView; |
57 | 57 |
private DistortedEffects[] mEffects; |
58 | 58 |
private DistortedTexture[] mTexture; |
59 |
private MeshRectangles mMesh;
|
|
59 |
private MeshSquare mMesh;
|
|
60 | 60 |
private DistortedScreen mScreen; |
61 | 61 |
private Static3D mScaleMatrix, mScaleVertex; |
62 | 62 |
private Static3D[] mMove; |
... | ... | |
159 | 159 |
mTexture[i].setTexture(bmp[i]); |
160 | 160 |
} |
161 | 161 |
|
162 |
if( mMesh==null ) mMesh = new MeshRectangles(30,30*bmpHeight/bmpWidth);
|
|
162 |
if( mMesh==null ) mMesh = new MeshSquare(30,30*bmpHeight/bmpWidth);
|
|
163 | 163 |
|
164 | 164 |
mScreen.detachAll(); |
165 | 165 |
for(int i=NUM-1; i>=0; i--) mScreen.attach(mTexture[i], mEffects[i], mMesh); |
Also available in: Unified diff
Rename Meshes.