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

pub trait ShaderHandle<Spec: BackendSpec>: Debug {
    fn draw(
        &self,
        encoder: &mut Encoder<Spec::Resources, Spec::CommandBuffer>,
        slice: &Slice<Spec::Resources>,
        data: &Data<Spec::Resources>
    ) -> GameResult;
fn set_blend_mode(&mut self, mode: BlendMode) -> GameResult;
fn blend_mode(&self) -> BlendMode; }
Expand description

A trait that is used to create trait objects to abstract away the gfx::Structure<ConstFormat> 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