Project

General

Profile

« Previous | Next » 

Revision 09ab7524

Added by Leszek Koltunski about 7 years ago

Introduce 3 types of Surfaces: System, Tree, User

View differences:

src/main/java/org/distorted/library/DistortedNode.java
169 169
        else
170 170
          {
171 171
          android.util.Log.d("NODE", "creating new FBO of node surfaceID="+mSurface.getID());
172
          newData.mFBO = new DistortedFramebuffer(mSurface.getWidth(),mSurface.getHeight());
172
          newData.mFBO = new DistortedFramebuffer(true,DistortedSurface.TYPE_TREE,mSurface.getWidth(),mSurface.getHeight());
173 173
          }
174 174
        }
175 175
      if( mNumChildren[0]==0 && newData.mFBO!=null )
......
303 303

  
304 304
      if( node.mSurface instanceof DistortedTexture )
305 305
        {
306
        mSurface = new DistortedTexture(w,h);
306
        mSurface = new DistortedTexture(w,h, DistortedSurface.TYPE_TREE);
307 307
        }
308 308
      else if( node.mSurface instanceof DistortedFramebuffer )
309 309
        {
310 310
        boolean hasDepth = ((DistortedFramebuffer) node.mSurface).hasDepth();
311
        mSurface = new DistortedFramebuffer(w,h,hasDepth);
311
        mSurface = new DistortedFramebuffer(hasDepth,DistortedSurface.TYPE_TREE,w,h);
312 312
        }
313 313
      }
314 314
    if( (flags & Distorted.CLONE_CHILDREN) != 0 )

Also available in: Unified diff