Enum TextureAtlas
#[non_exhaustive]pub enum TextureAtlas {
Blocks,
Gui,
}Expand description
An atlas the client stitches its sprites into (vanilla’s TextureAtlas), as
texture_atlas_stitched names it. Horizon packs vanilla’s many atlases into these two.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Blocks
The block sprite arrays: every texture a block model uses, one layer each. Look a sprite up
with texture_sprites, which answers a SpriteRef.
Gui
The GUI atlas: GUI sprites, particles and the item and block textures drawn flat. Look a
sprite up with gui_sprite, which answers an AtlasRegion.
Trait Implementations§
§impl Clone for TextureAtlas
impl Clone for TextureAtlas
§fn clone(&self) -> TextureAtlas
fn clone(&self) -> TextureAtlas
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextureAtlas
§impl Debug for TextureAtlas
impl Debug for TextureAtlas
impl Eq for TextureAtlas
§impl Hash for TextureAtlas
impl Hash for TextureAtlas
§impl PartialEq for TextureAtlas
impl PartialEq for TextureAtlas
impl StructuralPartialEq for TextureAtlas
Auto Trait Implementations§
impl Freeze for TextureAtlas
impl RefUnwindSafe for TextureAtlas
impl Send for TextureAtlas
impl Sync for TextureAtlas
impl Unpin for TextureAtlas
impl UnsafeUnpin for TextureAtlas
impl UnwindSafe for TextureAtlas
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more