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/aroundtheworld/AroundTheWorldRenderer.java
28 28
import org.distorted.library.Distorted;
29 29
import org.distorted.library.DistortedEffects;
30 30
import org.distorted.library.DistortedFramebuffer;
31
import org.distorted.library.DistortedScreen;
31 32
import org.distorted.library.MeshFlat;
32 33
import org.distorted.library.DistortedTexture;
33 34
import org.distorted.library.EffectTypes;
......
47 48
   private DistortedEffects mEffects;
48 49
   private DistortedTexture mTexture;
49 50
   private MeshFlat mMesh;
50
   private DistortedFramebuffer mScreen;
51
   private DistortedScreen mScreen;
51 52
   private AroundTheWorldEffectsManager mManager;
52 53
   private int mObjWidth, mObjHeight;
53 54

  
......
62 63
      mManager = new AroundTheWorldEffectsManager();
63 64
      mEffects = new DistortedEffects();
64 65
      mManager.apply(mEffects);
65
      mScreen = new DistortedFramebuffer(0);
66
      mScreen = new DistortedScreen();
66 67
      }
67 68

  
68 69
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff