Revision 50642a86
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedOutputSurface.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
abstract class DistortedOutputSurface extends DistortedSurface implements DistortedAttacheable |
29 | 29 |
{ |
30 |
private static int mRender = 0; |
|
31 |
|
|
32 | 30 |
private ArrayList<DistortedNode> mChildren; |
33 | 31 |
private int mNumChildren; // ==mChildren.length(), but we only create mChildren if the first one gets added |
34 | 32 |
|
... | ... | |
115 | 113 |
*/ |
116 | 114 |
public int render(long time) |
117 | 115 |
{ |
118 |
mRender++; |
|
119 |
|
|
120 | 116 |
// change tree topology (attach and detach children) |
121 | 117 |
/* |
122 | 118 |
boolean changed = |
... | ... | |
154 | 150 |
|
155 | 151 |
for(int i=0; i<mNumChildren; i++) |
156 | 152 |
{ |
157 |
numRenders += mChildren.get(i).drawRecursive(mRender,time,this);
|
|
153 |
numRenders += mChildren.get(i).drawRecursive(time,this); |
|
158 | 154 |
} |
159 | 155 |
|
160 | 156 |
return numRenders; |
Also available in: Unified diff
Simplify drawRecursive