Revision f3ca895f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
33 | 33 |
import org.distorted.library.main.DistortedLibrary; |
34 | 34 |
import org.distorted.library.main.DistortedEffects; |
35 | 35 |
import org.distorted.library.main.DistortedScreen; |
36 |
import org.distorted.library.mesh.MeshFlat;
|
|
36 |
import org.distorted.library.mesh.MeshRectangles;
|
|
37 | 37 |
import org.distorted.library.main.DistortedTexture; |
38 | 38 |
import org.distorted.library.type.Dynamic1D; |
39 | 39 |
import org.distorted.library.type.Static1D; |
... | ... | |
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 bmpHeight, bmpWidth; |
56 | 56 |
private Static3D mScale, mMove; |
57 | 57 |
|
... | ... | |
131 | 131 |
|
132 | 132 |
if( mTexture==null ) mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
133 | 133 |
mTexture.setTexture(bitmap); |
134 |
if( mMesh==null ) mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
134 |
if( mMesh==null ) mMesh = new MeshRectangles(30,30*bmpHeight/bmpWidth);
|
|
135 | 135 |
|
136 | 136 |
mScreen.detachAll(); |
137 | 137 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename MeshFlat MeshRectangles.