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.