getNextFaceInPool method

RenderableFace getNextFaceInPool()

Implementation

RenderableFace getNextFaceInPool() {
  if (_faceCount == _facePoolLength) {
    RenderableFace face = RenderableFace();
    _facePool.add(face);
    _facePoolLength++;
    _faceCount++;
    return face;
  }
  return _facePool[_faceCount++];
}