Project

General

Profile

« Previous | Next » 

Revision 5f7e4f2c

Added by Leszek Koltunski almost 6 years ago

Hide the FBO_QUEUE thing inside the library. The queue is running internally now, without public setAsOutputFBO() thing (simplifies writing postprocess effects)

View differences:

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

  
101 101
///////////////////////////////////////////////////////////////////////////////////////////////////
102 102

  
103
  int postprocess(DistortedOutputSurface[] buffers, int fbo)
103
  int postprocess(DistortedOutputSurface[] buffers)
104 104
    {
105 105
    int numRenders = 0;
106 106

  
......
108 108

  
109 109
    for(int i=0; i<mNumEffects; i++)
110 110
      {
111
      numRenders += ((PostprocessEffect)mEffects[i]).apply(mUniforms,NUM_UNIFORMS*i, buffers, fbo);
111
      numRenders += ((PostprocessEffect)mEffects[i]).apply(mUniforms,NUM_UNIFORMS*i, buffers);
112 112
      }
113 113

  
114 114
    GLES31.glEnable(GLES31.GL_BLEND);

Also available in: Unified diff