Project

General

Profile

« Previous | Next » 

Revision bc29e409

Added by Leszek Koltunski over 7 years ago

Again change of API. Now instead of the 'DistortedEffects.draw() and DistortedTree.draw()' we have 'DistortedFramebuffer.renderTo()'

View differences:

src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java
23 23
import android.graphics.BitmapFactory;
24 24
import android.opengl.GLES20;
25 25
import android.opengl.GLSurfaceView;
26
import android.provider.Settings;
26 27

  
27 28
import org.distorted.examples.R;
28 29
import org.distorted.library.Distorted;
......
77 78
   public void onDrawFrame(GL10 glUnused) 
78 79
      {
79 80
      GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
80
      mEffects.draw(System.currentTimeMillis(), mTexture, mGrid, mScreen);
81
      mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
81 82
      }
82 83

  
83 84
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff