Changing setLineStyle to accept a boolean
I think it might be neat if
love.graphics.setLineStyle accepted a boolean for "are lines smooth or not" and is renamed appropriately.
I think it could be easier to understand, and simpler, without the enum.
For example, if you saw:
You might think "This sets the line style to smooth. What else could the line style be?"
But if you saw:
You'd hopefully think "This makes lines smooth, and if I put
false instead of
true, they'd be unsmooth".
And also, I guess it depends how you think about it, but I think this state has a boolean nature: lines can be smoothed or not, just like a Source can be looping or not or the display can be fullscreen or not.
And you can do stuff like this! :P
This breaks consistency with
setPointStyle, which also takes an enum which is either "smooth" or "rough", however,
- I think points should maybe be removed anyway. :P
- I don't think the enum for
setPointStyleis very descriptive. Perhaps it could be "circle" and "square" instead?
- The point style doesn't really have a boolean nature like line smoothing does. It's not really like the styles are circles and "non-circles".