Revision f3ca895f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
34 | 34 |
import org.distorted.library.main.DistortedScreen; |
35 | 35 |
import org.distorted.library.main.DistortedLibrary; |
36 | 36 |
import org.distorted.library.main.DistortedTexture; |
37 |
import org.distorted.library.mesh.MeshFlat;
|
|
37 |
import org.distorted.library.mesh.MeshRectangles;
|
|
38 | 38 |
import org.distorted.library.type.Dynamic3D; |
39 | 39 |
import org.distorted.library.type.Static3D; |
40 | 40 |
import org.distorted.library.type.Static4D; |
... | ... | |
51 | 51 |
private DistortedEffects mEffects; |
52 | 52 |
private DistortedScreen mScreen; |
53 | 53 |
private DistortedTexture mTexture; |
54 |
private MeshFlat mMesh;
|
|
54 |
private MeshRectangles mMesh;
|
|
55 | 55 |
private int mObjHeight, mObjWidth; |
56 | 56 |
private Static3D mMove, mScale; |
57 | 57 |
|
... | ... | |
151 | 151 |
|
152 | 152 |
if( mTexture==null ) mTexture = new DistortedTexture(mObjWidth,mObjHeight); |
153 | 153 |
mTexture.setTexture(bitmap); |
154 |
if( mMesh==null ) mMesh = new MeshFlat(25,25*mObjHeight/mObjWidth);
|
|
154 |
if( mMesh==null ) mMesh = new MeshRectangles(25,25*mObjHeight/mObjWidth);
|
|
155 | 155 |
|
156 | 156 |
mScreen.detachAll(); |
157 | 157 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename MeshFlat MeshRectangles.