[][src]Struct blaze_rs::immediate::Immediate

pub struct Immediate {}

Defines static methods used for immediate-mode drawing (which means that sprite is drawn immediately using one draw call).

When you need to draw a small number of sprites. The sprite is immediately drawn to the screen using the specified parameters. Can be useful for small amount of sprites where batching will not improve performance, or post-processing effects (to draw a fullscreen quad, for example).

Methods

impl Immediate[src]

pub fn draw<'t>(
    texture: &'t Texture,
    position: Vector2,
    srcRectangle: Option<Rectangle>,
    rotationInRadians: f32,
    origin: Option<Vector2>,
    scale: Option<Vector2>,
    color: Color,
    flip: SpriteFlip
) -> CallResult
[src]

Immediately draws a sprite to the screen using specified parameters.

pub fn lower_draw<'t>(texture: &'t Texture, quad: &SpriteQuad) -> CallResult[src]

Lower-level drawing function, which allows specifying a custom quad to be drawn. Used internally by the library.

Auto Trait Implementations

impl Send for Immediate

impl Sync for Immediate

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.