Struct opengl_graphics::shader_utils::DynamicAttribute  
                   
                       [−]
                   
               [src]
pub struct DynamicAttribute { /* fields omitted */ }Describes a shader attribute.
Methods
impl DynamicAttribute[src]
fn xyz(program: GLuint,
       name: &str,
       vao: GLuint)
       -> Result<DynamicAttribute, String>
name: &str,
vao: GLuint)
-> Result<DynamicAttribute, String>
Create XYZ vertex attribute.
fn xy(program: GLuint,
      name: &str,
      vao: GLuint)
      -> Result<DynamicAttribute, String>
name: &str,
vao: GLuint)
-> Result<DynamicAttribute, String>
Create XY vertex attribute.
fn rgb(program: GLuint,
       name: &str,
       vao: GLuint)
       -> Result<DynamicAttribute, String>
name: &str,
vao: GLuint)
-> Result<DynamicAttribute, String>
Create RGB color attribute.
fn rgba(program: GLuint,
        name: &str,
        vao: GLuint)
        -> Result<DynamicAttribute, String>
name: &str,
vao: GLuint)
-> Result<DynamicAttribute, String>
Create RGBA color attribute.
fn uv(program: GLuint,
      name: &str,
      vao: GLuint)
      -> Result<DynamicAttribute, String>
name: &str,
vao: GLuint)
-> Result<DynamicAttribute, String>
Create texture coordinate attribute.
unsafe fn set<T>(&self, data: &[T])
Sets attribute data.