Project

General

Profile

« Previous | Next » 

Revision f3ca895f

Added by Leszek Koltunski about 4 years ago

Rename MeshFlat MeshRectangles.

View differences:

src/main/java/org/distorted/examples/monalisa/MonaLisaRenderer.java
33 33
import org.distorted.library.main.DistortedEffects;
34 34
import org.distorted.library.main.DistortedScreen;
35 35
import org.distorted.library.main.DistortedTexture;
36
import org.distorted.library.mesh.MeshFlat;
36
import org.distorted.library.mesh.MeshRectangles;
37 37
import org.distorted.library.type.Dynamic3D;
38 38
import org.distorted.library.type.Static3D;
39 39
import org.distorted.library.type.Static4D;
......
49 49
    private GLSurfaceView mView;
50 50
    private DistortedEffects mEffects;
51 51
    private DistortedTexture mTexture;
52
    private MeshFlat mMesh;
52
    private MeshRectangles mMesh;
53 53
    private DistortedScreen mScreen;
54 54
    private int bmpHeight, bmpWidth;
55 55
    private Static3D mMove, mScale;
......
156 156
      if( mTexture==null ) mTexture = new DistortedTexture(bmpWidth,bmpHeight);
157 157

  
158 158
      // likewise the Mesh
159
      if( mMesh==null ) mMesh = new MeshFlat(9,9*bmpHeight/bmpWidth);
159
      if( mMesh==null ) mMesh = new MeshRectangles(9,9*bmpHeight/bmpWidth);
160 160

  
161 161
      // even if mTexture wasn't null, we still need to call setTexture() on it
162 162
      // because every time activity goes to background, its OpenGL resources

Also available in: Unified diff