Revision f3ca895f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/listener/ListenerRenderer.java | ||
---|---|---|
34 | 34 |
import org.distorted.library.effect.VertexEffectDistort; |
35 | 35 |
import org.distorted.library.main.DistortedLibrary; |
36 | 36 |
import org.distorted.library.main.DistortedScreen; |
37 |
import org.distorted.library.mesh.MeshFlat;
|
|
37 |
import org.distorted.library.mesh.MeshRectangles;
|
|
38 | 38 |
import org.distorted.library.main.DistortedTexture; |
39 | 39 |
import org.distorted.library.main.DistortedEffects; |
40 | 40 |
import org.distorted.library.type.Dynamic3D; |
... | ... | |
56 | 56 |
private DistortedEffects mEffects; |
57 | 57 |
private DistortedScreen mScreen; |
58 | 58 |
private DistortedTexture mTexture; |
59 |
private MeshFlat mMesh;
|
|
59 |
private MeshRectangles mMesh;
|
|
60 | 60 |
private int bmpHeight, bmpWidth; |
61 | 61 |
private Random mRnd; |
62 | 62 |
private Static3D mMove, mScale; |
... | ... | |
165 | 165 |
if( mTexture==null ) mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
166 | 166 |
mTexture.setTexture(bitmap); |
167 | 167 |
|
168 |
if( mMesh==null ) mMesh = new MeshFlat(50,50*bmpHeight/bmpWidth);
|
|
168 |
if( mMesh==null ) mMesh = new MeshRectangles(50,50*bmpHeight/bmpWidth);
|
|
169 | 169 |
|
170 | 170 |
mScreen.detachAll(); |
171 | 171 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename MeshFlat MeshRectangles.