Project

General

Profile

« Previous | Next » 

Revision 4c1dd6e9

Added by Leszek Koltunski over 7 years ago

Beginnings of support for postprocessing Effects.

View differences:

src/main/java/org/distorted/library/EffectQueue.java
62 62
    mMaxIndex     = index;
63 63
    mObjectID     = id;
64 64

  
65
    if( mMax[mMaxIndex]>0 )
65
    int max = mMax[mMaxIndex];
66

  
67
    if( max>0 )
66 68
      {
67
      mName            = new int[mMax[mMaxIndex]];
68
      mUniforms        = new float[numUniforms*mMax[mMaxIndex]];
69
      mInter           = new Dynamic[3][mMax[mMaxIndex]];
70
      mCurrentDuration = new long[mMax[mMaxIndex]];
71
      mID              = new long[mMax[mMaxIndex]];
72
      mIDIndex         = new byte[mMax[mMaxIndex]];
73
      mFreeIndexes     = new byte[mMax[mMaxIndex]];
69
      mName            = new int[max];
70
      mUniforms        = new float[numUniforms*max];
71
      mInter           = new Dynamic[3][max];
72
      mCurrentDuration = new long[max];
73
      mID              = new long[max];
74
      mIDIndex         = new byte[max];
75
      mFreeIndexes     = new byte[max];
74 76
     
75
      for(byte i=0; i<mMax[mMaxIndex]; i++) mFreeIndexes[i] = i;
77
      for(byte i=0; i<max; i++) mFreeIndexes[i] = i;
76 78

  
77 79
      if( numCache>0 )
78 80
        {
79
        mCache = new float[numCache*mMax[mMaxIndex]];
81
        mCache = new float[numCache*max];
80 82
        }
81 83
      }
82 84
   

Also available in: Unified diff