promote atlas sources texture_ids to pub visibility (#15795)
In order to create texture atlases from other systems (custom game solutions) that are compatible with the ones generated by the bevy builders, it would be nice to have the interface be fully public. This field is pub(crate). Unless there's a good reason, can we promote this to pub? Alternatives: - Don't do it.
This commit is contained in:
		
							parent
							
								
									c2c19e5ae4
								
							
						
					
					
						commit
						88d9ead7f8
					
				| @ -15,7 +15,7 @@ use bevy_utils::HashMap; | |||||||
| #[derive(Debug)] | #[derive(Debug)] | ||||||
| pub struct TextureAtlasSources { | pub struct TextureAtlasSources { | ||||||
|     /// Maps from a specific image handle to the index in `textures` where they can be found.
 |     /// Maps from a specific image handle to the index in `textures` where they can be found.
 | ||||||
|     pub(crate) texture_ids: HashMap<AssetId<Image>, usize>, |     pub texture_ids: HashMap<AssetId<Image>, usize>, | ||||||
| } | } | ||||||
| impl TextureAtlasSources { | impl TextureAtlasSources { | ||||||
|     /// Retrieves the texture *section* index of the given `texture` handle.
 |     /// Retrieves the texture *section* index of the given `texture` handle.
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Brandon Reinhart
						Brandon Reinhart