Trait luminance::shader::program::HasProgram [] [src]

pub trait HasProgram: HasStage + HasUniform {
    type Program;
    fn new_program(tess: Option<(&Self::AStage, &Self::AStage)>, vertex: &Self::AStage, geometry: Option<&Self::AStage>, fragment: &Self::AStage) -> Result<Self::Program, ProgramError>;
    fn free_program(program: &mut Self::Program);
    fn map_uniform(program: &Self::Program, name: UniformName) -> Result<Self::U, ProgramError>;
    fn update_uniforms<F>(program: &Self::Program, f: F) where F: Fn();
}

Associated Types

type Program

Required Methods

fn new_program(tess: Option<(&Self::AStage, &Self::AStage)>, vertex: &Self::AStage, geometry: Option<&Self::AStage>, fragment: &Self::AStage) -> Result<Self::Program, ProgramError>

fn free_program(program: &mut Self::Program)

fn map_uniform(program: &Self::Program, name: UniformName) -> Result<Self::U, ProgramError>

fn update_uniforms<F>(program: &Self::Program, f: F) where F: Fn()

Implementors