File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ impl TextureAtlas {
68
68
}
69
69
70
70
/// Generate a `TextureAtlas` by splitting a texture into a grid where each
71
- /// `tile_size` by `tile_size` grid-cell is one of the textures in the atlas
71
+ /// `tile_size` by `tile_size` grid-cell is one of the textures in the
72
+ /// atlas. Resulting `TextureAtlas` is indexed left to right, top to bottom.
72
73
pub fn from_grid (
73
74
texture : Handle < Image > ,
74
75
tile_size : Vec2 ,
@@ -81,7 +82,8 @@ impl TextureAtlas {
81
82
/// Generate a `TextureAtlas` by splitting a texture into a grid where each
82
83
/// `tile_size` by `tile_size` grid-cell is one of the textures in the
83
84
/// atlas. Grid cells are separated by some `padding`, and the grid starts
84
- /// at `offset` pixels from the top left corner.
85
+ /// at `offset` pixels from the top left corner. Resulting `TextureAtlas` is
86
+ /// indexed left to right, top to bottom.
85
87
pub fn from_grid_with_padding (
86
88
texture : Handle < Image > ,
87
89
tile_size : Vec2 ,
You can’t perform that action at this time.
0 commit comments