setLineWidth.lua 681 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Set the line width.',
  4. description = 'Sets the width of lines rendered using `lovr.graphics.line`.',
  5. arguments = {
  6. {
  7. name = 'width',
  8. type = 'number',
  9. default = '1',
  10. description = 'The new line width, in pixels.'
  11. }
  12. },
  13. returns = {},
  14. notes = [[
  15. The default line width is `1`.
  16. GPU driver support for line widths is poor. The actual width of lines may be different from
  17. what is set here. In particular, some graphics drivers only support a line width of `1`.
  18. Currently this function only supports integer values from 1 to 255.
  19. ]],
  20. related = {
  21. 'lovr.graphics.line'
  22. }
  23. }