Project

General

Profile

« Previous | Next » 

Revision d218d64e

Added by Leszek Koltunski about 7 years ago

Major: change of API.

Split DFramebuffer into Framebuffer and Screen; introduce the 'DistortedInputSurface' and 'DistortedOutputSurface' interfaces.

View differences:

src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java
29 29

  
30 30
import org.distorted.library.Distorted;
31 31
import org.distorted.library.DistortedFramebuffer;
32
import org.distorted.library.DistortedScreen;
32 33
import org.distorted.library.DistortedTexture;
33 34
import org.distorted.library.DistortedEffects;
34 35
import org.distorted.library.MeshFlat;
......
53 54
   private DistortedTexture[] mTexture;
54 55
   private DistortedEffects[] mEffects;
55 56
   private MeshFlat mMesh;
56
   private DistortedFramebuffer mScreen;
57
   private DistortedScreen mScreen;
57 58
   private int bmpHeight, bmpWidth;
58 59
    
59 60
///////////////////////////////////////////////////////////////////////////////////////////////////
......
77 78
      mEffects[0].sink( new Static1D(8), mPoint, new Static4D(0,0,80,80));  // enlarge the nose
78 79
      mEffects[0].distort(dDistort,mPoint);                                 // keep moving the whole bitmap left and right.
79 80

  
80
      mScreen = new DistortedFramebuffer(0);
81
      mScreen = new DistortedScreen();
81 82
      }
82 83

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

Also available in: Unified diff