getDefaultFilter.lua 626 B

1234567891011121314151617181920212223242526
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Get the default filter mode for Textures.',
  4. description = [[
  5. Returns the default filter mode for new Textures. This controls how textures are sampled when
  6. they are minified, magnified, or stretched.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. {
  11. name = 'mode',
  12. type = 'FilterMode',
  13. description = 'The filter mode.'
  14. },
  15. {
  16. name = 'anisotropy',
  17. type = 'number',
  18. description = 'The level of anisotropy.'
  19. }
  20. },
  21. notes = 'The default filter is `trilinear`.',
  22. related = {
  23. 'Texture:getFilter',
  24. 'Texture:setFilter'
  25. }
  26. }