Project

General

Profile

« Previous | Next » 

Revision 00191c89

Added by Leszek Koltunski about 2 years ago

Minor

View differences:

src/main/java/org/distorted/examples/mirror/MirrorRenderer.java
55 55
                                                        // the length of the previous one
56 56
   private static final float MIRROR_MOVE_V    =0.22f;  // Move the mirror up
57 57

  
58
   private GLSurfaceView mView;
59
   private DistortedEffects mEffectsMirror, mEffectsHead, mEffectsScreen;
60
   private DistortedEffects mEffectsOffscreen1, mEffectsOffscreen2;
58
   private final GLSurfaceView mView;
59
   private final DistortedEffects mEffectsMirror, mEffectsHead, mEffectsScreen;
60
   private final DistortedEffects mEffectsOffscreen1, mEffectsOffscreen2;
61
   private final DistortedScreen mScreen;
62
   private final MeshQuad mQuad1, mQuad2, mQuadMirror, mQuadHead;
63
   private final Static3D mHeadPosition, mScaleMirror, mMoveOffscreen2, mScaleHead;
64
   private final Static3D mScaleOffscreen1, mScaleOffscreen2;
65

  
61 66
   private DistortedTexture mTextureMirror, mTextureHead;
62 67
   private DistortedFramebuffer mOffScreen1, mOffScreen2;
63
   private DistortedScreen mScreen;
64
   private MeshQuad mQuad1, mQuad2, mQuadMirror, mQuadHead;
65
   private Static3D mHeadPosition, mScaleMirror, mMoveOffscreen2, mScaleHead;
66
   private Static3D mScaleOffscreen1, mScaleOffscreen2;
67 68

  
68 69
   private int mX;
69 70
   private int mMirrorW, mMirrorH, mHeadW, mHeadH;
......
202 203
          isM.close();
203 204
          isH.close();
204 205
          }
205
        catch(IOException e) { }
206
        catch(IOException ignored) { }
206 207
        }
207 208

  
208 209
      mMirrorW = bitmapM.getWidth();

Also available in: Unified diff