Struct easy_imgui_renderer::glr::Program
source · 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 fn draw<U, AS>(&self, uniforms: &U, attribs: AS, primitive: u32)where
U: UniformProvider,
AS: AttribProviderList,
Trait Implementations§
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