Project

General

Profile

« Previous | Next » 

Revision f2085b96

Added by Leszek Koltunski over 3 years ago

Rename Meshes.

View differences:

src/main/java/org/distorted/examples/projection/ProjectionRenderer.java
27 27
import org.distorted.library.main.DistortedLibrary;
28 28
import org.distorted.library.main.DistortedEffects;
29 29
import org.distorted.library.main.DistortedScreen;
30
import org.distorted.library.mesh.MeshRectangles;
30
import org.distorted.library.mesh.MeshSquare;
31 31
import org.distorted.library.main.DistortedTexture;
32 32
import org.distorted.library.type.Static1D;
33 33
import org.distorted.library.type.Static3D;
......
46 46
   private GLSurfaceView mView;
47 47
   private DistortedEffects mEffects;
48 48
   private DistortedScreen mScreen;
49
   private MeshRectangles mMesh;
49
   private MeshSquare mMesh;
50 50
   private DistortedTexture mTexture;
51 51
   private float mF, mNear;
52 52
   private Static3D mScale;
......
133 133
      mTexture.setTexture(bmp);
134 134

  
135 135
      if( mMesh!=null )  mMesh.markForDeletion();
136
      mMesh = new MeshRectangles(100,100*height/width);
136
      mMesh = new MeshSquare(100,100*height/width);
137 137

  
138 138
      mScreen.detachAll();
139 139
      mScreen.attach(mTexture,mEffects,mMesh);

Also available in: Unified diff