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/listener/ListenerRenderer.java
30 30

  
31 31
import org.distorted.library.Distorted;
32 32
import org.distorted.library.DistortedFramebuffer;
33
import org.distorted.library.GridFlat;
33
import org.distorted.library.MeshFlat;
34 34
import org.distorted.library.DistortedTexture;
35 35
import org.distorted.library.DistortedEffects;
36 36
import org.distorted.library.EffectNames;
......
56 56
   private DistortedTexture mTexture;
57 57
   private DistortedEffects mEffects;
58 58
   private DistortedFramebuffer mScreen;
59
   private GridFlat mGrid;
59
   private MeshFlat mMesh;
60 60
   private int bmpHeight, bmpWidth;
61 61
   private Random mRnd;
62 62

  
......
106 106
    public void onDrawFrame(GL10 glUnused) 
107 107
      {
108 108
      GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
109
      mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
109
      mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
110 110
      }
111 111

  
112 112
///////////////////////////////////////////////////////////////////////////////////////////////////
......
160 160
      bmpHeight = bitmap.getHeight();
161 161
      bmpWidth  = bitmap.getWidth();
162 162

  
163
      mGrid    = new GridFlat(50,50*bmpHeight/bmpWidth);
163
      mMesh = new MeshFlat(50,50*bmpHeight/bmpWidth);
164 164
      mTexture = new DistortedTexture(bmpWidth,bmpHeight);
165 165
      mTexture.setTexture(bitmap);
166 166

  

Also available in: Unified diff