Revision f2085b96
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
37 | 37 |
import org.distorted.library.main.DistortedEffects; |
38 | 38 |
import org.distorted.library.main.DistortedScreen; |
39 | 39 |
import org.distorted.library.main.DistortedTexture; |
40 |
import org.distorted.library.mesh.MeshRectangles;
|
|
40 |
import org.distorted.library.mesh.MeshSquare;
|
|
41 | 41 |
import org.distorted.library.type.Dynamic3D; |
42 | 42 |
import org.distorted.library.type.Static1D; |
43 | 43 |
import org.distorted.library.type.Static3D; |
... | ... | |
63 | 63 |
private GLSurfaceView mView; |
64 | 64 |
private DistortedEffects mEffects; |
65 | 65 |
private DistortedTexture mTexture; |
66 |
private MeshRectangles mMesh;
|
|
66 |
private MeshSquare mMesh;
|
|
67 | 67 |
private DistortedScreen mScreen; |
68 | 68 |
private int mObjHeight, mObjWidth; |
69 | 69 |
private Static3D mScaleMatrix, mScaleVertex, mSwirl1, mSwirl2, mDeform1, mDeform2; |
... | ... | |
189 | 189 |
mRadius.set(mObjWidth*0.5f); |
190 | 190 |
mScaleVertex.set(mObjWidth,mObjHeight,0); |
191 | 191 |
|
192 |
if( mMesh ==null ) mMesh = new MeshRectangles(30,30*mObjHeight/mObjWidth);
|
|
192 |
if( mMesh ==null ) mMesh = new MeshSquare(30,30*mObjHeight/mObjWidth);
|
|
193 | 193 |
if( mTexture==null ) mTexture = new DistortedTexture(); |
194 | 194 |
mTexture.setTexture(bitmap); |
195 | 195 |
|
Also available in: Unified diff
Rename Meshes.