Struct gl_helpers::GLProgram
[−]
[src]
pub struct GLProgram { /* fields omitted */ }
pub struct GLProgram { /* fields omitted */ }
impl GLProgram
[src]fn new(vertex: &str, fragment: &str) -> Self
[src]fn new_mutiple(vertex: &[&str], fragment: &[&str]) -> Self
[src]fn id(&self) -> GLuint
[src]fn bind(&self) -> &Self
[src]fn unbind(&self) -> &Self
[src]fn has_uniform(&self, name: &str) -> bool
[src]fn get_uniform(&self, name: &str) -> &GLUniform
[src]fn uniforms(&self) -> &BTreeMap<String, GLUniform>
[src]fn uniforms_mut(&mut self) -> &mut BTreeMap<String, GLUniform>
[src]fn has_attribute(&self, name: &str) -> bool
[src]fn get_attribute(&self, name: &str) -> &GLAttribute
[src]fn attributes(&self) -> &BTreeMap<String, GLAttribute>
[src]fn attributes_mut(&mut self) -> &mut BTreeMap<String, GLAttribute>
[src]fn set(&mut self, vertex: &str, fragment: &str) -> &mut Self
[src]fn set_mutiple(&mut self, vertex: &[&str], fragment: &[&str]) -> &mut Self
[src]impl Drop for GLProgram
[src]