Revision 8e28b6ff
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/main/DistortedOutputSurface.java | ||
---|---|---|
246 | 246 |
// Otherwise, render to a buffer and on each change of Postprocessing Bucket, apply the postprocessing |
247 | 247 |
// to a whole buffer and merge it. |
248 | 248 |
|
249 |
int renderChildren(long time, int num, ArrayList<DistortedNode> children) |
|
249 |
int renderChildren(long time, int numChildren, ArrayList<DistortedNode> children)
|
|
250 | 250 |
{ |
251 | 251 |
int numRenders = 0, bucketChange = 0; |
252 | 252 |
DistortedNode child1, child2; |
... | ... | |
256 | 256 |
|
257 | 257 |
sCurr = ""; |
258 | 258 |
|
259 |
for(int i=0; i<num; i++) |
|
259 |
for(int i=0; i<numChildren; i++)
|
|
260 | 260 |
{ |
261 | 261 |
child1 = children.get(i); |
262 | 262 |
currEffects = child1.getEffects(); |
... | ... | |
289 | 289 |
|
290 | 290 |
numRenders += child1.draw(time,mBuffer[currQuality]); |
291 | 291 |
|
292 |
if( i==num-1 ) |
|
292 |
if( i==numChildren-1 )
|
|
293 | 293 |
{ |
294 |
for(int j=bucketChange; j<num; j++) |
|
294 |
for(int j=bucketChange; j<numChildren; j++)
|
|
295 | 295 |
{ |
296 | 296 |
child2 = children.get(j); |
297 | 297 |
numRenders += child2.markStencilAndDepth(time,mBuffer[currQuality],currEffects); |
Also available in: Unified diff
Minor