()
| 8226 | } |
| 8227 | |
| 8228 | function getNextSpriteInPool() { |
| 8229 | |
| 8230 | if ( _spriteCount === _spritePoolLength ) { |
| 8231 | |
| 8232 | var sprite = new THREE.RenderableSprite(); |
| 8233 | _spritePool.push( sprite ); |
| 8234 | _spritePoolLength ++; |
| 8235 | _spriteCount ++ |
| 8236 | return sprite; |
| 8237 | |
| 8238 | } |
| 8239 | |
| 8240 | return _spritePool[ _spriteCount ++ ]; |
| 8241 | |
| 8242 | } |
| 8243 | |
| 8244 | // |
| 8245 |