Struct opengl_graphics::shader_utils::DynamicAttribute
source · pub struct DynamicAttribute { /* private fields */ }
Expand description
Describes a shader attribute.
Implementations§
source§impl DynamicAttribute
impl DynamicAttribute
sourcepub fn xyz(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>
pub fn xyz( program: GLuint, name: &str, vao: GLuint ) -> Result<DynamicAttribute, String>
Create XYZ vertex attribute.
sourcepub fn xy(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>
pub fn xy( program: GLuint, name: &str, vao: GLuint ) -> Result<DynamicAttribute, String>
Create XY vertex attribute.
sourcepub fn rgb(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>
pub fn rgb( program: GLuint, name: &str, vao: GLuint ) -> Result<DynamicAttribute, String>
Create RGB color attribute.
sourcepub fn rgba(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>
pub fn rgba( program: GLuint, name: &str, vao: GLuint ) -> Result<DynamicAttribute, String>
Create RGBA color attribute.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DynamicAttribute
impl Send for DynamicAttribute
impl Sync for DynamicAttribute
impl Unpin for DynamicAttribute
impl UnwindSafe for DynamicAttribute
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