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/matrix3d/Matrix3DRenderer.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.GridObject;
28
import org.distorted.library.MeshObject;
29 29
import org.distorted.library.DistortedTexture;
30 30

  
31 31
import javax.microedition.khronos.egl.EGLConfig;
......
39 39
    private DistortedTexture mTexture;
40 40
    private DistortedEffects mEffects;
41 41
    private DistortedFramebuffer mScreen;
42
    private GridObject mGrid;
42
    private MeshObject mMesh;
43 43

  
44 44
    private int mWidth, mHeight;
45 45

  
......
53 53

  
54 54
      mEffects= act.getEffects();
55 55
      mTexture= act.getTexture();
56
      mGrid   = act.getGrid();
56
      mMesh = act.getGrid();
57 57
      mScreen = new DistortedFramebuffer(0);
58 58
      }
59 59

  
......
62 62
    public void onDrawFrame(GL10 glUnused)
63 63
      {
64 64
      GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
65
      mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
65
      mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
66 66
      }
67 67

  
68 68
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff