-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
[Merged by Bors] - Clarify index order in TextureAtlas::from_grid #6058
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
Conversation
| /// Generate a `TextureAtlas` by splitting a texture into a grid where each | ||
| /// `tile_size` by `tile_size` grid-cell is one of the textures in the atlas | ||
| /// `tile_size` by `tile_size` grid-cell is one of the textures in the | ||
| /// atlas. Resulting TextureAtlas is indexed left to right, top to bottom. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// atlas. Resulting TextureAtlas is indexed left to right, top to bottom. | |
| /// atlas. The iteration order of the texture after splitting is left to right, top to bottom. |
Perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about 'The textures array in the resulting TextureAtlas is ordered left to right, top to bottom'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the last wording proposed.
alice-i-cecile
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging as trivial :)
bors r+
# Objective Docs on from_grid/from_grid_with_padding aren't clear on indexing order. ## Solution Make the docs better!
|
Build failed: |
|
bors retry |
# Objective Docs on from_grid/from_grid_with_padding aren't clear on indexing order. ## Solution Make the docs better!
|
Pull request successfully merged into main. Build succeeded: |
# Objective Docs on from_grid/from_grid_with_padding aren't clear on indexing order. ## Solution Make the docs better!
# Objective Docs on from_grid/from_grid_with_padding aren't clear on indexing order. ## Solution Make the docs better!
# Objective Docs on from_grid/from_grid_with_padding aren't clear on indexing order. ## Solution Make the docs better!
Objective
Docs on from_grid/from_grid_with_padding aren't clear on indexing order.
Solution
Make the docs better!