[−][src]Struct very_simple_2d_core::sprite::SpriteSession
Methods
impl<'_> SpriteSession<'_>
[src]
pub fn add(&mut self, point: Vec2<f32>, index: TexIndex) -> &mut Self
[src]
Add a point sprite.
pub fn addp(&mut self, x: f32, y: f32, index: TexIndex) -> &mut Self
[src]
Primitive version of add.
pub fn save(&mut self) -> SpriteSave
[src]
Save this sprite session to into its own static buffer to be drawn later.
pub fn send_and_draw(
&mut self,
texture: &Texture,
color: [f32; 4],
point_size: f32
)
[src]
&mut self,
texture: &Texture,
color: [f32; 4],
point_size: f32
)
Draw the sprites using the specified texture.
Trait Implementations
impl<'_> Drop for SpriteSession<'_>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for SpriteSession<'a>
impl<'a> Send for SpriteSession<'a>
impl<'a> Sync for SpriteSession<'a>
impl<'a> Unpin for SpriteSession<'a>
impl<'a> !UnwindSafe for SpriteSession<'a>
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>,