Project

General

Profile

« Previous | Next » 

Revision 98b6b975

Added by Leszek Koltunski almost 5 years ago

Fix for MeshBase.apply()

View differences:

src/main/java/org/distorted/examples/meshjoin/MeshJoinRenderer.java
24 24
import android.opengl.GLSurfaceView;
25 25

  
26 26
import org.distorted.examples.R;
27
import org.distorted.library.effect.MatrixEffect;
27 28
import org.distorted.library.effect.MatrixEffectMove;
28 29
import org.distorted.library.effect.MatrixEffectQuaternion;
29 30
import org.distorted.library.effect.MatrixEffectScale;
......
151 152

  
152 153
    private MeshBase createJoinedMesh()
153 154
      {
154
      return new MeshQuad();
155
      MatrixEffect[] effects = new MatrixEffect[1];
156
      effects[0] = new MatrixEffectMove(new Static3D(0,0,0.5f));
157

  
158
      MeshBase mesh = new MeshQuad();
159
      mesh.apply(effects);
160

  
161
      return mesh;
155 162
      }
156 163
}

Also available in: Unified diff