Revision 611ea379
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
---|---|---|
182 | 182 |
|
183 | 183 |
Static3D center = new Static3D(0,0,0); |
184 | 184 |
Static3D axis = new Static3D(0,0,1); |
185 |
|
|
186 | 185 |
Static1D alphaNoise = new Static1D(0.4f); |
187 | 186 |
|
188 | 187 |
for(int i=0; i<NUM_STARS; i++) |
... | ... | |
349 | 348 |
if( objectID == gffaID ) |
350 | 349 |
{ |
351 | 350 |
mRoot.detach(mGFFAQueue); |
352 |
mGFFAQueue.removeEventListener(this); |
|
353 |
|
|
351 |
mGFFAQueue.delete(); |
|
352 |
mGFFATexture.delete(); |
|
353 |
|
|
354 | 354 |
int screenW=mScreenTexture.getWidth(); |
355 | 355 |
int screenH=mScreenTexture.getHeight(); |
356 | 356 |
|
... | ... | |
374 | 374 |
else if( objectID==logoID ) |
375 | 375 |
{ |
376 | 376 |
mRoot.detach(mLogoQueue); |
377 |
mLogoQueue.removeEventListener(this); |
|
377 |
mLogoQueue.delete(); |
|
378 |
mLogoTexture.delete(); |
|
378 | 379 |
|
379 | 380 |
int crawlW = mCrawlTexture.getWidth(); |
380 | 381 |
int crawlH = mCrawlTexture.getHeight(); |
... | ... | |
406 | 407 |
{ |
407 | 408 |
mRoot.detach(mBackground); |
408 | 409 |
mBackground.detach(mCrawlQueue); |
409 |
mCrawlQueue.removeEventListener(this); |
|
410 |
mCrawlQueue.delete(); |
|
411 |
mCrawlTexture.delete(); |
|
412 |
mCrawlBackgroundQueue.delete(); |
|
413 |
mCrawlBackgroundTexture.delete(); |
|
410 | 414 |
} |
411 | 415 |
} |
412 | 416 |
} |
Also available in: Unified diff
Star Wars: release memory.