pub struct Program(_);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 PartialEq<Program> for Program
impl PartialEq<Program> for Program
source§impl PartialOrd<Program> for Program
impl PartialOrd<Program> for Program
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Program
impl StructuralEq for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
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