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/bean/BeanRenderer.java
32 32
import org.distorted.library.EffectTypes;
33 33
import org.distorted.library.Distorted;
34 34
import org.distorted.library.DistortedTexture;
35
import org.distorted.library.GridFlat;
35
import org.distorted.library.MeshFlat;
36 36
import org.distorted.library.type.Dynamic3D;
37 37
import org.distorted.library.type.Static3D;
38 38
import org.distorted.library.type.Static4D;
......
50 50
   private DistortedTexture mTexture;
51 51
   private DistortedEffects mEffects;
52 52
   private DistortedFramebuffer mScreen;
53
   private GridFlat mGrid;
53
   private MeshFlat mMesh;
54 54
   private int bmpHeight, bmpWidth;
55 55
    
56 56
///////////////////////////////////////////////////////////////////////////////////////////////////
......
97 97
    public void onDrawFrame(GL10 glUnused) 
98 98
      {
99 99
      GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
100
      mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
100
      mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
101 101
      }
102 102

  
103 103
///////////////////////////////////////////////////////////////////////////////////////////////////
......
153 153
      
154 154
      mTexture = new DistortedTexture(bmpWidth,bmpHeight);
155 155
      mTexture.setTexture(bitmap);
156
      mGrid = new GridFlat(25,25*bmpHeight/bmpWidth);
156
      mMesh = new MeshFlat(25,25*bmpHeight/bmpWidth);
157 157

  
158 158
      try
159 159
        {

Also available in: Unified diff