pub struct Program(/* private fields */);Implementations§
Source§impl Program
impl Program
pub fn new() -> Result<Self, String>
pub fn attach_shader(&self, shader: &Shader)
pub fn link(&self) -> Result<(), String>
pub fn from_shaders(shaders: &[Shader]) -> Result<Self, String>
pub fn from_source(vert_src: &CStr, frag_src: &CStr) -> Result<Self, String>
pub fn get_attrib_location(&self, name: &str) -> GLint
pub fn get_uniform_location(&self, name: &str) -> GLint
pub fn send_uniform<T: GlUniform>(&self, location: i32, data: T)
Trait Implementations§
Source§impl Ord for Program
impl Ord for Program
Source§impl PartialOrd for Program
impl PartialOrd for Program
impl Eq for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more