-
Notifications
You must be signed in to change notification settings - Fork 22
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
Constants for the size (in bytes) and length (in pixels) of a tile #49
Comments
I'd use “width” and “height” for the names; even if those are both intrinsically the same, they 1. provide extra semantic value, and 2. are much more distinguishable from “size” (which is very often used interchangeably with “length”). |
Maybe just provide |
As well as |
There won't be a split, the height will be used for heights and width for width. They are not redundant merely because they are identical, otherwise we would define |
They would be redundant because squares have one side length that describes both their width and height. We just want to avoid calling it "length" to avoid confusion over the "byte length". |
A tile in VRAM is 8x8 pixels, so 16 bytes at 2 bits per pixel. Constants for these measurements would be useful, and would pair well with the screen-size constants.
The text was updated successfully, but these errors were encountered: