MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / getNextSpriteInPool

Function getNextSpriteInPool

Three.js/js/Three62.js:8228–8242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Three62.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected