newModel.lua 949 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. return {
  2. summary = 'Create a new Model.',
  3. description = 'TODO',
  4. arguments = {
  5. filename = {
  6. type = 'string',
  7. description = 'TODO'
  8. },
  9. blob = {
  10. type = 'Blob',
  11. description = 'TODO'
  12. },
  13. modelData = {
  14. type = 'ModelData',
  15. description = 'TODO'
  16. },
  17. options = {
  18. type = 'table',
  19. description = 'Model options.',
  20. table = {
  21. {
  22. name = 'mipmaps',
  23. type = 'boolean',
  24. description = 'TODO'
  25. }
  26. }
  27. }
  28. },
  29. returns = {
  30. model = {
  31. type = 'Model',
  32. description = 'The new Model.'
  33. }
  34. },
  35. variants = {
  36. {
  37. arguments = { 'filename', 'options' },
  38. returns = { 'model' }
  39. },
  40. {
  41. arguments = { 'blob', 'options' },
  42. returns = { 'model' }
  43. },
  44. {
  45. arguments = { 'modelData' },
  46. returns = { 'model' }
  47. }
  48. },
  49. related = {
  50. 'lovr.data.newModelData',
  51. 'Pass:draw'
  52. }
  53. }