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/monalisa/MonaLisaRenderer.java
32 32
import org.distorted.library.main.DistortedEffects;
33 33
import org.distorted.library.main.DistortedScreen;
34 34
import org.distorted.library.main.DistortedTexture;
35
import org.distorted.library.mesh.MeshRectangles;
35
import org.distorted.library.mesh.MeshSquare;
36 36
import org.distorted.library.type.Dynamic3D;
37 37
import org.distorted.library.type.Static3D;
38 38
import org.distorted.library.type.Static4D;
......
48 48
    private GLSurfaceView mView;
49 49
    private DistortedEffects mEffects;
50 50
    private DistortedTexture mTexture;
51
    private MeshRectangles mMesh;
51
    private MeshSquare mMesh;
52 52
    private DistortedScreen mScreen;
53 53
    private Static3D mScale;
54 54
    private float mBmpRatio;
......
146 146
      // effect to have vertices to distort. We multiply by mBmpRatio here so
147 147
      // that the Mesh's cells are as close to squares as possible (when they
148 148
      // finally be rendered with a Scale - see mScale)
149
      if( mMesh==null ) mMesh = new MeshRectangles(9, (int)(9*mBmpRatio) );
149
      if( mMesh==null ) mMesh = new MeshSquare(9, (int)(9*mBmpRatio) );
150 150

  
151 151
      // Every time activity goes to background, its OpenGL resources - including
152 152
      // Textures - get deleted. We always need to call setTexture() here to

Also available in: Unified diff