Project

General

Profile

« Previous | Next » 

Revision eddf0cb7

Added by Leszek Koltunski almost 5 years ago

remove an unused, redundant API.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueuePostprocess.java
159 159
  public int preprocess(InternalOutputSurface buffer, DistortedNode node, float distance, float mipmap, float[] projection)
160 160
    {
161 161
    buffer.setAsOutput();
162
    InternalSurface input = node.getInternalSurface();
162
    InternalSurface input = node.getSurface();
163 163

  
164 164
    if( input.setAsInput() )
165 165
      {
src/main/java/org/distorted/library/main/DistortedNode.java
151 151

  
152 152
  int drawNoBlend(long currTime, InternalOutputSurface surface)
153 153
    {
154
    InternalSurface input = getInternalSurface();
154
    InternalSurface input = getSurface();
155 155

  
156 156
    if( input.setAsInput() )
157 157
      {
......
170 170

  
171 171
  int drawOIT(long currTime, InternalOutputSurface surface)
172 172
    {
173
    InternalSurface input = getInternalSurface();
173
    InternalSurface input = getSurface();
174 174

  
175 175
    if( input.setAsInput() )
176 176
      {
......
187 187

  
188 188
  int draw(long currTime, InternalOutputSurface surface)
189 189
    {
190
    InternalSurface input = getInternalSurface();
190
    InternalSurface input = getSurface();
191 191

  
192 192
    if( input.setAsInput() )
193 193
      {
......
464 464
    return mEffects;
465 465
    }
466 466

  
467
///////////////////////////////////////////////////////////////////////////////////////////////////
468
/**
469
 * Returns the InternalSurface object that's in the Node.
470
 *
471
 * @return The InternalSurface contained in the Node.
472
 */
473
  public InternalSurface getSurface()
474
    {
475
    return mSurface;
476
    }
477

  
478 467
///////////////////////////////////////////////////////////////////////////////////////////////////
479 468
  /**
480
   * Returns the InternalSurface object that's in the Node.
469
   * Returns the surface this object gets rendered to.
481 470
   *
482 471
   * @return The InternalSurface contained in the Node (if a leaf), or the FBO (if an internal Node)
483 472
   */
484
  public InternalSurface getInternalSurface()
473
  public InternalSurface getSurface()
485 474
    {
486 475
    return mChildren.getNumChildren()==0 ? mSurface : mData.mFBO;
487 476
    }

Also available in: Unified diff