Project

General

Profile

« Previous | Next » 

Revision 70b6a155

Added by Leszek Koltunski almost 7 years ago

Internal API change around postprocessing.

View differences:

src/main/java/org/distorted/library/main/DistortedNode.java
256 256

  
257 257
///////////////////////////////////////////////////////////////////////////////////////////////////
258 258

  
259
  int markStencilAndDepth(long currTime, DistortedOutputSurface surface, DistortedEffects effects)
259
  int markStencilAndDepth(long currTime, DistortedOutputSurface surface, EffectQueuePostprocess queue)
260 260
    {
261 261
    DistortedInputSurface input = mNumChildren[0]==0 ? mSurface : mData.mFBO;
262 262

  
......
264 264
      {
265 265
      surface.setAsOutput();
266 266
      DistortedRenderState.setUpStencilMark();
267
      mEffects.drawPriv(mSurface.getWidth() /2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime, effects.getHalo()*surface.mMipmap);
267
      mEffects.drawPriv(mSurface.getWidth() /2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime, queue.getHalo()*surface.mMipmap);
268 268
      DistortedRenderState.unsetUpStencilMark();
269 269

  
270 270
      return 1;
......
352 352
      }
353 353
    }
354 354

  
355
///////////////////////////////////////////////////////////////////////////////////////////////////
356
/**
357
 * Not part of the Public API.
358
 *
359
 * @y.exclude
360
 */
361
  public EffectQueuePostprocess getPostprocessQueue()
362
    {
363
    return mEffects.getPostprocess();
364
    }
365

  
355 366
///////////////////////////////////////////////////////////////////////////////////////////////////
356 367
// PUBLIC API
357 368
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff