Project

General

Profile

« Previous | Next » 

Revision af4cc5db

Added by Leszek Koltunski about 7 years ago

Simplify yesterday's refactoring.

View differences:

src/main/java/org/distorted/library/EffectQueueMatrix.java
107 107
///////////////////////////////////////////////////////////////////////////////////////////////////
108 108
// here construct the ModelView and the ModelViewProjection Matrices
109 109

  
110
  void constructMatrices(DistortedProjection projection, float halfX, float halfY)
110
  void constructMatrices(DistortedOutputSurface projection, float halfX, float halfY)
111 111
    {
112 112
    Matrix.setIdentityM(mViewMatrix, 0);
113 113
    Matrix.translateM(mViewMatrix, 0, -projection.mWidth/2, projection.mHeight/2, -projection.mDistance);
......
284 284

  
285 285
///////////////////////////////////////////////////////////////////////////////////////////////////
286 286

  
287
  synchronized void send(DistortedProjection projection, float halfX, float halfY, float halfZ)
287
  synchronized void send(DistortedOutputSurface projection, float halfX, float halfY, float halfZ)
288 288
    {
289 289
    constructMatrices(projection,halfX,halfY);
290 290

  
......
297 297
///////////////////////////////////////////////////////////////////////////////////////////////////
298 298
// here construct the ModelView Matrix, but without any effects
299 299

  
300
  synchronized static void sendZero(DistortedProjection projection, float halfX, float halfY, float halfZ)
300
  synchronized static void sendZero(DistortedOutputSurface projection, float halfX, float halfY, float halfZ)
301 301
    {
302 302
    Matrix.setIdentityM(mTmpMatrix, 0);
303 303
    Matrix.translateM(mTmpMatrix, 0, halfX-projection.mWidth/2, projection.mHeight/2-halfY, -projection.mDistance);

Also available in: Unified diff