pub struct TileSet {
pub shader: Option<ShaderRef>,
pub textures: SmallVec<[SpriteTexture; 4]>,
pub uniforms: HashMap<Cow<'static, str>, GlowUniformValue>,
pub blending: Option<GlowBlending>,
pub mappings: HashMap<usize, TileSetItem>,
}
Fields§
§shader: Option<ShaderRef>
§textures: SmallVec<[SpriteTexture; 4]>
§uniforms: HashMap<Cow<'static, str>, GlowUniformValue>
§blending: Option<GlowBlending>
§mappings: HashMap<usize, TileSetItem>
Implementations§
Source§impl TileSet
impl TileSet
pub fn single(texture: SpriteTexture) -> Self
pub fn shader(self, value: ShaderRef) -> Self
pub fn texture(self, value: SpriteTexture) -> Self
pub fn uniform(self, key: Cow<'static, str>, value: GlowUniformValue) -> Self
pub fn blending(self, value: GlowBlending) -> Self
pub fn mapping(self, id: usize, item: TileSetItem) -> Self
pub fn mappings( self, iter: impl IntoIterator<Item = (usize, TileSetItem)>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileSet
impl !RefUnwindSafe for TileSet
impl !Send for TileSet
impl !Sync for TileSet
impl Unpin for TileSet
impl !UnwindSafe for TileSet
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