Revision cacc63de
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/EffectQueue.java | ||
---|---|---|
92 | 92 |
} |
93 | 93 |
|
94 | 94 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
95 |
// Only max Byte.MAX_VALUE concurrent effects per DistortedObject.
|
|
95 |
// Only max Byte.MAX_VALUE concurrent effects per DistortedEffects object.
|
|
96 | 96 |
// If you want more, change type of the mNumEffects, mIDIndex and mFreeIndexes variables to shorts. |
97 |
// (although probably this many uniforms will not fit in the shaders anyway!) |
|
97 | 98 |
|
98 | 99 |
static boolean setMax(int index, int m) |
99 | 100 |
{ |
... | ... | |
216 | 217 |
EffectMessage.EFFECT_REMOVED, |
217 | 218 |
(removedID<<EffectTypes.LENGTH)+EffectNames.getType(removedName).type, |
218 | 219 |
removedName, |
219 |
mObjectID, |
|
220 |
null); |
|
220 |
mObjectID); |
|
221 | 221 |
} |
222 | 222 |
} |
223 | 223 |
|
... | ... | |
266 | 266 |
EffectMessage.EFFECT_REMOVED, |
267 | 267 |
(removedID<<EffectTypes.LENGTH)+EffectNames.getType(removedName).type, |
268 | 268 |
removedName, |
269 |
mObjectID, |
|
270 |
null); |
|
269 |
mObjectID); |
|
271 | 270 |
} |
272 | 271 |
|
273 | 272 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Fix Lint warnings, correct a lot of comments, adjust EffectListener interface.