[][src]Struct very_simple_2d_core::sprite::SpriteSession

pub struct SpriteSession<'a> { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.