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/effects3d/Effects3DRenderer.java
75 75
      mObjectTexture     = act.getTexture();
76 76
      mObjectGrid        = act.getGrid();
77 77
      mObjectQueues      = act.getQueues();
78
      mBackgroundTexture = new DistortedTexture(100, 100, 0);
79
      mCenterTexture     = new DistortedTexture(100, 100, 0);
80
      mRegionTexture     = new DistortedTexture(100, 100, 0);
78
      mBackgroundTexture = new DistortedTexture(100,100);
79
      mCenterTexture     = new DistortedTexture(100,100);
80
      mRegionTexture     = new DistortedTexture(100,100);
81 81
      mQuad              = new GridFlat(1,1);
82 82
      mBackgroundQueues  = new DistortedEffectQueues();
83 83
      mCenterQueues      = new DistortedEffectQueues();
......
85 85

  
86 86
      mObjWidth = mObjectTexture.getWidth();
87 87
      mObjHeight= mObjectTexture.getHeight();
88
      mObjDepth = mObjectTexture.getDepth();
88
      mObjDepth = mObjectTexture.getDepth(mObjectGrid);
89 89

  
90 90
      mQuat1 = new Static4D(0,0,0,1);  // unity
91 91
      mQuat2 = new Static4D(0,0,0,1);  // quaternions

Also available in: Unified diff