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/effectqueue/EffectQueueRenderer.java
31 31

  
32 32
import org.distorted.library.DistortedEffects;
33 33
import org.distorted.library.DistortedFramebuffer;
34
import org.distorted.library.GridFlat;
34
import org.distorted.library.MeshFlat;
35 35
import org.distorted.library.DistortedTexture;
36 36
import org.distorted.library.Distorted;
37 37
import org.distorted.library.EffectNames;
......
53 53
  private int texWidth, texHeight;
54 54

  
55 55
  private DistortedTexture mTexture;
56
  private GridFlat mGrid;
56
  private MeshFlat mMesh;
57 57
  private DistortedEffects mEffects;
58 58
  private DistortedFramebuffer mScreen;
59 59

  
......
71 71
    texWidth = BWID;
72 72
    texHeight= BHEI;
73 73

  
74
    mGrid    = new GridFlat(80,80*texHeight/texWidth);
74
    mMesh = new MeshFlat(80,80*texHeight/texWidth);
75 75
    mTexture = new DistortedTexture(texWidth,texHeight);
76 76
    mEffects = new DistortedEffects();
77 77

  
......
130 130
  public void onDrawFrame(GL10 glUnused)
131 131
    {   
132 132
    GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
133
    mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
133
    mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
134 134
    }
135 135

  
136 136
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff