Project

General

Profile

« Previous | Next » 

Revision 7451c98a

Added by Leszek Koltunski over 7 years ago

Hide the 'depth' of a DistortedTexture inside the library, so users do not get exposed to this weirdness.

View differences:

src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java
62 62
      {     
63 63
      mView = v;
64 64

  
65
      mLeaf = new DistortedTexture(LEAF_SIZE,LEAF_SIZE,1);
65
      mLeaf = new DistortedTexture(LEAF_SIZE,LEAF_SIZE);
66 66
      GridFlat grid = new GridFlat(1,1);
67 67
      DistortedEffectQueues queue = new DistortedEffectQueues();
68 68

  
69 69
      mScreenW = 9*LEAF_SIZE;
70 70
      mScreenH = 9*LEAF_SIZE;
71 71

  
72
      mScreen = new DistortedObjectTree(new DistortedTexture(mScreenW,mScreenH,0), queue, grid);
72
      mScreen = new DistortedObjectTree(new DistortedTexture(mScreenW,mScreenH), queue, grid);
73 73
     
74 74
      Dynamic1D rot = new Dynamic1D(5000,0.0f);
75 75
      rot.setMode(Dynamic1D.MODE_JUMP);
......
90 90
        if( i==0 )
91 91
          {
92 92
          queue = new DistortedEffectQueues();
93
          mCircleNode[i] = new DistortedObjectTree(new DistortedTexture(3*LEAF_SIZE,3*LEAF_SIZE,1), queue, grid);
93
          mCircleNode[i] = new DistortedObjectTree(new DistortedTexture(3*LEAF_SIZE,3*LEAF_SIZE), queue, grid);
94 94
        
95 95
          for(int j=0; j<NUM_LEAVES; j++)
96 96
            {

Also available in: Unified diff