Project

General

Profile

« Previous | Next » 

Revision 9ed80185

Added by Leszek Koltunski almost 7 years ago

Beginnings of support for multi-COLOR attachment Framebuffers.
This will be used in OutputSurface's Postprocessing Buffer.

View differences:

src/main/java/org/distorted/library/DistortedNode.java
248 248
      {
249 249
      int width  = mFboW <= 0 ? mSurface.getWidth()  : mFboW;
250 250
      int height = mFboH <= 0 ? mSurface.getHeight() : mFboH;
251
      newData.mFBO = new DistortedFramebuffer(mFboDepthStencil, DistortedSurface.TYPE_TREE, width, height);
251
      newData.mFBO = new DistortedFramebuffer(1,mFboDepthStencil, DistortedSurface.TYPE_TREE, width, height);
252 252
      //android.util.Log.d("NODE", "creating new FBO "+newData.mFBO.getID() );
253 253
      }
254 254

  
......
322 322
        {
323 323
        int width  = mFboW <= 0 ? mSurface.getWidth()  : mFboW;
324 324
        int height = mFboH <= 0 ? mSurface.getHeight() : mFboH;
325
        mData.mFBO = new DistortedFramebuffer(mFboDepthStencil, DistortedSurface.TYPE_TREE, width, height);
325
        mData.mFBO = new DistortedFramebuffer(1,mFboDepthStencil, DistortedSurface.TYPE_TREE, width, height);
326 326
        }
327 327

  
328 328
      mData.mFBO.setAsOutput(currTime);
......
451 451
          depthStencil = (hasStencil ? DistortedFramebuffer.BOTH_DEPTH_STENCIL:DistortedFramebuffer.DEPTH_NO_STENCIL);
452 452
          }
453 453

  
454
        mSurface = new DistortedFramebuffer(depthStencil,DistortedSurface.TYPE_TREE,w,h);
454
        mSurface = new DistortedFramebuffer(1,depthStencil,DistortedSurface.TYPE_TREE,w,h);
455 455
        }
456 456
      }
457 457
    if( (flags & Distorted.CLONE_CHILDREN) != 0 )

Also available in: Unified diff