Struct opengl_graphics::shader_utils::DynamicAttribute
source · [−]pub struct DynamicAttribute { /* private fields */ }
Expand description
Describes a shader attribute.
Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more