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/check/CheckRenderer.java
30 30
import org.distorted.library.Distorted;
31 31
import org.distorted.library.DistortedEffects;
32 32
import org.distorted.library.DistortedFramebuffer;
33
import org.distorted.library.DistortedScreen;
33 34
import org.distorted.library.DistortedTexture;
34 35
import org.distorted.library.MeshFlat;
35 36
import org.distorted.library.EffectTypes;
......
59 60
    private DistortedTexture mTexture;
60 61
    private DistortedEffects mEffects;
61 62
    private MeshFlat mMesh;
62
    private DistortedFramebuffer mScreen;
63
    private DistortedScreen mScreen;
63 64
    private int bmpHeight, bmpWidth;
64 65

  
65 66
///////////////////////////////////////////////////////////////////////////////////////////////////
......
74 75
      DistortedEffects.setMaxVertex(act.getMaxV());
75 76
      DistortedEffects.setMaxFragment(act.getMaxF());
76 77

  
77
      mScreen = new DistortedFramebuffer(0);
78
      mScreen = new DistortedScreen();
78 79
      }
79 80

  
80 81
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff