Revision f3ca895f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/projection/ProjectionRenderer.java | ||
---|---|---|
26 | 26 |
import org.distorted.library.main.DistortedLibrary; |
27 | 27 |
import org.distorted.library.main.DistortedEffects; |
28 | 28 |
import org.distorted.library.main.DistortedScreen; |
29 |
import org.distorted.library.mesh.MeshFlat;
|
|
29 |
import org.distorted.library.mesh.MeshRectangles;
|
|
30 | 30 |
import org.distorted.library.main.DistortedTexture; |
31 | 31 |
import org.distorted.library.type.Static3D; |
32 | 32 |
import org.distorted.library.type.Static4D; |
... | ... | |
44 | 44 |
private GLSurfaceView mView; |
45 | 45 |
private DistortedEffects mEffects; |
46 | 46 |
private DistortedScreen mScreen; |
47 |
private MeshFlat mMesh;
|
|
47 |
private MeshRectangles mMesh;
|
|
48 | 48 |
private DistortedTexture mTexture; |
49 | 49 |
private float mF, mNear; |
50 | 50 |
|
... | ... | |
140 | 140 |
// likewise with the Mesh |
141 | 141 |
if( mMesh!=null ) mMesh.markForDeletion(); |
142 | 142 |
|
143 |
mMesh = new MeshFlat(100,100*height/width);
|
|
143 |
mMesh = new MeshRectangles(100,100*height/width);
|
|
144 | 144 |
|
145 | 145 |
mScreen.detachAll(); |
146 | 146 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename MeshFlat MeshRectangles.