Project

General

Profile

« Previous | Next » 

Revision 7589635e

Added by Leszek Koltunski almost 8 years ago

Major push towards simplifying DistortedObject's public API.
All MATRIX effects are using the new API - the 'DataND' marker interfaces.

View differences:

src/main/java/org/distorted/examples/scratchpad/ScratchpadRenderer.java
32 32
import org.distorted.library.DistortedBitmap;
33 33
import org.distorted.library.Distorted;
34 34
import org.distorted.library.EffectTypes;
35
import org.distorted.library.type.Static3D;
35 36

  
36 37
///////////////////////////////////////////////////////////////////////////////////////////////////
37 38

  
......
96 97
  public void onSurfaceChanged(GL10 glUnused, int width, int height)
97 98
    {
98 99
    mBackground.abortEffects(EffectTypes.MATRIX);
99
    mBackground.scale((float)width/texWidth,(float)height/texHeight,1);
100
    mBackground.scale( new Static3D((float)width/texWidth,(float)height/texHeight,1) );
100 101
    Distorted.onSurfaceChanged(width,height);
101 102
    ScratchpadSurfaceView.setScreenSize(width,height);     
102 103
    }

Also available in: Unified diff