Revision f2085b96
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
33 | 33 |
import org.distorted.library.main.DistortedScreen; |
34 | 34 |
import org.distorted.library.main.DistortedLibrary; |
35 | 35 |
import org.distorted.library.main.DistortedTexture; |
36 |
import org.distorted.library.mesh.MeshRectangles;
|
|
36 |
import org.distorted.library.mesh.MeshSquare;
|
|
37 | 37 |
import org.distorted.library.type.Dynamic3D; |
38 | 38 |
import org.distorted.library.type.Static3D; |
39 | 39 |
import org.distorted.library.type.Static4D; |
... | ... | |
50 | 50 |
private DistortedEffects mEffects; |
51 | 51 |
private DistortedScreen mScreen; |
52 | 52 |
private DistortedTexture mTexture; |
53 |
private MeshRectangles mMesh;
|
|
53 |
private MeshSquare mMesh;
|
|
54 | 54 |
private Static3D mScale; |
55 | 55 |
private float mBmpRatio; |
56 | 56 |
|
... | ... | |
155 | 155 |
|
156 | 156 |
yLoc[height] = (height-(height-1)*PART)/height; |
157 | 157 |
|
158 |
if( mMesh==null ) mMesh = new MeshRectangles(xLoc,yLoc);
|
|
158 |
if( mMesh==null ) mMesh = new MeshSquare(xLoc,yLoc);
|
|
159 | 159 |
|
160 | 160 |
mScreen.detachAll(); |
161 | 161 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename Meshes.