Revision 0afc143a
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/Distorted.java | ||
---|---|---|
134 | 134 |
DistortedNode.onDestroy(); |
135 | 135 |
EffectQueue.onDestroy(); |
136 | 136 |
DistortedEffects.onDestroy(); |
137 |
DistortedEffectsPostprocess.onDestroy(); |
|
137 | 138 |
DistortedMaster.onDestroy(); |
138 | 139 |
EffectMessageSender.stopSending(); |
139 | 140 |
|
src/main/java/org/distorted/library/DistortedEffectsPostprocess.java | ||
---|---|---|
83 | 83 |
mP = null; |
84 | 84 |
} |
85 | 85 |
|
86 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
87 |
|
|
88 |
static void onDestroy() |
|
89 |
{ |
|
90 |
mNextID = 0; |
|
91 |
} |
|
92 |
|
|
86 | 93 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
87 | 94 |
// PUBLIC API |
88 | 95 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
src/main/java/org/distorted/library/DistortedOutputSurface.java | ||
---|---|---|
65 | 65 |
|
66 | 66 |
private float mClearR, mClearG, mClearB, mClearA; |
67 | 67 |
private float mClearDepth; |
68 |
/* |
|
69 |
private String sNew="", sOld=""; |
|
70 |
*/ |
|
68 |
|
|
69 |
//private String sNew="", sOld="";
|
|
70 |
|
|
71 | 71 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
72 | 72 |
|
73 | 73 |
DistortedOutputSurface(int width, int height, int createColor, int createDepth, int fbo, int type) |
... | ... | |
149 | 149 |
DistortedNode child; |
150 | 150 |
DistortedEffectsPostprocess lastP=null, currP; |
151 | 151 |
long lastB=0, currB; |
152 |
/* |
|
153 |
sNew = ""; |
|
154 |
*/ |
|
152 |
|
|
153 |
//sNew = "";
|
|
154 |
|
|
155 | 155 |
for(int i=0; i<num; i++) |
156 | 156 |
{ |
157 | 157 |
child = children.get(i); |
158 | 158 |
currP = child.getEffectsPostprocess(); |
159 | 159 |
currB = currP==null ? 0 : currP.getBucket(); |
160 |
/* |
|
161 |
sNew += currB; |
|
162 |
*/ |
|
160 |
|
|
161 |
//sNew += currB;
|
|
162 |
|
|
163 | 163 |
if( lastB!=currB && lastB!=0 ) |
164 | 164 |
{ |
165 | 165 |
numRenders += lastP.postprocess(time,this); |
Also available in: Unified diff
Reset EffectsPostprocess' ID back in 0 on Destroy.