setVertexMap.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. return {
  2. summary = 'Set the vertex map of the Mesh.',
  3. description = [[
  4. Sets the vertex map. The vertex map is a list of indices in the Mesh, allowing the reordering
  5. or reuse of vertices.
  6. Often, a vertex map is used to improve performance, since it usually requires less data to
  7. specify the index of a vertex than it does to specify all of the data for a vertex.
  8. ]],
  9. arguments = {
  10. map = {
  11. type = 'table',
  12. description = 'The new vertex map. Each element of the table is an index of a vertex.'
  13. },
  14. blob = {
  15. type = 'Blob',
  16. description = 'A Blob to use to update vertex data.'
  17. },
  18. size = {
  19. type = 'number',
  20. default = '4',
  21. description = 'The size of each element of the Blob, in bytes. Must be 2 or 4.'
  22. }
  23. },
  24. returns = {},
  25. variants = {
  26. {
  27. arguments = { 'map' },
  28. returns = {}
  29. },
  30. {
  31. description = 'This variant is much faster than the previous one, but is harder to use.',
  32. arguments = { 'blob', 'size' },
  33. returns = {}
  34. }
  35. }
  36. }