pub struct Program { /* private fields */ }
Implementations§
Source§impl Program
impl Program
pub fn from_source( gl: &GlContext, vertex: &str, fragment: &str, geometry: Option<&str>, ) -> Result<Program>
pub fn id(&self) -> Program
pub fn attrib_by_name(&self, name: &str) -> Option<&Attribute>
pub fn uniform_by_name(&self, name: &str) -> Option<&Uniform>
pub unsafe fn draw_func<U, AS>(
&self,
uniforms: &U,
attribs: AS,
f_draw: impl FnOnce(),
)where
U: UniformProvider,
AS: AttribProviderList,
pub fn draw<U, AS>(&self, uniforms: &U, attribs: AS, primitive: u32)where
U: UniformProvider,
AS: AttribProviderList,
Trait Implementations§
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