-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ae.utils.graphics => renaming .w / .h to .width / .height? #17
Comments
I'd like to do one more iteration of the graphics package with better range support (exposing the image as a range of rows, or range of pixels) so it's interoperable with std.algorithm and allows streaming image data, so I'll probably fold this change in there. |
More suggestions:
|
Fixed
Making the functions templated might Just Work in many cases. How about fixing this as needed? |
You are right. I've also noticed some naming/consistency problem in aaXXXX vs XXX nomenclature.
In general I could live with the "aa" primitives having the default shorter name and the integer version having the longer names (reverse then current), or not even existing publicly. Overloading by coordinates format, could be nice but I fear for readability. Though it works well for CHECKED. |
No disagreements there. I'm actually not a fan of CHECKED though, because default parameters (template or not) don't stack. It's a holdover from ancient D1 code. Maybe it can be replaced with a Painter(bool checked) "namespace" (struct with static methods) that can be used like |
So I've been an
ae.utils.graphics
user and I don't have much complaints.I know it is a breaking change and not very important, but
.w
and.h
look a tiny bit terse to me.The text was updated successfully, but these errors were encountered: