Trait ggez::graphics::ShaderHandle [] [src]

pub trait ShaderHandle<Spec: BackendSpec>: Debug {
    fn draw(
        &self,
        _: &mut Encoder<Spec::Resources, Spec::CommandBuffer>,
        _: &Slice<Spec::Resources>,
        _: &Data<Spec::Resources>
    ) -> GameResult<()>;
fn set_blend_mode(&mut self, mode: BlendMode) -> GameResult<()>;
fn get_blend_mode(&self) -> BlendMode; }

A trait that is used to create trait objects to abstract away the Structure type of the constant data for drawing

Required Methods

Draw with the current Shader

Sets the shader program's blend mode

Gets the shader program's current blend mode

Implementors