Revision f2085b96
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
35 | 35 |
import org.distorted.library.effect.VertexEffectSwirl; |
36 | 36 |
import org.distorted.library.main.DistortedLibrary; |
37 | 37 |
import org.distorted.library.main.DistortedScreen; |
38 |
import org.distorted.library.mesh.MeshRectangles;
|
|
38 |
import org.distorted.library.mesh.MeshSquare;
|
|
39 | 39 |
import org.distorted.library.main.DistortedTexture; |
40 | 40 |
import org.distorted.library.main.DistortedEffects; |
41 | 41 |
import org.distorted.library.type.Dynamic1D; |
... | ... | |
56 | 56 |
private DistortedEffects mEffects; |
57 | 57 |
private DistortedScreen mScreen; |
58 | 58 |
private DistortedTexture mTexture; |
59 |
private MeshRectangles mMesh;
|
|
59 |
private MeshSquare mMesh;
|
|
60 | 60 |
private Static3D v0,v1,v2,v3; |
61 | 61 |
private Static1D dBegin, dMiddle, dEnd, s0; |
62 | 62 |
private Static3D mScaleMatrix, mScaleVertex; |
... | ... | |
200 | 200 |
|
201 | 201 |
mScaleVertex.set(1.0f,mBmpRatio,1.0f); |
202 | 202 |
|
203 |
if( mMesh==null ) mMesh = new MeshRectangles(30, (int)(30*mBmpRatio));
|
|
203 |
if( mMesh==null ) mMesh = new MeshSquare(30, (int)(30*mBmpRatio));
|
|
204 | 204 |
|
205 | 205 |
mScreen.detachAll(); |
206 | 206 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Rename Meshes.