Revision f2085b96
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java | ||
---|---|---|
41 | 41 |
import org.distorted.library.main.DistortedScreen; |
42 | 42 |
import org.distorted.library.main.DistortedTexture; |
43 | 43 |
import org.distorted.library.main.DistortedEffects; |
44 |
import org.distorted.library.mesh.MeshRectangles;
|
|
44 |
import org.distorted.library.mesh.MeshSquare;
|
|
45 | 45 |
import org.distorted.library.type.Static3D; |
46 | 46 |
|
47 | 47 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
57 | 57 |
private DistortedEffects mEffects; |
58 | 58 |
private DistortedTexture mTexture; |
59 | 59 |
private DistortedScreen mScreen; |
60 |
private MeshRectangles mMesh;
|
|
60 |
private MeshSquare mMesh;
|
|
61 | 61 |
private boolean mRefresh; |
62 | 62 |
private Static3D mScaleMatrix, mScaleVertex; |
63 | 63 |
|
... | ... | |
157 | 157 |
mCanvas = new Canvas(mBitmap); |
158 | 158 |
|
159 | 159 |
if( mMesh!=null ) mMesh.markForDeletion(); |
160 |
mMesh = new MeshRectangles(80,80*texH/texW);
|
|
160 |
mMesh = new MeshSquare(80,80*texH/texW);
|
|
161 | 161 |
|
162 | 162 |
mScreen.detachAll(); |
163 | 163 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename Meshes.