setDefaultFilter.lua 763 B

12345678910111213141516171819202122232425262728293031
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Set the default filter mode for Textures.',
  4. description = [[
  5. Sets the default filter mode for new Textures. This controls how textures are sampled when they
  6. are minified, magnified, or stretched.
  7. ]],
  8. arguments = {
  9. {
  10. name = 'mode',
  11. type = 'FilterMode',
  12. description = 'The filter mode.'
  13. },
  14. {
  15. name = 'anisotropy',
  16. type = 'number',
  17. description = 'The level of anisotropy to use.'
  18. }
  19. },
  20. returns = {},
  21. notes = [[
  22. The default filter is `trilinear`.
  23. The maximum supported anisotropy level can be queried using `lovr.graphics.getLimits`.
  24. ]],
  25. related = {
  26. 'Texture:getFilter',
  27. 'Texture:setFilter',
  28. 'lovr.graphics.getLimits'
  29. }
  30. }