Struct gl_helpers::GLProgram
source · pub struct GLProgram { /* private fields */ }
Implementations
sourceimpl GLProgram
impl GLProgram
pub fn new(vertex: &str, fragment: &str) -> Self
pub fn new_mutiple(vertex: &[&str], fragment: &[&str]) -> Self
pub fn id(&self) -> GLuint
pub fn bind(&self) -> &Self
pub fn unbind(&self) -> &Self
pub fn has_uniform(&self, name: &str) -> bool
pub fn get_uniform(&self, name: &str) -> &GLUniform
pub fn uniforms(&self) -> &FnvHashMap<String, GLUniform>
pub fn uniforms_mut(&mut self) -> &mut FnvHashMap<String, GLUniform>
pub fn has_attribute(&self, name: &str) -> bool
pub fn get_attribute(&self, name: &str) -> &GLAttribute
pub fn attributes(&self) -> &FnvHashMap<String, GLAttribute>
pub fn attributes_mut(&mut self) -> &mut FnvHashMap<String, GLAttribute>
pub fn set(&mut self, vertex: &str, fragment: &str) -> &mut Self
pub fn set_mutiple(&mut self, vertex: &[&str], fragment: &[&str]) -> &mut Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GLProgram
impl Send for GLProgram
impl Sync for GLProgram
impl Unpin for GLProgram
impl UnwindSafe for GLProgram
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more