Revision f2085b96
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/surfaceview/RenderThread.java | ||
---|---|---|
35 | 35 |
import org.distorted.library.main.DistortedLibrary; |
36 | 36 |
import org.distorted.library.main.DistortedEffects; |
37 | 37 |
import org.distorted.library.main.DistortedScreen; |
38 |
import org.distorted.library.mesh.MeshRectangles;
|
|
38 |
import org.distorted.library.mesh.MeshSquare;
|
|
39 | 39 |
import org.distorted.library.main.DistortedTexture; |
40 | 40 |
import org.distorted.library.type.Dynamic3D; |
41 | 41 |
import org.distorted.library.type.Static3D; |
... | ... | |
65 | 65 |
|
66 | 66 |
private DistortedEffects mEffects; |
67 | 67 |
private DistortedTexture mTexture; |
68 |
private MeshRectangles mMesh;
|
|
68 |
private MeshSquare mMesh;
|
|
69 | 69 |
private DistortedScreen mScreen; |
70 | 70 |
private SurfaceView mView; |
71 | 71 |
private static boolean resourcesCreated = false; |
... | ... | |
247 | 247 |
if( mTexture==null ) mTexture = new DistortedTexture(); |
248 | 248 |
mTexture.setTexture(bmp); |
249 | 249 |
|
250 |
if( mMesh==null ) mMesh = new MeshRectangles(9,(int)(9*mBmpRatio));
|
|
250 |
if( mMesh==null ) mMesh = new MeshSquare(9,(int)(9*mBmpRatio));
|
|
251 | 251 |
|
252 | 252 |
mScreen.detachAll(); |
253 | 253 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename Meshes.