Revision 16d8b8f3
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
114 | 114 |
} |
115 | 115 |
|
116 | 116 |
df.setOutput(); |
117 |
mData.mDF.setInput(); // this is safe because we must have called createFBO() above before.
|
|
117 |
mData.mDF.setInput(); |
|
118 | 118 |
} |
119 | 119 |
|
120 | 120 |
mObject.drawPriv(currTime, df); |
... | ... | |
173 | 173 |
if( otherNodesPoint ) mData = new NodeData(++mNextNodeID); |
174 | 174 |
else mData.ID = ++mNextNodeID; // numPointingNodes must be 1 already |
175 | 175 |
|
176 |
if( newList.size()>1 && mData.mDF==null ) |
|
177 |
mData.mDF = new DistortedFramebuffer(mObject.getWidth(), mObject.getHeight()); |
|
176 |
if( newList.size()>1 ) |
|
177 |
{ |
|
178 |
if( mData.mDF==null ) |
|
179 |
mData.mDF = new DistortedFramebuffer(mObject.getWidth(), mObject.getHeight()); |
|
180 |
} |
|
181 |
else |
|
182 |
{ |
|
183 |
if( mData.mDF!=null ) |
|
184 |
{ |
|
185 |
mData.mDF.markForDeletion(); |
|
186 |
mData.mDF = null; |
|
187 |
} |
|
188 |
else |
|
189 |
{ |
|
190 |
android.util.Log.e("DistortedNode", "adjustNodeData: impossible situation??"); |
|
191 |
} |
|
192 |
} |
|
178 | 193 |
|
179 | 194 |
mMapNodeID.put(newList, mData); |
180 | 195 |
} |
Also available in: Unified diff
DistortedFramebuffer should we working now, including deletions.