Revision f3ca895f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java | ||
---|---|---|
36 | 36 |
import org.distorted.library.main.DistortedLibrary; |
37 | 37 |
import org.distorted.library.main.DistortedEffects; |
38 | 38 |
import org.distorted.library.main.DistortedScreen; |
39 |
import org.distorted.library.mesh.MeshFlat;
|
|
39 |
import org.distorted.library.mesh.MeshRectangles;
|
|
40 | 40 |
import org.distorted.library.main.DistortedTexture; |
41 | 41 |
import org.distorted.library.type.Static3D; |
42 | 42 |
|
... | ... | |
54 | 54 |
private DistortedEffects mEffects; |
55 | 55 |
private DistortedTexture mTexture; |
56 | 56 |
private DistortedScreen mScreen; |
57 |
private MeshFlat mMesh;
|
|
57 |
private MeshRectangles mMesh;
|
|
58 | 58 |
private AroundTheWorldEffectsManager mManager; |
59 | 59 |
private int mObjWidth, mObjHeight; |
60 | 60 |
private Static3D mMove, mScale; |
... | ... | |
139 | 139 |
if( mTexture==null ) mTexture = new DistortedTexture(mObjWidth,mObjHeight); |
140 | 140 |
mTexture.setTexture(bitmap); |
141 | 141 |
|
142 |
if( mMesh==null ) mMesh = new MeshFlat(30,30*mObjHeight/mObjWidth);
|
|
142 |
if( mMesh==null ) mMesh = new MeshRectangles(30,30*mObjHeight/mObjWidth);
|
|
143 | 143 |
|
144 | 144 |
mScreen.detachAll(); |
145 | 145 |
mScreen.attach(mTexture, mEffects, mMesh); |
Also available in: Unified diff
Rename MeshFlat MeshRectangles.