Project

General

Profile

« Previous | Next » 

Revision 6c097dd3

Added by Leszek Koltunski about 8 years ago

Tidy up 'Different Effects' app

View differences:

src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java
53 53
   private Static2D pLeft, pRight, pNose1;
54 54
   private Static4D RegionEye;
55 55
   private Dynamic3D mDI;
56
   private Static3D[] vec;
57 56
   private int bmpHeight, bmpWidth;
58 57
    
59 58
///////////////////////////////////////////////////////////////////////////////////////////////////
60 59

  
61
   public DifferentEffectsRenderer(GLSurfaceView v) 
60
   DifferentEffectsRenderer(GLSurfaceView v)
62 61
      {     
63 62
      mView = v;
64 63
      
......
69 68
      
70 69
      // bmp[1] effects
71 70
      mDI = new Dynamic3D(1000,0.0f);
72
      vec = new Static3D[2];
73
      vec[0] = new Static3D( 50,0,0);
74
      vec[1] = new Static3D(-50,0,0);
75
      mDI.add(vec[0]);
76
      mDI.add(vec[1]);
71
      mDI.add(new Static3D( 50,0,0));
72
      mDI.add(new Static3D(-50,0,0));
77 73
      pNose1 = new Static2D(305, 340);
78 74
      
79 75
      // we don't need to prepare anything for bmp[2] effects

Also available in: Unified diff