Revision f3ca895f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
34 | 34 |
import org.distorted.library.effect.VertexEffectSwirl; |
35 | 35 |
import org.distorted.library.main.DistortedLibrary; |
36 | 36 |
import org.distorted.library.main.DistortedScreen; |
37 |
import org.distorted.library.mesh.MeshFlat;
|
|
37 |
import org.distorted.library.mesh.MeshRectangles;
|
|
38 | 38 |
import org.distorted.library.main.DistortedTexture; |
39 | 39 |
import org.distorted.library.main.DistortedEffects; |
40 | 40 |
import org.distorted.library.type.Dynamic1D; |
... | ... | |
55 | 55 |
private DistortedEffects mEffects; |
56 | 56 |
private DistortedScreen mScreen; |
57 | 57 |
private DistortedTexture mTexture; |
58 |
private MeshFlat mMesh;
|
|
58 |
private MeshRectangles mMesh;
|
|
59 | 59 |
private Static3D v0,v1,v2,v3; |
60 | 60 |
private Static1D dBegin, dMiddle, dEnd, s0; |
61 | 61 |
private int bmpHeight, bmpWidth; |
... | ... | |
213 | 213 |
if( mTexture==null ) mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
214 | 214 |
mTexture.setTexture(bitmap); |
215 | 215 |
|
216 |
if( mMesh==null ) mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
216 |
if( mMesh==null ) mMesh = new MeshRectangles(30,30*bmpHeight/bmpWidth);
|
|
217 | 217 |
|
218 | 218 |
mScreen.detachAll(); |
219 | 219 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename MeshFlat MeshRectangles.