Project

General

Profile

« Previous | Next » 

Revision b01acdaf

Added by Leszek Koltunski over 7 years ago

Rename Grid to Mesh

View differences:

src/main/java/org/distorted/examples/projection/ProjectionRenderer.java
25 25
import org.distorted.library.Distorted;
26 26
import org.distorted.library.DistortedEffects;
27 27
import org.distorted.library.DistortedFramebuffer;
28
import org.distorted.library.GridFlat;
28
import org.distorted.library.MeshFlat;
29 29
import org.distorted.library.DistortedTexture;
30 30
import org.distorted.library.type.Static3D;
31 31
import org.distorted.library.type.Static4D;
......
45 45
   private DistortedTexture mTexture;
46 46
   private DistortedEffects mEffects;
47 47
   private DistortedFramebuffer mScreen;
48
   private GridFlat mGrid;
48
   private MeshFlat mMesh;
49 49

  
50 50
   private float mF, mX, mY;
51 51
   private int mWidth, mHeight;
......
91 91
   public void onDrawFrame(GL10 glUnused) 
92 92
      {
93 93
      GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
94
      mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
94
      mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
95 95
      }
96 96

  
97 97
///////////////////////////////////////////////////////////////////////////////////////////////////
......
106 106

  
107 107
      Paint paint = new Paint();
108 108
      mTexture    = new DistortedTexture(width,height);
109
      mGrid       = new GridFlat(50,50*height/width);
109
      mMesh = new MeshFlat(50,50*height/width);
110 110
      Bitmap bmp  = Bitmap.createBitmap(width,height, Bitmap.Config.ARGB_8888);
111 111
      Canvas bmpCanvas = new Canvas(bmp);
112 112

  

Also available in: Unified diff