Vector3DTileBatch.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Describes a renderable batch of geometry.
  3. *
  4. * @alias Vector3DTileBatch
  5. * @constructor
  6. *
  7. * @param {Object} options An object with the following properties:
  8. * @param {Number} options.offset The offset of the batch into the indices buffer.
  9. * @param {Number} options.count The number of indices in the batch.
  10. * @param {Color} options.color The color of the geometry in the batch.
  11. * @param {Number[]} options.batchIds An array where each element is the batch id of the geometry in the batch.
  12. *
  13. * @private
  14. */
  15. function Vector3DTileBatch(options) {
  16. /**
  17. * The offset of the batch into the indices buffer.
  18. * @type {Number}
  19. */
  20. this.offset = options.offset;
  21. /**
  22. * The number of indices in the batch.
  23. * @type {Number}
  24. */
  25. this.count = options.count;
  26. /**
  27. * The color of the geometry in the batch.
  28. * @type {Color}
  29. */
  30. this.color = options.color;
  31. /**
  32. * An array where each element is the batch id of the geometry in the batch.
  33. * @type {Number[]}
  34. */
  35. this.batchIds = options.batchIds;
  36. }
  37. export default Vector3DTileBatch;