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/monalisa/MonaLisaRenderer.java
30 30
import org.distorted.library.DistortedEffects;
31 31
import org.distorted.library.DistortedFramebuffer;
32 32
import org.distorted.library.DistortedTexture;
33
import org.distorted.library.GridFlat;
33
import org.distorted.library.MeshFlat;
34 34
import org.distorted.library.EffectTypes;
35 35
import org.distorted.library.type.Dynamic3D;
36 36
import org.distorted.library.type.Static3D;
......
49 49
    private DistortedTexture mTexture;
50 50
    private DistortedEffects mEffects;
51 51
    private DistortedFramebuffer mScreen;
52
    private GridFlat mGrid;
52
    private MeshFlat mMesh;
53 53
    private int bmpHeight, bmpWidth;
54 54

  
55 55
///////////////////////////////////////////////////////////////////////////////////////////////////
......
82 82
    public void onDrawFrame(GL10 glUnused) 
83 83
      {
84 84
      GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
85
      mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
85
      mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
86 86
      }
87 87

  
88 88
///////////////////////////////////////////////////////////////////////////////////////////////////
......
134 134
      bmpHeight = bitmap.getHeight();
135 135
      bmpWidth  = bitmap.getWidth();
136 136

  
137
      mGrid = new GridFlat(9,9*bmpHeight/bmpWidth);
137
      mMesh = new MeshFlat(9,9*bmpHeight/bmpWidth);
138 138
      mTexture = new DistortedTexture(bmpWidth,bmpHeight);
139 139
      mTexture.setTexture(bitmap);
140 140

  

Also available in: Unified diff