Revision f3ca895f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java | ||
---|---|---|
35 | 35 |
import org.distorted.library.main.DistortedLibrary; |
36 | 36 |
import org.distorted.library.main.DistortedEffects; |
37 | 37 |
import org.distorted.library.main.DistortedScreen; |
38 |
import org.distorted.library.mesh.MeshFlat;
|
|
38 |
import org.distorted.library.mesh.MeshRectangles;
|
|
39 | 39 |
import org.distorted.library.main.DistortedTexture; |
40 | 40 |
import org.distorted.library.type.Dynamic1D; |
41 | 41 |
import org.distorted.library.type.Dynamic3D; |
... | ... | |
56 | 56 |
private GLSurfaceView mView; |
57 | 57 |
private DistortedEffects[] mEffects; |
58 | 58 |
private DistortedTexture mTexture; |
59 |
private MeshFlat mMesh;
|
|
59 |
private MeshRectangles mMesh;
|
|
60 | 60 |
private DistortedScreen mScreen; |
61 | 61 |
private int bmpHeight, bmpWidth; |
62 | 62 |
private Static3D mScale; |
... | ... | |
173 | 173 |
bmpHeight = bitmap.getHeight(); |
174 | 174 |
bmpWidth = bitmap.getWidth(); |
175 | 175 |
|
176 |
if( mMesh==null ) mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
176 |
if( mMesh==null ) mMesh = new MeshRectangles(30,30*bmpHeight/bmpWidth);
|
|
177 | 177 |
if( mTexture==null ) mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
178 | 178 |
mTexture.setTexture(bitmap); |
179 | 179 |
|
Also available in: Unified diff
Rename MeshFlat MeshRectangles.