Project

General

Profile

« Previous | Next » 

Revision 6e7c8721

Added by Leszek Koltunski about 7 years ago

Simplifications.

View differences:

src/main/java/org/distorted/library/DistortedOutputSurface.java
55 55

  
56 56
  private long mTime;
57 57
  private float mFOV;
58
  int mWidth,mHeight,mDepth;
59 58
  float mDistance, mNear;
60 59
  float[] mProjectionMatrix;
61 60

  
......
118 117

  
119 118
        mDistance    = mHeight/a;
120 119
        float far    = 2*mDistance-near;
121
        mDepth       = (int)((far-near)/2);
122 120

  
123 121
        Matrix.frustumM(mProjectionMatrix, 0, left, right, bottom, top, near, far);
124 122
        }
......
131 129
        float near   = mWidth+mHeight-mHeight*(1.0f-mNear);
132 130
        mDistance    = mWidth+mHeight;
133 131
        float far    = mWidth+mHeight+mHeight*(1.0f-mNear);
134
        mDepth       = (int)((far-near)/2);
135 132

  
136 133
        Matrix.orthoM(mProjectionMatrix, 0, left, right, bottom, top, near, far);
137 134
        }
......
365 362
      {
366 363
      mWidth = width;
367 364
      mHeight= height;
368
      mSizeX = width;
369
      mSizeY = height;
370 365

  
371 366
      createProjection();
372 367

  

Also available in: Unified diff