Struct ggez::graphics::spritebatch::BoundSpriteBatch [−][src]
pub struct BoundSpriteBatch<'a> { /* fields omitted */ }
Deprecated
A drawable combination of a SpriteBatch
and a specific Image
.
It is not always convenient for a SpriteBatch
to own the image
it is drawing, so this structure lets you override the image with
a borrowed one.
This is now deprecated; an Image
is cheap to clone and
this was never terribly useful to begin with.
Trait Implementations
impl<'a> Debug for BoundSpriteBatch<'a>
[src]
impl<'a> Debug for BoundSpriteBatch<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Drawable for BoundSpriteBatch<'a>
[src]
impl<'a> Drawable for BoundSpriteBatch<'a>
fn draw_ex(&self, ctx: &mut Context, param: DrawParam) -> GameResult<()>
[src]
fn draw_ex(&self, ctx: &mut Context, param: DrawParam) -> GameResult<()>
Actually draws the object to the screen. Read more
fn set_blend_mode(&mut self, mode: Option<BlendMode>)
[src]
fn set_blend_mode(&mut self, mode: Option<BlendMode>)
Sets the blend mode to be used when drawing this drawable. This overrides the general graphics::set_blend_mode()
. If None
is set, defers to the blend mode set by graphics::set_blend_mode()
. Read more
fn get_blend_mode(&self) -> Option<BlendMode>
[src]
fn get_blend_mode(&self) -> Option<BlendMode>
Gets the blend mode to be used when drawing this drawable.
fn draw(&self, ctx: &mut Context, dest: Point2, rotation: f32) -> GameResult<()>
[src]
fn draw(&self, ctx: &mut Context, dest: Point2, rotation: f32) -> GameResult<()>
Draws the drawable onto the rendering target. Read more
Auto Trait Implementations
impl<'a> Send for BoundSpriteBatch<'a>
impl<'a> Send for BoundSpriteBatch<'a>
impl<'a> Sync for BoundSpriteBatch<'a>
impl<'a> Sync for BoundSpriteBatch<'a>