[−][src]Struct a2d::SpriteBatch
Implementations
impl SpriteBatch
[src]
pub fn scale(&self) -> [f32; 2]
[src]
The scaling that's applied before performing the batch translation This allows scaling the size of all elements in a batch at once independent of all other batches
pub fn set_scale(&mut self, scale: [f32; 2])
[src]
pub fn translation(&self) -> [f32; 2]
[src]
pub fn set_translation(&mut self, translation: [f32; 2])
[src]
pub fn instances(&self) -> &[Instance]
[src]
pub fn get(&self, i: usize) -> &Instance
[src]
pub fn get_mut(&mut self, i: usize) -> &mut Instance
[src]
pub fn len(&self) -> usize
[src]
pub fn set<I: Into<Instance>>(&mut self, i: usize, inst: I)
[src]
pub fn add<I: Into<Instance>>(&mut self, inst: I)
[src]
pub fn last(&self) -> Option<&Instance>
[src]
pub fn pop(&mut self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SpriteBatch
impl !Send for SpriteBatch
impl !Sync for SpriteBatch
impl Unpin for SpriteBatch
impl !UnwindSafe for SpriteBatch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,