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/objecttree/ObjectTreeRenderer.java
38 38
import org.distorted.library.main.DistortedScreen;
39 39
import org.distorted.library.main.DistortedLibrary;
40 40
import org.distorted.library.mesh.MeshCubes;
41
import org.distorted.library.mesh.MeshFlat;
41
import org.distorted.library.mesh.MeshRectangles;
42 42
import org.distorted.library.main.DistortedTexture;
43 43
import org.distorted.library.type.Dynamic;
44 44
import org.distorted.library.type.Dynamic1D;
......
60 60
   private DistortedTexture mLisaTexture, mGridTexture;
61 61
   private DistortedScreen mScreen;
62 62
   private DistortedNode mRoot;
63
   private MeshFlat mMeshFlat;
63
   private MeshRectangles mMeshRectangles;
64 64
   private MeshCubes mMeshCubes;
65 65
   private int lisaHeight, lisaWidth;
66 66
   private boolean mDepth;
......
186 186
      final Static4D mapLR = new Static4D(0.0f,0.0f,1.0f/GRID,1.0f     );
187 187
      final Static4D mapTB = new Static4D(0.0f,0.0f,1.0f     ,1.0f/GRID);
188 188

  
189
      if( mMeshFlat==null ) mMeshFlat = new MeshFlat(1,1);
189
      if( mMeshRectangles ==null ) mMeshRectangles = new MeshRectangles(1,1);
190 190
      if( mMeshCubes==null) mMeshCubes= new MeshCubes(GRID,GRID,1, mapFB, mapFB, mapLR, mapLR, mapTB, mapTB);
191 191

  
192 192
      int gridDepth = mGridTexture.getDepth(mMeshCubes);
193 193

  
194
      mRoot = new DistortedNode(mLisaTexture, mEffects, mMeshFlat);
194
      mRoot = new DistortedNode(mLisaTexture, mEffects, mMeshRectangles);
195 195
      mRoot.attach(mGridTexture,gridEffects,mMeshCubes);
196 196

  
197 197
      setDepthPriv();

Also available in: Unified diff