Project

General

Profile

« Previous | Next » 

Revision 61441ce2

Added by Leszek Koltunski about 6 years ago

A little progress making the postprocessing buffers static.

View differences:

src/main/java/org/distorted/library/main/EffectQueuePostprocess.java
99 99

  
100 100
///////////////////////////////////////////////////////////////////////////////////////////////////
101 101

  
102
  int postprocess(DistortedOutputSurface surface)
102
  int postprocess(DistortedOutputSurface[] buffers)
103 103
    {
104 104
    int numRenders = 0;
105 105

  
106 106
    for(int i=0; i<mNumEffects; i++)
107 107
      {
108
      numRenders += ((PostprocessEffect)mEffects[i]).apply(mUniforms,NUM_UNIFORMS*i, surface.mBuffer);
108
      numRenders += ((PostprocessEffect)mEffects[i]).apply(mUniforms,NUM_UNIFORMS*i, buffers);
109 109
      }
110 110

  
111 111
    return numRenders;

Also available in: Unified diff