Project

General

Profile

« Previous | Next » 

Revision 334c13fa

Added by Leszek Koltunski over 7 years ago

Make the effect Center be always 3D.

View differences:

src/main/java/org/distorted/examples/matrix3d/Matrix3DRenderer.java
36 36
    private GLSurfaceView mView;
37 37
    private DistortedObject mObject;
38 38

  
39
    private int mWidth, mHeight;
40

  
39 41
///////////////////////////////////////////////////////////////////////////////////////////////////
40 42

  
41 43
    Matrix3DRenderer(GLSurfaceView v)
......
56 58
      mObject.draw(time);
57 59
      }
58 60

  
61
///////////////////////////////////////////////////////////////////////////////////////////////////
62

  
63
    public int getWidth()
64
      {
65
      return mWidth;
66
      }
67

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

  
70
    public int getHeight()
71
      {
72
      return mHeight;
73
      }
74

  
59 75
///////////////////////////////////////////////////////////////////////////////////////////////////
60 76

  
61 77
    public void onSurfaceChanged(GL10 glUnused, int width, int height)
62 78
      {
63 79
      mObject.abortEffects(EffectTypes.MATRIX);
64 80

  
81
      mWidth = width;
82
      mHeight= height;
83

  
65 84
      Distorted.onSurfaceChanged(width, height);
66 85
      }
67 86

  

Also available in: Unified diff