Project

General

Profile

« Previous | Next » 

Revision 8c1caf83

Added by Leszek Koltunski about 7 years ago

Revert "Convert next 4 APPs to the new Matrix effects."

This reverts commit 39a0d81b7482f2925808d661e526aeaa980fb079.

View differences:

src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java
98 98
    
99 99
  public void onSurfaceChanged(GL10 glUnused, int width, int height) 
100 100
    {
101
    float q= (float)width/height;
101
    float qx = (float)width ;
102
    float qy = (float)height;
102 103
    float scale = 0.5f;
103 104

  
104 105
    mEffects.abortEffects(EffectTypes.MATRIX);
105 106
    mEffects.quaternion( mRot, new Static3D(0,0,0) );
106
    mEffects.scale(  q<1 ? (new Static3D(scale,scale*q,scale)) : (new Static3D(scale/q,scale,scale/q)) );
107
    mEffects.scale(  qx<qy ? (new Static3D(scale,scale*qx/qy,scale)) : (new Static3D(scale*qy/qx,scale,scale)) );
107 108

  
108 109
    mScreen.resize(width, height);
109 110
    }

Also available in: Unified diff