[][src]Trait sfml::graphics::Drawable

pub trait Drawable {
    fn draw<'a: 'shader, 'texture, 'shader, 'shader_texture>(
        &'a self,
        target: &mut dyn RenderTarget,
        states: RenderStates<'texture, 'shader, 'shader_texture>
    ); }

The trait drawable is inherited by each object who can be drawn in a RenderTarget

Required methods

fn draw<'a: 'shader, 'texture, 'shader, 'shader_texture>(
    &'a self,
    target: &mut dyn RenderTarget,
    states: RenderStates<'texture, 'shader, 'shader_texture>
)

Draw a drawable object into a RenderTarget

Loading content...

Implementors

impl Drawable for VertexArray[src]

impl<'s> Drawable for CircleShape<'s>[src]

impl<'s> Drawable for ConvexShape<'s>[src]

impl<'s> Drawable for CustomShape<'s>[src]

impl<'s> Drawable for RectangleShape<'s>[src]

impl<'s> Drawable for Sprite<'s>[src]

impl<'s> Drawable for Text<'s>[src]

Loading content...