Revision f2085b96
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
32 | 32 |
import org.distorted.library.main.DistortedLibrary; |
33 | 33 |
import org.distorted.library.main.DistortedEffects; |
34 | 34 |
import org.distorted.library.main.DistortedScreen; |
35 |
import org.distorted.library.mesh.MeshRectangles;
|
|
35 |
import org.distorted.library.mesh.MeshSquare;
|
|
36 | 36 |
import org.distorted.library.main.DistortedTexture; |
37 | 37 |
import org.distorted.library.type.Dynamic1D; |
38 | 38 |
import org.distorted.library.type.Static1D; |
... | ... | |
51 | 51 |
private DistortedEffects mEffects; |
52 | 52 |
private DistortedScreen mScreen; |
53 | 53 |
private DistortedTexture mTexture; |
54 |
private MeshRectangles mMesh;
|
|
54 |
private MeshSquare mMesh;
|
|
55 | 55 |
private Static3D mScale; |
56 | 56 |
private float mBmpRatio; |
57 | 57 |
|
... | ... | |
119 | 119 |
|
120 | 120 |
mTexture.setTexture(bitmap); |
121 | 121 |
|
122 |
if( mMesh==null ) mMesh = new MeshRectangles(30,(int)(30*mBmpRatio));
|
|
122 |
if( mMesh==null ) mMesh = new MeshSquare(30,(int)(30*mBmpRatio));
|
|
123 | 123 |
|
124 | 124 |
mScreen.detachAll(); |
125 | 125 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename Meshes.